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 #17515DescriptionSummary
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
- Use a service‑account credential in a project/org where the RAB feature is not enabled.
- Trigger a credential refresh (e.g. make any authenticated API call after the token is stale).
- 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):
- Downgrade to
DEBUG (or INFO) for the RAB lookup‑failed message, since the result is discarded and the credential still functions.
- 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.
- 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 Activitylaphang commented on Jun 22, 2026 I'm seeing this as well on google-auth==2.55.0 Reacted by Diogo Raposo, Ke-Jou Hsu and madcastello oiluis commented on Jun 22, 2026 Any news here!? Facing the same issue vijaytdh commented on Jun 24, 2026 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. vijaytdh commented on Jun 25, 2026
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. added a commit that references this issue on Jun 25, 2026This issue will close once commit 1ef4183 is merged into the 'main' branch.1ef4183 jay0lee commented on Jul 7, 2026 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
jay0lee commented on Jul 8, 2026 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. nbayati commented on Jul 8, 2026 @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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|