Skip to content

Commit 97d6f87

Browse files
authored
fix(jcasc): use correct CspConfiguration attributes for CSP (#2186)
CspConfiguration only accepts 'enforce' and 'advanced' — not 'header'. The 'header' attribute caused a fatal UnknownAttributesException at startup. Replace with enforce: true to enable CSP with Jenkins' default built-in policy. Signed-off-by: Bruno Verachten <gounthar@gmail.com>
1 parent 68fa6d1 commit 97d6f87

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

dockerfiles/jenkins.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,7 @@ credentials:
4242
username: "jenkins"
4343
security:
4444
contentSecurityPolicy:
45-
header: >-
46-
sandbox allow-same-origin allow-scripts allow-popups allow-forms;
47-
default-src 'self';
48-
img-src 'self' data:;
49-
style-src 'self' 'unsafe-inline';
50-
script-src 'self' 'unsafe-inline';
51-
font-src 'self';
45+
enforce: true
5246
unclassified:
5347
location:
5448
url: "http://127.0.0.1:8080/"

0 commit comments

Comments
 (0)