User tests: Successful: Unsuccessful:
Add the Report-To (#2) header to the http header config and allow to set the script-dynamic header
force header
option.The script-dynamic options needs to be added to doc pages the Report-To has been added already
https://docs.joomla.org/index.php?title=Help4.x:Components_CSP_Reports_Options
https://docs.joomla.org/J4.x:Http_Header_Management
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_csp Language & Strings Front End Plugins |
Labels |
Added:
?
?
?
|
Please fix conflicts.
Any blockers other than testing at this point?
Done @richard67
I have tested this item
Drone is ok nowdays so nothing bocks testing here right @richard67 ? Maybe @Quy can mark a test as the last commits where just branch updates the test by @jmeintrup still stands.
Is script-dynamic
dependent on Nonce
and/or Script hashes
being enabled?
Is script-dynamic dependent on Nonce and/or Script hashes being enabled?
I dont think that it is a hard requiremet but suggested for sure.
How about make it like frame-ancestors
so you don't have to add an entry for it?
How about make it like frame-ancestors so you don't have to add an entry for it?
I think it should be an informed decision to enable script-dynamic or not.
My suggestion is to keep the script-dynamic
switch. If enabled, strict-dynamic
will be added.
Agree that should be the case right now? Or I'm missing something?
I assume you have to add a Directive entry to activate it.
I assume you have to add a Directive entry to activate it.
Ah i get where you are comming from. frame-ancestors
can be compared to script-src
in that case it is selfcontained. scrypt-dynamic
should be passed as part of the script-src
directive.
I am new to CSP so I don't understand it fully, however, I think Yes to your assessment.
I am new to CSP so I don't understand it fully, however, I think Yes to your assessment.
no problem feel free to ask when questions like that come up :)
I have tested this item
the test says : notice there is no script-dynamic setting, the option in j4 says strict-dynamic
so either one or the other is inconsistent (script- or strict- ... which one? )
I have tested this item
Test successful after description update
@zero-24 pr correct as first section of test works
please enable that option and configure "auto" or "custom" mode to see the new option.
OK, got to the setting, activated it and tested on https://csp-evaluator.withgoogle.com/%7C
getting:
OK, got to the setting, activated it and tested on https://csp-evaluator.withgoogle.com/%7C
getting:
Have you setup the script-src and object-src? What are the settings from the component?
OK, better question how do I check for "the generated csp header."
thanks @richard67 ,
referrer-policy | strict-origin-when-cross-origin
This what I'm looking for? Am new to CSP.
This what I'm looking for? Am new to CSP.
Conent-security-poliy(-report-only)
Can you please post the settings you made?
@Bodge-IT In your screenshot of the headers I see: "report-to: csp-endpoint". That's one of the headers added by this PR, so success for this point.
For the second point the strict-dynamic option option, your screenshot with the com_csp options shows that this option is there. So success also for this point.
@zero-24 Am I right? Or am I missing something?
Thanks
@Bodge-IT No need for reset, that happens automatically on GitHub with a new commit. In the tracker you might not see that. But it's here on GitHub which counts.
@opn365 Could you re apply this PR (revert, then fetch again patches and than apply again via patchtester if using patchtester, or pulling latest changes when using a git client) and then repeat your test? There have been changes made in this PR. Thanks in advance, and thanks for the previous test.
I have tested this item
Checked options and headers...all good.
I have tested this item
Was easy as pie to follow, once Gary added all the screen shots!
Pulled in Phil to get this done...
Pulled in Phil to get this done...
Seems he did not have time and has sent his cat instead ;-)
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-10-27 12:40:02 |
Closed_By | ⇒ | rdeutz |
Thanks @Quy