Skip to content

Commit

Permalink
feat: apply security annotations to webapp-ingress
Browse files Browse the repository at this point in the history
Signed-off-by: Stefano Cappa <[email protected]>
  • Loading branch information
Ks89 committed Jul 27, 2024
1 parent c3ca616 commit 07ef9e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions home-anthill/templates/ingress-webapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ metadata:
cert-manager.io/issuer: "cert-issuer-webapp"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/redirect-to-https: "true"
nginx.ingress.kubernetes.io/configuration-snippet: |
add_header X-Frame-Options "sameorigin";
add_header X-Content-Type-Options nosniff;
add_header Referrer-Policy 'same-origin';
add_header Permissions-Policy "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()";
{{- end }}
namespace: {{ .Values.namespace }}
spec:
Expand Down

0 comments on commit 07ef9e1

Please sign in to comment.