Every Devbox comes with Namespace workload identity. The
nsc CLI is installed and logged in on every Devbox, and uses it to get short-lived credentials.Trust Namespace in your cloud
Set this up once in your cloud account: AWS or GCP. The trust covers your whole workspace, so every Devbox in it, and every other Namespace machine, can use the role you allow.Get AWS credentials
aws.env as environment variables. Source it before running AWS tools.
Get GCP credentials
GOOGLE_APPLICATION_CREDENTIALS at /tmp/gcp-creds.json so Google Cloud tools use it.
Get a token for any OIDC service
https://federation.namespaceapis.com, so any service that accepts OIDC tokens can verify it. Set the audience to the value that service expects.
Related
- Workload federation for the other direction: reaching Namespace from AWS, GCP, or CI.
- Secrets for services that only accept an API key.