Skip to content

Commit e0d1e5d

Browse files
Ambient Code Botclaude
andcommitted
fix(runner): allow short-form .svc DNS in credential fetch allowlist
BACKEND_API_URL is set to short-form Kubernetes service DNS (e.g. ambient-api-server.ambient-code--ambient-s0.svc:8000) in OSD deployments. The cluster-local security check only allowed .svc.cluster.local, causing all credential fetches to be rejected. Short-form .svc hostnames resolve only within the cluster and are equivalent to .svc.cluster.local for security purposes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 533f368 commit e0d1e5d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • components/runners/ambient-runner/ambient_runner/platform

components/runners/ambient-runner/ambient_runner/platform/auth.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ async def _fetch_credential(context: RunnerContext, credential_type: str) -> dic
122122
parsed = urlparse(base)
123123
if parsed.hostname and not (
124124
parsed.hostname.endswith(".svc.cluster.local")
125+
or parsed.hostname.endswith(".svc")
125126
or parsed.hostname == "localhost"
126127
or parsed.hostname == "127.0.0.1"
127128
):

0 commit comments

Comments
 (0)