fix(codespaces): fix reverse proxy warning and enable CSP#2185
Merged
gounthar merged 1 commit intoApr 21, 2026
Merged
Conversation
Backport of the main branch fix. Same three changes: - docker-compose.yaml: pass CODESPACE_NAME and GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN into the discovery container - find-name.sh: update unclassified.location.url and suppress ReverseProxySetupMonitor when running in Codespaces - jenkins.yaml: add security.contentSecurityPolicy to clear the CSP administrative monitor warning Signed-off-by: Bruno Verachten <gounthar@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backport of #2184 to the
weeklybranch. Identical three-file change.Changes
docker-compose.yamlPass
CODESPACE_NAMEandGITHUB_CODESPACES_PORT_FORWARDING_DOMAINinto thediscovery_and_jcasc_modifiercontainer. Docker Compose forwards them transparently from the host; empty string default means no impact on local or CI runs.dockerfiles/agent-discovery/find-name.shWhen the Codespaces vars are set, update
unclassified.location.urlto the correct forwarding URL and suppresshudson.diagnosis.ReverseProxySetupMonitor. This runs before the final JCasc reload so the correct URL is active from first startup.dockerfiles/jenkins.yamlAdd
security.contentSecurityPolicywith a policy that covers Jenkins' own UI requirements (inline styles/scripts) while establishing a defined CSP baseline.