Skip to content

runner: trust the egress CA bundle and give git placeholder credentials - #581

Merged
yongruilin merged 1 commit into
google:mainfrom
yongruilin:runner-egress-env
Nov 13, 2026
Merged

yongruilin merged 1 commit into
google:mainfrom
yongruilin:runner-egress-env

Conversation

@yongruilin

Copy link
Copy Markdown
Collaborator

Prepare task sandboxes for Gateway egress (part of #549). A task's network access does not change yet.

  • Every task's ActorTemplate mounts Substrate's egress trust bundle at /run/ate/egress-trust-bundle/trust-bundle.pem.
  • The runner points SSL_CERT_FILE, CURL_CA_BUNDLE, REQUESTS_CA_BUNDLE, NODE_EXTRA_CA_CERTS and GIT_SSL_CAINFO at it when it exists, unless spec.env sets them.
  • The runner defaults GIT_ASKPASS to /ax/git-askpass, a link to itself; started under that name, the program prints a placeholder from init and exits, for a Gateway rule to replace.
  • It sets no API key variables: a task sets its own placeholders in spec.env.

Follow-up: apply the bound Gateway's rules to the task's actor.

Every task mounts the egress trust bundle, and the runner points the CA
variables at it and answers git's credential prompts with a placeholder.

@mayawang mayawang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, nice that git gets a placeholder so real tokens never land in the sandbox. Tiny unrelated nit while you're in runner.md: it still says the setup marker lives under /ax, #551 moved it onto the workspace volume

@yongruilin

yongruilin commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator Author

LGTM, nice that git gets a placeholder so real tokens never land in the sandbox. Tiny unrelated nit while you're in runner.md: it still says the setup marker lives under /ax, #551 moved it onto the workspace volume

Thanks! I think #580 already fixed that sentence, it now says <workspace>/.ax/initialized. cc @YoyinZyc

@yongruilin
yongruilin merged commit edf5236 into google:main Nov 13, 2026
10 checks passed
@rakyll rakyll mentioned this pull request Nov 21, 2026
4 of 6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants