[Connection Allowlist] Use the correct reporting source. [chromium/src : main]

0 views
Skip to first unread message

Mike West (Gerrit)

unread,
Apr 1, 2026, 6:42:16 AM (3 days ago) Apr 1
to Kenichi Ishibashi, Shivani Sharma, Chromium LUCI CQ, chromium...@chromium.org, James Maclean, alexmo...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, creis...@chromium.org, fenced-fra...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org
Attention needed from Kenichi Ishibashi and Shivani Sharma

Mike West added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Mike West . resolved

One more in the chain, bashi@. If you have time to take a look, brilliant! If not, let me know and I'll find another reviewer. I'd like to get these in by Monday if possible... :)

shivanisha@: Would you mind taking a look as well?

Open in Gerrit

Related details

Attention is currently required from:
  • Kenichi Ishibashi
  • Shivani Sharma
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Icc18d4d5a98beca751497a1b7da2a5617995d031
Gerrit-Change-Number: 7718819
Gerrit-PatchSet: 3
Gerrit-Owner: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Shivani Sharma <shiva...@chromium.org>
Gerrit-CC: James Maclean <wjma...@chromium.org>
Gerrit-Attention: Shivani Sharma <shiva...@chromium.org>
Gerrit-Attention: Kenichi Ishibashi <ba...@chromium.org>
Gerrit-Comment-Date: Wed, 01 Apr 2026 10:42:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Shivani Sharma (Gerrit)

unread,
Apr 1, 2026, 12:51:06 PM (3 days ago) Apr 1
to Mike West, Kenichi Ishibashi, Chromium LUCI CQ, chromium...@chromium.org, James Maclean, alexmo...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, creis...@chromium.org, fenced-fra...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org
Attention needed from Kenichi Ishibashi and Mike West

Shivani Sharma voted and added 4 comments

Votes added by Shivani Sharma

Code-Review+1

4 comments

Patchset-level comments
Shivani Sharma . resolved

lgtm % nits, thanks!

File content/browser/renderer_host/network_restrictions_navigation_throttle.cc
Line 85, Patchset 3 (Latest): navigation_request.GetRenderFrameHost()->GetReportingSource();
Shivani Sharma . unresolved

nit: Can we add a comment to clarify here that the reporting source of the document being committed should be passed (vs the initiator document)?

File services/network/network_context.h
Line 877, Patchset 3 (Latest): const std::optional<base::UnguessableToken>& reporting_source,
Shivani Sharma . unresolved

can this become non-optional once workers also support it?

File services/network/public/cpp/connection_allowlist.h
Line 76, Patchset 3 (Latest): std::optional<base::UnguessableToken> reporting_source;
Shivani Sharma . unresolved

is the only reason this is optional is because it's not yet supported for workers? Can we add a TODO to make it non-optional once that's done

Open in Gerrit

Related details

Attention is currently required from:
  • Kenichi Ishibashi
  • Mike West
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Icc18d4d5a98beca751497a1b7da2a5617995d031
    Gerrit-Change-Number: 7718819
    Gerrit-PatchSet: 3
    Gerrit-Owner: Mike West <mk...@chromium.org>
    Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
    Gerrit-Reviewer: Mike West <mk...@chromium.org>
    Gerrit-Reviewer: Shivani Sharma <shiva...@chromium.org>
    Gerrit-CC: James Maclean <wjma...@chromium.org>
    Gerrit-Attention: Kenichi Ishibashi <ba...@chromium.org>
    Gerrit-Attention: Mike West <mk...@chromium.org>
    Gerrit-Comment-Date: Wed, 01 Apr 2026 16:50:57 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Kenichi Ishibashi (Gerrit)

    unread,
    Apr 2, 2026, 3:16:18 AM (2 days ago) Apr 2
    to Mike West, Shivani Sharma, Chromium LUCI CQ, chromium...@chromium.org, James Maclean, alexmo...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, creis...@chromium.org, fenced-fra...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org
    Attention needed from Mike West

    Kenichi Ishibashi voted and added 2 comments

    Votes added by Kenichi Ishibashi

    Code-Review+1

    2 comments

    Patchset-level comments
    Kenichi Ishibashi . resolved

    lgtm

    File services/network/network_context.cc
    Line 3773, Patchset 3 (Latest): auto url_matches_patterns = [&url](const auto& patterns) {
    Kenichi Ishibashi . unresolved

    Can we rename this to `restriction_allowed()` or something, and takes `const NetworkRestriction&`, capuring `is_direct` to reduce dups below?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Mike West
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Icc18d4d5a98beca751497a1b7da2a5617995d031
    Gerrit-Change-Number: 7718819
    Gerrit-PatchSet: 3
    Gerrit-Owner: Mike West <mk...@chromium.org>
    Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
    Gerrit-Reviewer: Mike West <mk...@chromium.org>
    Gerrit-Reviewer: Shivani Sharma <shiva...@chromium.org>
    Gerrit-CC: James Maclean <wjma...@chromium.org>
    Gerrit-Attention: Mike West <mk...@chromium.org>
    Gerrit-Comment-Date: Thu, 02 Apr 2026 07:15:45 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mike West (Gerrit)

    unread,
    Apr 2, 2026, 5:57:06 AM (2 days ago) Apr 2
    to Kenichi Ishibashi, Shivani Sharma, Chromium LUCI CQ, chromium...@chromium.org, James Maclean, alexmo...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, creis...@chromium.org, fenced-fra...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org

    Mike West added 5 comments

    Patchset-level comments
    File-level comment, Patchset 4 (Latest):
    Mike West . resolved

    Thanks, both!

    File content/browser/renderer_host/network_restrictions_navigation_throttle.cc
    Line 85, Patchset 3: navigation_request.GetRenderFrameHost()->GetReportingSource();
    Shivani Sharma . resolved

    nit: Can we add a comment to clarify here that the reporting source of the document being committed should be passed (vs the initiator document)?

    Mike West

    An excellent suggestion!

    File services/network/network_context.h
    Line 877, Patchset 3: const std::optional<base::UnguessableToken>& reporting_source,
    Shivani Sharma . resolved

    can this become non-optional once workers also support it?

    Mike West

    I think it can, yes, but Workers are going to take some (ha!) work and probably won't make branch.

    File services/network/network_context.cc
    Line 3773, Patchset 3: auto url_matches_patterns = [&url](const auto& patterns) {
    Kenichi Ishibashi . resolved

    Can we rename this to `restriction_allowed()` or something, and takes `const NetworkRestriction&`, capuring `is_direct` to reduce dups below?

    Mike West

    Done

    File services/network/public/cpp/connection_allowlist.h
    Line 76, Patchset 3: std::optional<base::UnguessableToken> reporting_source;
    Shivani Sharma . resolved

    is the only reason this is optional is because it's not yet supported for workers? Can we add a TODO to make it non-optional once that's done

    Mike West

    No. It's optional because we don't have a reporting source when we're parsing the headers. We don't have it until we commit a document, so this is something of a placeholder due to the order in which we're able to do things. I'll add a comment in the mojo definition about the lifecycle challenge.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Icc18d4d5a98beca751497a1b7da2a5617995d031
      Gerrit-Change-Number: 7718819
      Gerrit-PatchSet: 4
      Gerrit-Owner: Mike West <mk...@chromium.org>
      Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
      Gerrit-Reviewer: Mike West <mk...@chromium.org>
      Gerrit-Reviewer: Shivani Sharma <shiva...@chromium.org>
      Gerrit-CC: James Maclean <wjma...@chromium.org>
      Gerrit-Comment-Date: Thu, 02 Apr 2026 09:56:55 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Shivani Sharma <shiva...@chromium.org>
      Comment-In-Reply-To: Kenichi Ishibashi <ba...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Mike West (Gerrit)

      unread,
      Apr 2, 2026, 7:03:56 AM (2 days ago) Apr 2
      to Camille Lamy, Kenichi Ishibashi, Shivani Sharma, Chromium LUCI CQ, chromium...@chromium.org, James Maclean, alexmo...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, creis...@chromium.org, fenced-fra...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org
      Attention needed from Camille Lamy

      Mike West added 1 comment

      Patchset-level comments
      Mike West . resolved

      Hey Camille! Can you stamp the portion of this change in //content/browser?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Camille Lamy
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Icc18d4d5a98beca751497a1b7da2a5617995d031
      Gerrit-Change-Number: 7718819
      Gerrit-PatchSet: 4
      Gerrit-Owner: Mike West <mk...@chromium.org>
      Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
      Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
      Gerrit-Reviewer: Mike West <mk...@chromium.org>
      Gerrit-Reviewer: Shivani Sharma <shiva...@chromium.org>
      Gerrit-CC: James Maclean <wjma...@chromium.org>
      Gerrit-Attention: Camille Lamy <cl...@chromium.org>
      Gerrit-Comment-Date: Thu, 02 Apr 2026 11:03:42 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Camille Lamy (Gerrit)

      unread,
      Apr 2, 2026, 12:11:11 PM (2 days ago) Apr 2
      to Mike West, Kenichi Ishibashi, Shivani Sharma, Chromium LUCI CQ, chromium...@chromium.org, James Maclean, alexmo...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, creis...@chromium.org, fenced-fra...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org
      Attention needed from Mike West

      Camille Lamy added 2 comments

      Patchset-level comments
      Camille Lamy . resolved

      Thanks! One question below.

      File content/browser/renderer_host/network_restrictions_navigation_throttle.cc
      Line 86, Patchset 4 (Latest): allowlists.reporting_source =
      Camille Lamy . unresolved

      Just to check, this is only called for the final network response, not server redirects?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Mike West
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Icc18d4d5a98beca751497a1b7da2a5617995d031
        Gerrit-Change-Number: 7718819
        Gerrit-PatchSet: 4
        Gerrit-Owner: Mike West <mk...@chromium.org>
        Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
        Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
        Gerrit-Reviewer: Mike West <mk...@chromium.org>
        Gerrit-Reviewer: Shivani Sharma <shiva...@chromium.org>
        Gerrit-CC: James Maclean <wjma...@chromium.org>
        Gerrit-Attention: Mike West <mk...@chromium.org>
        Gerrit-Comment-Date: Thu, 02 Apr 2026 16:10:53 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Shivani Sharma (Gerrit)

        unread,
        Apr 2, 2026, 12:43:48 PM (2 days ago) Apr 2
        to Mike West, Camille Lamy, Kenichi Ishibashi, Chromium LUCI CQ, chromium...@chromium.org, James Maclean, alexmo...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, creis...@chromium.org, fenced-fra...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org
        Attention needed from Mike West

        Shivani Sharma voted and added 1 comment

        Votes added by Shivani Sharma

        Code-Review+1

        1 comment

        File content/browser/renderer_host/network_restrictions_navigation_throttle.cc
        Line 86, Patchset 4 (Latest): allowlists.reporting_source =
        Camille Lamy . unresolved

        Just to check, this is only called for the final network response, not server redirects?

        Shivani Sharma

        Yes, this is only called from Navigation throttle::WillProcessResponse() and WillCommitWithoutUrlLoader(), not from WillRedirectRequest()

        Gerrit-Comment-Date: Thu, 02 Apr 2026 16:43:40 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Camille Lamy <cl...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Camille Lamy (Gerrit)

        unread,
        Apr 3, 2026, 5:42:37 AM (yesterday) Apr 3
        to Mike West, Kenichi Ishibashi, Shivani Sharma, Chromium LUCI CQ, chromium...@chromium.org, James Maclean, alexmo...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, creis...@chromium.org, fenced-fra...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org
        Attention needed from Mike West

        Camille Lamy added 2 comments

        Patchset-level comments
        Camille Lamy . resolved

        Thanks! A few questions below.

        File services/network/public/mojom/connection_allowlist.mojom
        Line 70, Patchset 4 (Latest): mojo_base.mojom.UnguessableToken? reporting_source;
        Camille Lamy . unresolved

        Is this meant to be a reporting endpoint? In that case, would it make sense to do what COOP, COEP and DIP do and pass the reporting endpoint as a string here?

        Gerrit-Comment-Date: Fri, 03 Apr 2026 09:42:17 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Shivani Sharma (Gerrit)

        unread,
        Apr 3, 2026, 9:34:14 AM (24 hours ago) Apr 3
        to Mike West, Camille Lamy, Kenichi Ishibashi, Chromium LUCI CQ, chromium...@chromium.org, James Maclean, alexmo...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, creis...@chromium.org, fenced-fra...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org
        Attention needed from Mike West

        Shivani Sharma added 1 comment

        File services/network/public/mojom/connection_allowlist.mojom
        Line 70, Patchset 4 (Latest): mojo_base.mojom.UnguessableToken? reporting_source;
        Camille Lamy . unresolved

        Is this meant to be a reporting endpoint? In that case, would it make sense to do what COOP, COEP and DIP do and pass the reporting endpoint as a string here?

        Shivani Sharma

        the reporting endpoint string is also sent in the ConnectionAllowlist enforced and report_only fields above. The field `reporting_endpoint` is defined in line 53

        Gerrit-Comment-Date: Fri, 03 Apr 2026 13:34:08 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Camille Lamy <cl...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Mike West (Gerrit)

        unread,
        Apr 3, 2026, 12:57:47 PM (21 hours ago) Apr 3
        to Camille Lamy, Kenichi Ishibashi, Shivani Sharma, Chromium LUCI CQ, chromium...@chromium.org, James Maclean, alexmo...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org, blink-work...@chromium.org, creis...@chromium.org, fenced-fra...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org, network-ser...@chromium.org
        Attention needed from Camille Lamy

        Mike West added 1 comment

        File services/network/public/mojom/connection_allowlist.mojom
        Line 70, Patchset 4 (Latest): mojo_base.mojom.UnguessableToken? reporting_source;
        Camille Lamy . resolved

        Is this meant to be a reporting endpoint? In that case, would it make sense to do what COOP, COEP and DIP do and pass the reporting endpoint as a string here?

        Shivani Sharma

        the reporting endpoint string is also sent in the ConnectionAllowlist enforced and report_only fields above. The field `reporting_endpoint` is defined in line 53

        Mike West

        The reporting source token allows //net/reporting to bind the report we're trying to send to the document/worker from which it's being sent, so that the reporting endpoint (which //net/reporting calls "group") can be resolved. See https://source.chromium.org/chromium/chromium/src/+/main:net/reporting/reporting_service.h;l=64 for its eventual usage.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Camille Lamy
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Icc18d4d5a98beca751497a1b7da2a5617995d031
        Gerrit-Change-Number: 7718819
        Gerrit-PatchSet: 4
        Gerrit-Owner: Mike West <mk...@chromium.org>
        Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
        Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
        Gerrit-Reviewer: Mike West <mk...@chromium.org>
        Gerrit-Reviewer: Shivani Sharma <shiva...@chromium.org>
        Gerrit-CC: James Maclean <wjma...@chromium.org>
        Gerrit-Attention: Camille Lamy <cl...@chromium.org>
        Gerrit-Comment-Date: Fri, 03 Apr 2026 16:57:28 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Shivani Sharma <shiva...@chromium.org>
        Comment-In-Reply-To: Camille Lamy <cl...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy
        Reply all
        Reply to author
        Forward
        0 new messages