GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — google-auth: benign Regional Access Boundary (trust boundary) lookup failure logged at WARNING on every service-account refresh · Issue #17515 · googleapis/google-cloud-python

google-auth: benign Regional Access Boundary (trust boundary) lookup failure logged at WARNING on every service-account refresh #17515

New issue
Copy link
New issue
Copy link
Closed
#17543
#17571
Closed
google-auth: benign Regional Access Boundary (trust boundary) lookup failure logged at WARNING on every service-account refresh#17515
#17543
#17571
Copy link

Description

@SailingGreg
SailingGreg
opened on Jun 19, 2026
Issue body actions

Summary

When a service_account.Credentials refreshes, google-auth performs a best‑effort Regional Access Boundary (RAB / trust boundary) lookup. If that lookup fails it is caught, None is returned, and the credential continues to work normally with its access token.

The problem is the log level and wording: the failure is emitted at WARNING as

Regional Access Boundary HTTP request failed after retries: response_data={'error': {'code': 400, 'message': 'Precondition check failed.', 'status': 'FAILED_PRECONDITION'}}, retryable_error=False

For an org that has not enabled the RAB/trust‑boundary feature, the endpoint returns 400 FAILED_PRECONDITION on every token refresh. This is an expected, benign "not configured" condition, but it surfaces as a scary ... HTTP request failed after retries warning that trips log‑based alerting and monitoring.

Notably this fires even though GOOGLE_AUTH_TRUST_BOUNDARY_ENABLED is unset in our environment — i.e. we never opted into the feature, yet we get a recurring warning about it.

Environment

  • google-auth 2.54.0
  • Python 3.12
  • Credential type: google.oauth2.service_account.Credentials (used via AuthorizedSession against the Google Wallet walletobjects API)
  • GOOGLE_AUTH_TRUST_BOUNDARY_ENABLED: unset
  • GCP org: RAB / trust‑boundary feature not enabled

Steps to reproduce

  1. Use a service‑account credential in a project/org where the RAB feature is not enabled.
  2. Trigger a credential refresh (e.g. make any authenticated API call after the token is stale).
  3. Observe a WARNING log line on each refresh.

Observed behaviour

Recurring WARNING on every token refresh:

Regional Access Boundary HTTP request failed after retries: response_data={'error': {'code': 400, 'message': 'Precondition check failed.', 'status': 'FAILED_PRECONDITION'}}, retryable_error=False

The downstream API call succeeds normally — the warning is purely from the ancillary RAB probe.

Relevant code (2.54.0)

  • google/oauth2/_client.py — _lookup_regional_access_boundary_request(...) logs _LOGGER.warning("Regional Access Boundary HTTP request failed after retries: ...") and then return None (failure is non‑fatal).
  • google/auth/_regional_access_boundary_utils.py — the RAB manager already treats lookup exceptions as best‑effort ("If the lookup raises an exception, it is caught and logged as a warning").
  • is_regional_access_boundary_enabled() reads GOOGLE_AUTH_TRUST_BOUNDARY_ENABLED; unset ⇒ False.

Expected behaviour

A best‑effort, swallowed lookup should not log at WARNING for an expected "feature not enabled" outcome. Suggested options (any one would resolve it):

  1. Downgrade to DEBUG (or INFO) for the RAB lookup‑failed message, since the result is discarded and the credential still functions.
  2. Special‑case FAILED_PRECONDITION / feature‑not‑enabled as a non‑warning (it is a configuration state, not a transport failure), reserving WARNING for genuine transport errors.
  3. Only WARNING when the feature is explicitly enabled (GOOGLE_AUTH_TRUST_BOUNDARY_ENABLED=true), so users who never opted in don't get recurring noise.

Softening the wording (it isn't really "failed after retries" from the caller's perspective — it's an optional probe that was skipped) would also help.

Impact

Low functional impact (auth works), but it's persistent log noise that masquerades as an error in log‑based monitoring for any service‑account user whose org hasn't enabled RAB — likely a large set of users, since the feature is opt‑in.

Reacted by Lap-Hang Ho, Diogo Raposo, Ke-Jou Hsu, Luis Filipe dos S Nunes, Victor, ethan-bork and James Sherwood-Jones

Activity

  1. laphang commented on Jun 22, 2026

    @laphang
    laphang
    on Jun 22, 2026
    More actions

    I'm seeing this as well on google-auth==2.55.0

    Reacted by Diogo Raposo, Ke-Jou Hsu and madcastello
  2. oiluis commented on Jun 22, 2026

    @oiluis
    oiluis
    on Jun 22, 2026
    More actions

    Any news here!? Facing the same issue

  3. vijaytdh commented on Jun 24, 2026

    @vijaytdh
    vijaytdh
    on Jun 24, 2026
    More actions

    We are also seeing this same issue and in our case we use VPC Service Controls, and we think this error may be causing VPC SC to block requests. A redacted example log entry is shown below:

    {
      "textPayload": "Regional Access Boundary HTTP request failed after retries: response_data={'error': {'code': 403, 'message': \"Request is prohibited by organization's policy. vpcServiceControlsUniqueIdentifier: 2FxcIVEBBGWacrTitEvuRn5P86wM2OIdG5lXDSk1QelHLWeykLHJFQEtIUgqkWZ4VrbTcXhgHeDQEoM\", 'status': 'PERMISSION_DENIED', 'details': [{'@type': 'type.googleapis.com/google.rpc.PreconditionFailure', 'violations': [{'type': 'VPC_SERVICE_CONTROLS', 'description': '2FxcIVEBBGWacrTitEvuRn5P86wM2OIdG5lXDSk1QelHLWeykLHJFQEtIUgqkWZ4VrbTcXhgHeDQEoM'}]}, {'@type': 'type.googleapis.com/google.rpc.ErrorInfo', 'reason': 'SECURITY_POLICY_VIOLATED', 'domain': 'googleapis.com', 'metadata': {'uid': '2FxcIVEBBGWacrTitEvuRn5P86wM2OIdG5lXDSk1QelHLWeykLHJFQEtIUgqkWZ4VrbTcXhgHeDQEoM', 'service': 'iamcredentials.googleapis.com', 'troubleshootToken': 'AV9j7U2cw-yQynS6z6V404xlS7fLjAwt_58NNH3oXe4YaH8-FyzTo915112yCPPQdMFsmtfWVEjkP0fLKaaR9mS9OeFD26W8aC0uN28NyWDSjypcmAp9duAZDHRqx4r1MMJ2oUcpWXn-hcuDNBu8lrVYITrqbn6fmCICwlgTg4kSyySFz6621RTn_ZcWr5m3OzFy1ulQX8MR_F0UgjZeepkZ0I8c8HQnPslhPLC8LAMIXk5r0YGO-jqGgjK8FaubGamqS3w3d1wg3v4X1znU-32AKtd_A0FxeJzEOdTW8BoeuLv34tg1tfU7wCYE0z136rRyeegw1dK0CttJH9qAxMtjHhpHJbLh90n8CG0C0e4Br1gYYgPnHz4pFHhd-LAsOdlvhl8cwa_zCgoDyL_IP8kLcMUFGJ_K5Zh2VP8pitqQfdeu5-KwOM7cOXUNmwBsnj3skIZXwJIfo--p0xPGaAkcjuNmHXelfJSmXFFQEHaAkRrrrW58m7CNHFYZlU4MbAhKGgMTG0VjtuOiGs4kscGwY-k'}}]}}, retryable_error=False",
      "insertId": "3xuwki71fglobfop",
      "resource": {
        "type": "k8s_container",
        "labels": {
          "location": "europe-west1",
        }
      },
      "timestamp": "2026-06-24T05:08:15.444338518Z",
      "severity": "INFO",
      "labels": {
        "k8s-pod/environment": "prd"
      },
      "logName": "projects/redacted/logs/stdout",
      "receiveTimestamp": "2026-06-24T05:08:18.613235953Z"
    }

    Like others we do not have PAB enabled.

  4. vijaytdh commented on Jun 25, 2026

    @vijaytdh
    vijaytdh
    on Jun 25, 2026
    More actions

    We are also seeing this same issue and in our case we use VPC Service Controls, and we think this error may be causing VPC SC to block requests. A redacted example log entry is shown below:

    {
    "textPayload": "Regional Access Boundary HTTP request failed after retries: response_data={'error': {'code': 403, 'message': "Request is prohibited by organization's policy. vpcServiceControlsUniqueIdentifier: 2FxcIVEBBGWacrTitEvuRn5P86wM2OIdG5lXDSk1QelHLWeykLHJFQEtIUgqkWZ4VrbTcXhgHeDQEoM", 'status': 'PERMISSION_DENIED', 'details': [{'@type': 'type.googleapis.com/google.rpc.PreconditionFailure', 'violations': [{'type': 'VPC_SERVICE_CONTROLS', 'description': '2FxcIVEBBGWacrTitEvuRn5P86wM2OIdG5lXDSk1QelHLWeykLHJFQEtIUgqkWZ4VrbTcXhgHeDQEoM'}]}, {'@type': 'type.googleapis.com/google.rpc.ErrorInfo', 'reason': 'SECURITY_POLICY_VIOLATED', 'domain': 'googleapis.com', 'metadata': {'uid': '2FxcIVEBBGWacrTitEvuRn5P86wM2OIdG5lXDSk1QelHLWeykLHJFQEtIUgqkWZ4VrbTcXhgHeDQEoM', 'service': 'iamcredentials.googleapis.com', 'troubleshootToken': 'AV9j7U2cw-yQynS6z6V404xlS7fLjAwt_58NNH3oXe4YaH8-FyzTo915112yCPPQdMFsmtfWVEjkP0fLKaaR9mS9OeFD26W8aC0uN28NyWDSjypcmAp9duAZDHRqx4r1MMJ2oUcpWXn-hcuDNBu8lrVYITrqbn6fmCICwlgTg4kSyySFz6621RTn_ZcWr5m3OzFy1ulQX8MR_F0UgjZeepkZ0I8c8HQnPslhPLC8LAMIXk5r0YGO-jqGgjK8FaubGamqS3w3d1wg3v4X1znU-32AKtd_A0FxeJzEOdTW8BoeuLv34tg1tfU7wCYE0z136rRyeegw1dK0CttJH9qAxMtjHhpHJbLh90n8CG0C0e4Br1gYYgPnHz4pFHhd-LAsOdlvhl8cwa_zCgoDyL_IP8kLcMUFGJ_K5Zh2VP8pitqQfdeu5-KwOM7cOXUNmwBsnj3skIZXwJIfo--p0xPGaAkcjuNmHXelfJSmXFFQEHaAkRrrrW58m7CNHFYZlU4MbAhKGgMTG0VjtuOiGs4kscGwY-k'}}]}}, retryable_error=False",
    "insertId": "3xuwki71fglobfop",
    "resource": {
    "type": "k8s_container",
    "labels": {
    "location": "europe-west1",
    }
    },
    "timestamp": "2026-06-24T05:08:15.444338518Z",
    "severity": "INFO",
    "labels": {
    "k8s-pod/environment": "prd"
    },
    "logName": "projects/redacted/logs/stdout",
    "receiveTimestamp": "2026-06-24T05:08:18.613235953Z"
    }
    Like others we do not have PAB enabled.

    Actually it does not actually cause VPC SC to block anything it just made it look like it was - apologies for any confusion.

  5. nbayati
    closed this as completedin #17571on Jun 25, 2026
  6. nbayati
    added a commit that references this issue on Jun 25, 2026

    fix(auth): lower regional access boundary logs from warning to debug. (…

    This issue will close once commit 1ef4183 is merged into the 'main' branch.
    1ef4183
  7. parthea
    added a commit that references this issue on Jun 25, 2026

    chore: release main (#17543)

    900d51f
  8. jay0lee commented on Jul 7, 2026

    @jay0lee
    jay0lee
    on Jul 7, 2026
    Contributor
    More actions

    Can someone explain why this API is necessary for ALL service account usage? It's rather messy and confusing to developers that we're adding an API call here that we EXPECT to return an error message and we don't care because it can be ignored anyway but we aren't giving developers any method to turn this checks off?

    I'd recommend reconsidering allowing developers to turn this check off without needing to modify privates like:

    def _disableRegionalAccessBoundary(credentials):
      """Disable Regional Access Boundary (trust boundary) lookups."""
      if hasattr(credentials, '_is_regional_access_boundary_lookup_required'):
        credentials._is_regional_access_boundary_lookup_required = lambda: False
    
  9. jay0lee commented on Jul 8, 2026

    @jay0lee
    jay0lee
    on Jul 8, 2026
    Contributor
    More actions

    FYI, since this remains close and was about log suppression, not completely disabling RAB I've opened:

    #17653

    to discuss a public method / attribute to completely disable this API call.

  10. nbayati commented on Jul 8, 2026

    @nbayati
    nbayati
    on Jul 8, 2026
    Contributor
    More actions

    @jay0lee Thank you for raising the concern. We do realize that the log noise has been disruptive, and that was never the intention or the expected behavior. The expectation is that the RAB api call succeeds, and in case of a failure, the SDK fails open and continues to serve the underlying api call. There is a fix on the way from the backend for the failed calls, and we have reduced the log level to mitigate the log noise in the meantime.

  11. jay0lee
    added a commit that references this issue on Jul 10, 2026

    Disable Regional Access Boundary (allowedLocations) lookups

    72875f9
  12. mschulz
    added a commit that references this issue on Jul 18, 2026

    Filter benign google-auth Regional Access Boundary probe noise

    db79a40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.