Skip to content

impl(oauth2): also exclude mtls regional endpoints from RAB#16148

Open
scotthart wants to merge 2 commits into
googleapis:mainfrom
scotthart:oauth2_rab_mtls_endpoint
Open

impl(oauth2): also exclude mtls regional endpoints from RAB#16148
scotthart wants to merge 2 commits into
googleapis:mainfrom
scotthart:oauth2_rab_mtls_endpoint

Conversation

@scotthart

Copy link
Copy Markdown
Member

Expand the collection of potential regional endpoint suffixes that do not need location tokens to include mtls regional endpoints.

@scotthart scotthart requested a review from a team as a code owner June 9, 2026 21:09

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors RegionalAccessBoundaryTokenManager::DoesEndpointRequireToken to check for additional regional endpoint suffixes, specifically .rep.mtls.googleapis.com and .rep.mtls.sandbox.googleapis.com, and adds corresponding unit tests. The reviewer suggested optimizing the static array of suffixes by using std::string_view instead of char const* to enable compile-time string length computation and avoid runtime strlen overhead.

Comment thread google/cloud/internal/oauth2_regional_access_boundary_token_manager.cc Outdated
@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.19%. Comparing base (fd73bee) to head (9df0820).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16148      +/-   ##
==========================================
- Coverage   92.20%   92.19%   -0.02%     
==========================================
  Files        2264     2264              
  Lines      208864   208872       +8     
==========================================
- Hits       192579   192564      -15     
- Misses      16285    16308      +23     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Successfully merging this pull request may close these issues.

1 participant