[#1218] Resolve CSP issue blocking Sentry requests in Traefik configuration #1362
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The purpose of these changes is to resolve a Content Security Policy (CSP) issue in the Traefik configuration that was blocking Sentry requests. The existing CSP settings did not allow communication with Sentry endpoints, specifically POST requests to the Sentry API, which was hindering error tracking and monitoring. This update addresses the problem by modifying the
connect-src
directive to include permissions for requests to any instance of Sentry under the*.ingest.sentry.io
domain. By making this adjustment, the system ensures that Sentry can receive error data, aligning with the user story's requirement for effective error monitoring. The outcome of these changes is a functional error logging and monitoring system through Sentry, as the requests are no longer blocked. Testing has confirmed that error data is successfully transmitted to Sentry, enabling continuous evaluation and troubleshooting of the frontend service. Furthermore, the updated CSP has been crafted to uphold security best practices, preventing any compromise in the system's overall security posture. The modifications have been documented to ensure clarity and facilitate future maintenance.