Skip to content

Inject CSP values when repository static objects external caching is enabled

What does this MR do?

Inject CSP values when repository static objects external caching is enabled.

Without it, Web IDE won't be able to display blobs as the browser is blocking the requests on the account of a missing external storage URL from CSP rules.

Fixes #198299 (closed)

Part of gitlab-com/gl-infra/scalability#4 (closed) and https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/6829

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Ahmad Sherif

Merge request reports

Loading