Skip to content

Commit

Permalink
fix: fix security headers and remote resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Sep 13, 2023
1 parent 35bda83 commit 2840b6b
Show file tree
Hide file tree
Showing 4 changed files with 649 additions and 451 deletions.
8 changes: 8 additions & 0 deletions .kontinuous/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ global:
imageProject: 1000jours

app:
~chart: app
securityContext:
fsGroup: 101
runAsGroup: 101
runAsUser: 101
ingress:
annotations:
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "Content-Security-Policy: default-src 'none'; connect-src 'self' https://*.gouv.fr; font-src 'self'; img-src 'self'; prefetch-src 'self' https://*.gouv.fr; script-src 'self' https://*.gouv.fr; frame-src 'self' https://*.gouv.fr; style-src 'self' 'unsafe-inline'";
more_set_headers "X-Frame-Options: sameorigin";
more_set_headers "X-XSS-Protection: 1; mode=block";
more_set_headers "X-Content-Type-Options: nosniff";
Loading

0 comments on commit 2840b6b

Please sign in to comment.