@@ -16,23 +16,30 @@ OIDCOAuthIntrospectionEndpoint <%= oidc_introspection_endpoint %>
1616OIDCOAuthIntrospectionEndpointAuth client_secret_basic
1717OIDCCookieSameSite On
1818
19+ # CSP for OIDC authentication redirects - allows inline styles/scripts needed by auth flow
1920< Location /oidc_login>
20- AuthType openid-connect
21- Require valid-user
22- FileETag None
23- Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate"
24- Header Set Pragma "no-cache"
25- Header Unset ETag
21+ AuthType openid-connect
22+ Require valid-user
23+ FileETag None
24+ Header always set Strict-Transport-Security "max-age=631138519"
25+ Header set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; base-uri 'self'; form-action 'self'; frame-ancestors 'self'; report-uri /dashboard/csp_report; report-to csp-endpoint"
26+ Header set Report-To "{\"group\":\"csp-endpoint\",\"max_age\":10886400,\"endpoints\":[{\"url\":\"/dashboard/csp_report\"}]}"
27+ Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate"
28+ Header Set Pragma "no-cache"
29+ Header Unset ETag
2630</ Location >
2731
2832< Location /ui/service/oidc_login>
29- AuthType openid-connect
30- Require valid-user
31- FileETag None
32- Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate"
33- Header Set Pragma "no-cache"
34- Header Set Set-Cookie "miq_oidc_access_token=%{OIDC_access_token}e; Max-Age=10; Path=/ui/service"
35- Header Unset ETag
33+ AuthType openid-connect
34+ Require valid-user
35+ FileETag None
36+ Header always set Strict-Transport-Security "max-age=631138519"
37+ Header set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; base-uri 'self'; form-action 'self'; frame-ancestors 'self'; report-uri /dashboard/csp_report; report-to csp-endpoint"
38+ Header set Report-To "{\"group\":\"csp-endpoint\",\"max_age\":10886400,\"endpoints\":[{\"url\":\"/dashboard/csp_report\"}]}"
39+ Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate"
40+ Header Set Pragma "no-cache"
41+ Header Set Set-Cookie "miq_oidc_access_token=%{OIDC_access_token}e; Max-Age=10; Path=/ui/service"
42+ Header Unset ETag
3643</ Location >
3744
3845< LocationMatch ^ /api(?!\/(v[\d\.]+\/)?product_info$)>
0 commit comments