Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/flyte/_initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ async def init_in_cluster(
ENDPOINT_OVERRIDE = "_U_EP_OVERRIDE"
INSECURE_SKIP_VERIFY_OVERRIDE = "_U_INSECURE_SKIP_VERIFY"
INSECURE_OVERRIDE = "_U_INSECURE"
AUTH_TYPE_OVERRIDE = "_U_AUTH_TYPE"
_UNION_EAGER_API_KEY_ENV_VAR = "_UNION_EAGER_API_KEY"
EAGER_API_KEY = "EAGER_API_KEY"

Expand Down Expand Up @@ -479,6 +480,13 @@ async def init_in_cluster(
remote_kwargs["insecure_skip_verify"] = True
logger.info("SSL certificate verification disabled (insecure_skip_verify=True)")

# Check for auth_type override (e.g. "Passthrough" for selfhosted deployments
# 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

qq: can we always set it to Passthrough when _U_INSECURE_SKIP_VERIFY is true

logger.info(f"Auth type overridden to: {auth_type_str}")

await init.aio(
org=org, project=project, domain=domain, root_dir=Path.cwd(), image_builder="remote", **remote_kwargs
)
Expand Down
Loading