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

CSP headers #1004

Merged
merged 20 commits into from
Jul 25, 2023
Merged

CSP headers #1004

merged 20 commits into from
Jul 25, 2023

Conversation

sleidig
Copy link
Member

@sleidig sleidig commented Sep 22, 2021

see issue: #950

Adds Content-Security-Policy headers.

For deployment / migration:

@github-actions
Copy link

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

build/README.md Outdated Show resolved Hide resolved
sleidig added 3 commits July 19, 2023 17:09
# Conflicts:
#	build/Dockerfile
#	build/default.conf
#	proxy.conf.json
#	src/app/app.module.ts
#	src/environments/environment.ts
@@ -30,7 +30,8 @@ export const environment = {
production: false,
appVersion: "0.0.0", // replaced automatically during docker build
repositoryId: "Aam-Digital/ndb-core",
remoteLoggingDsn: undefined, // only set for production mode in environment.prod.ts
remoteLoggingDsn:
Copy link
Member Author

Choose a reason for hiding this comment

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

the problem with this PR is sentry's client SDK - the Dsn is not just any URL. Proxying through "/logging" is not accepted by sentry init.
The "tunnel" option of sentry however requires a server-side rewrite of the request that doesn't seem to be doable just in nginx but would need a simple backend service.

@sleidig sleidig changed the title WIP: CSP CSP headers Jul 20, 2023
@sleidig
Copy link
Member Author

sleidig commented Jul 20, 2023

Two limitations that only have workarounds:

@sleidig sleidig marked this pull request as ready for review July 20, 2023 06:19
@sleidig
Copy link
Member Author

sleidig commented Jul 20, 2023

deployed to https://dev.aam-digital.net for testing

@github-actions
Copy link

Deployed to https://pr-1004.aam-digital.net/

build/Dockerfile Outdated Show resolved Hide resolved
Copy link
Collaborator

@TheSlimvReal TheSlimvReal left a comment

Choose a reason for hiding this comment

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

Seems to work well, lets see what will come in

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@TheSlimvReal TheSlimvReal merged commit 13a92be into master Jul 25, 2023
@TheSlimvReal TheSlimvReal deleted the csp branch July 25, 2023 13:46
@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.22.0-master.10 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.22.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants