Skip to content

Commit e676697

Browse files
authored
fix(jcasc): replace invalid CSP header attribute with enforce flag (#2187)
The CspConfiguration JCasc binding only supports `advanced` and `enforce` attributes. The `header` key caused an UnknownAttributesException on startup, crashing the JCasc reload and leaving Jenkins unconfigured. Signed-off-by: Bruno Verachten <gounthar@gmail.com>
1 parent ac1c42d commit e676697

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
@@ -41,13 +41,7 @@ credentials:
4141
username: "jenkins"
4242
security:
4343
contentSecurityPolicy:
44-
header: >-
45-
sandbox allow-same-origin allow-scripts allow-popups allow-forms;
46-
default-src 'self';
47-
img-src 'self' data:;
48-
style-src 'self' 'unsafe-inline';
49-
script-src 'self' 'unsafe-inline';
50-
font-src 'self';
44+
enforce: true
5145
unclassified:
5246
location:
5347
url: "http://127.0.0.1:8080/"

0 commit comments

Comments
 (0)