Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update opensrp-web express csp policy vars #58

Merged
merged 68 commits into from
Jul 7, 2022

Conversation

peterMuriuki
Copy link
Contributor

@peterMuriuki peterMuriuki commented Apr 27, 2022

Adds CSP directives to express envs

Adds configs for this onaio/express-server#30

@peterMuriuki peterMuriuki requested a review from bennsimon April 27, 2022 15:17
@peterMuriuki peterMuriuki force-pushed the add-default-nginx-ingress-headers branch from 9292e61 to 3ba1d2e Compare April 27, 2022 15:19
@peterMuriuki peterMuriuki changed the title Add default nginx ingress headers [DNM] Add default nginx ingress headers Apr 27, 2022
@peterMuriuki peterMuriuki force-pushed the add-default-nginx-ingress-headers branch 2 times, most recently from f7d4055 to df0fd27 Compare April 28, 2022 09:32
@peterMuriuki peterMuriuki changed the title [DNM] Add default nginx ingress headers Add default nginx ingress headers Apr 28, 2022
charts/opensrp-web/values.yaml Outdated Show resolved Hide resolved
charts/opensrp-web/values.yaml Outdated Show resolved Hide resolved
@peterMuriuki peterMuriuki force-pushed the add-default-nginx-ingress-headers branch from 26bf2f4 to d4e9390 Compare May 6, 2022 10:53
@peterMuriuki peterMuriuki changed the title Add default nginx ingress headers Update opensrp-web express csp policy vars May 9, 2022
@peterMuriuki peterMuriuki requested a review from bennsimon May 9, 2022 06:31
charts/opensrp-web/README.md Outdated Show resolved Hide resolved
charts/opensrp-web/values.yaml Outdated Show resolved Hide resolved
charts/opensrp-web/values.yaml Outdated Show resolved Hide resolved
charts/opensrp-web/values.yaml Show resolved Hide resolved
charts/opensrp-web/values.yaml Show resolved Hide resolved
@peterMuriuki peterMuriuki requested a review from bennsimon May 9, 2022 08:14
@@ -186,6 +187,21 @@ express:
sessionPath: "/"
reactBuildPath: "/usr/src/web"
nodeEnv: "production"
csp:
report-uri: "https://{{ .Values.sentry.domain }}/api/{{ .Values.sentry.projectId }}/security/?sentry_key={{ .Values.sentry.sentryKey }}&sentry_environment={{ .Values.sentry.environment }}&sentry_release={{ .Release.Name }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly add checks that this wont fail but default to something if sentry configs are not supplied.

charts/opensrp-web/values.yaml Outdated Show resolved Hide resolved
charts/opensrp-web/values.yaml Outdated Show resolved Hide resolved
charts/opensrp-web/values.yaml Outdated Show resolved Hide resolved
charts/opensrp-web/values.yaml Outdated Show resolved Hide resolved
@machariamuguku machariamuguku changed the base branch from main to 959-use-redis-session-store July 6, 2022 06:44
@machariamuguku machariamuguku changed the base branch from 959-use-redis-session-store to main July 6, 2022 06:45
@machariamuguku machariamuguku changed the base branch from main to gh-pages July 7, 2022 09:55
@machariamuguku machariamuguku changed the base branch from gh-pages to main July 7, 2022 09:56
@machariamuguku machariamuguku merged commit cc6be30 into main Jul 7, 2022
@machariamuguku machariamuguku deleted the add-default-nginx-ingress-headers branch July 7, 2022 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants