Review main Merged

77998[FEATURE] Introduce Content Security Policy reporting & inspection

Oliver Hader CR +2 V +2 Nightmare +3116 −63 updated 03/27/23, 09:34

Commit message

An internal csp-violation reporting endpoint is integrated, which
keeps track of potential violations in frontend and backend scope.
Alternative remote endpoints of 3rd party services can be configured
with in TYPO3_CONF_VARS setting `contentSecurityPolicyReportingUrl`
for `BE` or `FE`.

Violations ("reports") are visualized in the new
Content-Security-Policy backend module, which allows to select from
possible suggestions that would resolve a violation - however a user
with system maintainer privileges has to make this decision.

For the time being, the `GoogleMapsHandler` has been added, which
can be used as an inspiration for additional custom CSP violation
handlers. The following test extension triggers CSP violations:
https://packagist.org/packages/oliver-hader/csp-test

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 2

Files 50

Show 30 more files