Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSP hash reporting keywords #430

Open
yoavweiss opened this issue Nov 26, 2024 · 1 comment
Open

CSP hash reporting keywords #430

yoavweiss opened this issue Nov 26, 2024 · 1 comment

Comments

@yoavweiss
Copy link

yoavweiss commented Nov 26, 2024

WebKittens

@annevk

Title of the proposal

Hash reporting for scripts

URL to the spec

w3c/webappsec-csp#693

URL to the spec's repository

https://github.com/w3c/webappsec-csp/

Issue Tracker URL

No response

Explainer URL

w3c/webappsec-csp#693 (comment)

TAG Design Review URL

w3ctag/design-reviews#1020

Mozilla standards-positions issue URL

mozilla/standards-positions#1129

WebKit Bugzilla URL

No response

Radar URL

No response

Description

This feature adds a new CSP directive "report-hash", which triggers a new reporting type "csp-hash-report".
It reports hashes for (same-origin or CORS enabled) scripts that are loaded in the context of the document (regardless of their "integrity" attribute), and sends reports about them.

Those reports enable developers to:

  • Create inventory of the scripts running on their page. (critical for PCI-DSS v4 - context.)
  • Have certainty that they can enable SRI or CSP hash-based enforcement without breaking their sites. For some hash-based enforcement, we'd also need to add reporting for inline scripts, evals, event handlers and javascript URLs that are not covered by the current spec PR.
@yoavweiss yoavweiss changed the title CSP report-hash directive CSP report-hash keyword Dec 6, 2024
@yoavweiss yoavweiss changed the title CSP report-hash keyword CSP hash reporting keywords Dec 6, 2024
@yoavweiss
Copy link
Author

Relevant WebKit bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant