Open
Conversation
Allow selfhosted task pods to override the auth type via the _U_AUTH_TYPE environment variable. When set to "Passthrough", the SDK skips OAuth metadata fetching against the queue service endpoint, which doesn't implement AuthMetadataService and would cause cascading DEADLINE_EXCEEDED errors. This is intended for selfhosted environments where OAuth is not required, e.g. closed network deployments where task pods connect directly to internal services bypassing ingress and authentication. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Michael Hotan <mike@union.ai>
7f281ef to
0fe6595
Compare
pingsutw
approved these changes
Feb 13, 2026
pingsutw
reviewed
Feb 13, 2026
| # where the endpoint is the queue service which doesn't implement AuthMetadataService) | ||
| auth_type_str = os.getenv(AUTH_TYPE_OVERRIDE, "") | ||
| if auth_type_str: | ||
| remote_kwargs["auth_type"] = auth_type_str |
Member
There was a problem hiding this comment.
qq: can we always set it to Passthrough when _U_INSECURE_SKIP_VERIFY is true
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_U_AUTH_TYPEenvironment variable ininit_in_cluster(), allowing task pods to override the default PKCE auth type"Passthrough", the SDK skips OAuth metadata fetching (AuthMetadataService.GetOAuth2Metadata()), which prevents cascadingDEADLINE_EXCEEDEDerrors against endpoints that don't implementAuthMetadataServiceTest plan
_U_AUTH_TYPE=Passthroughis picked up byinit_in_cluster()and passed through toinit.aio()asauth_typeDEADLINE_EXCEEDEDonEnqueueActiongRPC calls🤖 Generated with Claude Code