[TASK] Introduce Content-Security-Policy-Report-Only handling
+ new feature flag `security.frontend.reportContentSecurityPolicy`, to be used next to `security.frontend.enforceContentSecurityPolicy`, resulting in `Content-Security-Policy-Report-Only` and/or `Content-Security-Policy` HTTP headers + new `enforce` and `report` segments in `csp.yaml` site config + possibility to disable CSP for a particular site by either setting `active: false` in the `csp.yaml` site config + allows having the HTTP headers `Content-Security-Policy` and `Content-Security-Policy-Report-Only` side-by-side in the frontend Resolves: #101580 Resolves: #104549 Releases: main, 12.4 Change-Id: I8c1a8305702629eac1bfedddbecbc19b452fd500 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85632 Tested-by:Benjamin Franzke <ben@bnf.dev> Reviewed-by:
Garvin Hicking <gh@faktor-e.de> Tested-by:
Oliver Hader <oliver.hader@typo3.org> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Garvin Hicking <gh@faktor-e.de> Reviewed-by:
Oliver Hader <oliver.hader@typo3.org> Reviewed-by:
Benjamin Franzke <ben@bnf.dev>
Showing
- typo3/sysext/backend/Classes/Middleware/ContentSecurityPolicyHeaders.php 6 additions, 2 deletions...ckend/Classes/Middleware/ContentSecurityPolicyHeaders.php
- typo3/sysext/backend/Classes/Security/ContentSecurityPolicy/CspAjaxController.php 5 additions, 1 deletion...sses/Security/ContentSecurityPolicy/CspAjaxController.php
- typo3/sysext/backend/Classes/Security/ContentSecurityPolicy/CspModuleController.php 5 additions, 2 deletions...es/Security/ContentSecurityPolicy/CspModuleController.php
- typo3/sysext/backend/Resources/Private/Templates/Security/CspModule.html 4 additions, 2 deletions...ckend/Resources/Private/Templates/Security/CspModule.html
- typo3/sysext/core/Classes/Security/ContentSecurityPolicy/Configuration/DispositionConfiguration.php 54 additions, 0 deletions...SecurityPolicy/Configuration/DispositionConfiguration.php
- typo3/sysext/core/Classes/Security/ContentSecurityPolicy/Configuration/DispositionMapFactory.php 114 additions, 0 deletions...entSecurityPolicy/Configuration/DispositionMapFactory.php
- typo3/sysext/core/Classes/Security/ContentSecurityPolicy/Disposition.php 36 additions, 0 deletions...re/Classes/Security/ContentSecurityPolicy/Disposition.php
- typo3/sysext/core/Classes/Security/ContentSecurityPolicy/MutationRepository.php 105 additions, 33 deletions...ses/Security/ContentSecurityPolicy/MutationRepository.php
- typo3/sysext/core/Classes/Security/ContentSecurityPolicy/PolicyProvider.php 6 additions, 3 deletions...Classes/Security/ContentSecurityPolicy/PolicyProvider.php
- typo3/sysext/core/Classes/Security/ContentSecurityPolicy/Reporting/ReportDetails.php 7 additions, 0 deletions...ecurity/ContentSecurityPolicy/Reporting/ReportDetails.php
- typo3/sysext/core/Configuration/DefaultConfiguration.php 1 addition, 0 deletionstypo3/sysext/core/Configuration/DefaultConfiguration.php
- typo3/sysext/core/Configuration/DefaultConfigurationDescription.yaml 4 additions, 1 deletion...t/core/Configuration/DefaultConfigurationDescription.yaml
- typo3/sysext/core/Documentation/Changelog/12.4.x/Important-101580-IntroduceContentSecurityPolicyReportOnlyHandling.rst 29 additions, 0 deletions...1580-IntroduceContentSecurityPolicyReportOnlyHandling.rst
- typo3/sysext/core/Documentation/Changelog/12.4.x/Important-104549-IntroduceSiteSpecificContentSecurityPolicyDisposition.rst 135 additions, 0 deletions...IntroduceSiteSpecificContentSecurityPolicyDisposition.rst
- typo3/sysext/core/Tests/Unit/Security/ContentSecurityPolicy/Configuration/DispositionConfigurationTest.php 91 additions, 0 deletions...rityPolicy/Configuration/DispositionConfigurationTest.php
- typo3/sysext/core/Tests/Unit/Security/ContentSecurityPolicy/Configuration/DispositionMapFactoryTest.php 281 additions, 0 deletions...ecurityPolicy/Configuration/DispositionMapFactoryTest.php
- typo3/sysext/frontend/Classes/Middleware/ContentSecurityPolicyHeaders.php 22 additions, 12 deletions...ntend/Classes/Middleware/ContentSecurityPolicyHeaders.php
- typo3/sysext/lowlevel/Classes/ConfigurationModuleProvider/ContentSecurityPolicyMutationsProvider.php 35 additions, 26 deletions...ModuleProvider/ContentSecurityPolicyMutationsProvider.php
Please register or sign in to comment