Skip to content

Commit

Permalink
Bruk bun docker bilde og oppdater CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
LudvigHz committed Jun 12, 2024
1 parent 62bdbf8 commit d829ae0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
9 changes: 0 additions & 9 deletions .nais/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,6 @@ spec:
value: "modiapersonoversikt"
- name: APP_VERSION
value: "{{ version }}"
- name: CSP_DIRECTIVES
value: "default-src 'self';\
script-src 'self' 'unsafe-inline' https://cdn.nav.no;\
style-src 'self' 'unsafe-inline' https://cdn.nav.no;\
img-src 'self' data:;\
font-src 'self' data: https://cdn.nav.no;\
connect-src 'self' amplitude.nav.no wss://veilederflatehendelser.intern.dev.nav.no https://telemetry.ekstern.dev.nav.no;\
object-src blob:;\
frame-src blob:;"
- name: REFERRER_POLICY
value: "no-referrer"
- name: APP_ENVIRONMENT_NAME
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.gcp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM europe-north1-docker.pkg.dev/nais-management-233d/personoversikt/modia-frontend:0.10-node
FROM europe-north1-docker.pkg.dev/nais-management-233d/personoversikt/modia-frontend:0.11
ADD proxy-config-q2.json proxy-config.json
COPY build ./static

Expand Down
15 changes: 15 additions & 0 deletions proxy-config-q2.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,20 @@
"url": "https://modiapersonoversikt-api-q1.dev-fss-pub.nais.io/modiapersonoversikt-api/rest",
"scope": "api://dev-fss.personoversikt.modiapersonoversikt-api-q1/.default"
}
},
"contentSecurityPolicy": {
"scriptSrc": ["'self'", "'unsafe-inline'", "https://cdn.nav.no"],
"style-src": ["'self'", "'unsafe-inline'", "https://cdn.nav.no"],
"img-src": ["'self'", "data:"],
"font-src": ["'self'", "data:", "https://cdn.nav.no"],
"connect-src": [
"'self'",
"amplitude.nav.no",
"wss://veilederflatehendelser.intern.dev.nav.no",
"wss://modiapersonoversikt-draft.intern.dev.nav.no",
"https://telemetry.ekstern.dev.nav.no"
],
"object-src": [" blob:"],
"frame-src": ["blob:"]
}
}

0 comments on commit d829ae0

Please sign in to comment.