GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — GCP OIDC: direct resource access fails with "GCP STS token expires too soon" · Issue #262 · dependabot/proxy Closed DescriptionSummaryWhen a Google Artifact Registry registry is configured for OIDC w/ direct resource access (ie no service account impersonation), the token exchange fails because the token lifetime is too short. Here's some mildly-redacted logs from a Dependabot run on a repo of mine (I've substituted And then every subsequent request to the registry is rejected with the same "credential has been rejected due to previous authentication failure". Prospective causeThe direct-WIF branch rejects any STS token with 5 minutes or less remaining: proxy/internal/oidc/actions_oidc.go Lines 758 to 763 in 8581295
And I don't think that check can ever pass, because:
I think the 5m threshold was added as part of the initial integration with GAR in #108, maybe as part of an attempt to cache the token for a bit? (There was an automated review comment about it.) Configurationdependabot.yml (redacted): registries: gar-python: type: python-index url: https://example.com/simple workload-identity-provider: projects/<project-number>/locations/global/workloadIdentityPools/<pool>/providers/<provider> In GCP, the WIF provider trusts GitHub-hosted runner (ubuntu-24.04, image 20260920.314),
ExpectedDirect WIF should work, since the docs list Note that Google also recommends direct resource access over service account impersonation where possible (link - pretty explicit, link - describes service accounts as an "alternative") Possible fixes?
Reacted by Logan Volkers Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue 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. |