<#662 Add _U_AUTH_TYPE env var to init_in_cluster(...
# flyte-github
a
#662 Add _U_AUTH_TYPE env var to init_in_cluster() Pull request opened by mhotan ## Summary • Adds support for the
_U_AUTH_TYPE
environment variable in
init_in_cluster()
, allowing task pods to override the default PKCE auth type • When set to
"Passthrough"
, the SDK skips OAuth metadata fetching (
AuthMetadataService.GetOAuth2Metadata()
), which prevents cascading
DEADLINE_EXCEEDED
errors against endpoints that don't implement
AuthMetadataService
• Intended for selfhosted / closed network environments where OAuth is not required and task pods connect directly to internal services (e.g. the queue service) bypassing ingress and authentication ## Test plan • Verify
_U_AUTH_TYPE=Passthrough
is picked up by
init_in_cluster()
and passed through to
init.aio()
as
auth_type
• Verify task pods in selfhosted deployments no longer hit
DEADLINE_EXCEEDED
on
EnqueueAction
gRPC calls • Verify default behavior (no env var set) is unchanged — PKCE auth is used as before 🤖 Generated with Claude Code flyteorg/flyte-sdk