egress: preserve_auth flag for per-route Authorization passthrough #453
Reference in New Issue
Block a user
Delete Branch "egress-preserve-auth-for-registry-routes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #392.
Summary
preserve_auth: trueboolean field to egress route entries. When set, the gateway skips its normal Authorization header strip for that host, allowing the agent's own bearer token to reach the upstream.registry-1.docker.io) and GHCR (ghcr.io), where the agent must supply a client-fetched per-scope token the gateway cannot inject itself.ManifestEgressRoute→EgressRoute→Route, serialized inroute_to_yaml_dict, and parsed inparse_routesin the addon core.egress_addon.pynow checksroute.preserve_authbefore popping the header.false; no existing behavior changes.Usage
In a bottle manifest: