Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Issue 2519103005: Part 3.2: Is policy list subsumed under subsuming policy? (Closed)

Created:
4 years, 1 month ago by amalika
Modified:
4 years ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Part 3.2: Is policy list subsumed under subsuming policy? This is part of an experimental feature Embedding-CSP. Here we add support for `self` source, which gets compiled to CSPSources for normalization (finding intersection) and subsumption. For example, if the secure origin is "https://example.test/" then for a list of policies: ` Content-Security-Policy: script-src 'self' Content-Security-Policy: script-src https://example.test/ ` an intersection would be: `Content-Security-Policy: script-src https://example.test/` BUG=647588 Committed: https://crrev.com/685a394fd8ebd2dc4b14ef7277ce80f9776a770f Cr-Commit-Position: refs/heads/master@{#435883}

Patch Set 1 #

Patch Set 2 : Adding more tests #

Total comments: 4

Patch Set 3 : Adding explicit self #

Patch Set 4 : Adding back secureOrigin setup #

Patch Set 5 : Changing meaning of 'self' #

Total comments: 2

Patch Set 6 : Debugging #

Patch Set 7 : Debugging #

Patch Set 8 : Adding a failing test to get scoped_tracing info on all of cases #

Patch Set 9 : Splitting the tests #

Total comments: 4

Patch Set 10 : Debugging #

Patch Set 11 : Removing debugging traces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -6 lines) Patch
M third_party/WebKit/Source/core/frame/csp/CSPSource.h View 1 2 3 4 5 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/SourceListDirective.cpp View 1 2 3 4 2 chunks +14 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +127 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 45 (31 generated)
amalika
Here we now also consider `self` sources which we compile to be CSPSources, which are ...
4 years, 1 month ago (2016-11-22 14:35:26 UTC) #2
Mike West
Looking good. One question about matching, otherwise straightforward. https://codereview.chromium.org/2519103005/diff/20001/third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp File third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp (right): https://codereview.chromium.org/2519103005/diff/20001/third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp#newcode407 third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp:407: // ...
4 years ago (2016-11-23 11:22:03 UTC) #4
amalika
https://codereview.chromium.org/2519103005/diff/20001/third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp File third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp (right): https://codereview.chromium.org/2519103005/diff/20001/third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp#newcode407 third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp:407: // `self` of A and B match. On 2016/11/23 ...
4 years ago (2016-11-23 14:09:53 UTC) #6
Mike West
On 2016/11/23 at 14:09:53, amalika wrote: > https://codereview.chromium.org/2519103005/diff/20001/third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp#newcode411 > third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp:411: {{"'self'", "'self'", "https://*.example.test/"}, > On ...
4 years ago (2016-11-24 13:08:52 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2519103005/80001
4 years ago (2016-11-29 08:47:03 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/340113)
4 years ago (2016-11-29 11:30:25 UTC) #14
amalika
As per our discussion, 'self' specified in Embedding-CSP refers to the origin of the embedded ...
4 years ago (2016-11-30 10:37:23 UTC) #17
Mike West
Still LGTM. Thanks for making the change!
4 years ago (2016-11-30 10:53:36 UTC) #18
Mike West
https://codereview.chromium.org/2519103005/diff/180001/third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp File third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp (right): https://codereview.chromium.org/2519103005/diff/180001/third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp#newcode551 third_party/WebKit/Source/core/frame/csp/SourceListDirectiveTest.cpp:551: ContentSecurityPolicy* cspB = SetUpWithOrigin(test.originB); It will be easier to ...
4 years ago (2016-11-30 13:24:20 UTC) #19
Mike West
It worries me a bit that you weren't able to track down a root cause. ...
4 years ago (2016-12-01 13:06:16 UTC) #24
amalika
Actually, the other patches don't really need these `self` changes so I guess I could ...
4 years ago (2016-12-01 13:27:36 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2519103005/440001
4 years ago (2016-12-02 08:17:19 UTC) #41
commit-bot: I haz the power
Committed patchset #11 (id:440001)
4 years ago (2016-12-02 08:21:06 UTC) #43
commit-bot: I haz the power
4 years ago (2016-12-02 08:25:41 UTC) #45
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/685a394fd8ebd2dc4b14ef7277ce80f9776a770f
Cr-Commit-Position: refs/heads/master@{#435883}

Powered by Google App Engine
This is Rietveld 408576698