Skip to content

chore(auth): Address remaining Regional Access Boundary feedback - #12867

Merged
vverman merged 11 commits into
googleapis:regional-access-boundariesfrom
vverman:rab-clean
May 8, 2026
Merged

chore(auth): Address remaining Regional Access Boundary feedback#12867
vverman merged 11 commits into
googleapis:regional-access-boundariesfrom
vverman:rab-clean

Conversation

@vverman

Copy link
Copy Markdown
Contributor
  1. The RAB refresh uses a direct executor with a fixed thread pool as opposed to instantiating a new thread each time.

  2. The RAB env gate -> GOOGLE_AUTH_TRUST_BOUNDARY_ENABLE_EXPERIMENT has been removed. This means RAB refresh triggers by default.

  3. Added other fixes/suggestions made in the previous Java PR.

@vverman
vverman requested review from a team as code ownersApril 20, 2026 22:06
@vverman
vverman requested review from lqiu96 and nbayatiApril 20, 2026 22:08

@gemini-code-assistgemini-code-assistBot left a comment

Copy link
Copy Markdown
Contributor

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 the RegionalAccessBoundary and RegionalAccessBoundaryManager classes to improve resource management and testability. Key changes include replacing environment-variable-based feature toggling with a ThreadLocal mechanism for tests, migrating from manual thread creation to a bounded ExecutorService for asynchronous refresh tasks to prevent resource exhaustion, and ensuring HTTP responses are properly disconnected in a finally block. Additionally, the test suite has been migrated to JUnit 5, and several tests were cleaned up by removing deprecated environment provider mocks. I have no feedback to provide.

@vvermanvverman changed the title feat: Update Regional Access Boundaryfeat(auth): Update Regional Access BoundaryApr 22, 2026
@lqiu96lqiu96 changed the title feat(auth): Update Regional Access Boundarychore(auth): Address remaining Regional Access Boundary feedbackApr 23, 2026
@lqiu96

Copy link
Copy Markdown
Member

@vverman The sdk-platform-java-ci CI issues are not relevant for this PR (existing issues as part of the monorepo migration).

PTAL at the conventialcommit CI complaints: https://github.com/googleapis/google-cloud-java/pull/12867/checks?check_run_id=72739487063

@vverman

Copy link
Copy Markdown
ContributorAuthor

Conventional commits addressed.

@vverman
vverman requested a review from lqiu96April 24, 2026 19:45

@lqiu96lqiu96 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Changes LGTM overall. Added a few comments if you could take a look. I'm not entirely sure what the DISABLE_RAB_TESTS_ENV is for

@vverman

Copy link
Copy Markdown
ContributorAuthor

Added per-test disablement of RAB refresh and bounded queue.

@vverman
vverman requested review from lqiu96 and lsiracMay 1, 2026 21:32
@vverman
vverman requested a review from lsiracMay 3, 2026 07:59

@lqiu96lqiu96 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

added a few small nits. Changes look fine on my end. PTAL at the nits and see if the make sense/ should be addressed. Feel free to merge afterwards

@vverman
vverman merged commit 5c279c6 into googleapis:regional-access-boundariesMay 8, 2026
83 of 90 checks passed
vverman added a commit to vverman/google-cloud-java that referenced this pull request Jul 8, 2026
…gleapis#12867)
1. The RAB refresh uses a direct executor with a fixed thread pool as
opposed to instantiating a new thread each time.
2. The RAB env gate -> GOOGLE_AUTH_TRUST_BOUNDARY_ENABLE_EXPERIMENT has
been removed. This means RAB refresh triggers by default.
3. Added other fixes/suggestions made in the previous Java
[PR](googleapis/google-auth-library-java#1880).
Sign up for freeto 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.

4 participants

@vverman@lqiu96@lsirac@nbayati