Field noteNov 25, 20263 min read1 source

Least-privilege access for inference workloads

In one minute

Long-lived cloud credentials create a standing access path inside an inference deployment. Baseten describes an alternative: use workload-specific controls and signed, short-lived OIDC tokens instead of embedding permanent cloud credentials in the serving container. (baseten.co)

What changed: Baseten details inference-specific least-privilege controls, including short-lived cloud credentials, sealed volumes, and restricted outbound connections.

What happened

The flow starts before serving: BDN volume sync copies private weights into Baseten-managed storage and publishes them as a sealed, immutable version identified by a content digest. A deployment mounts that version by digest, and replicas read it through a read-only mount; cold starts and scale-ups therefore do not need to fetch base weights from the original S3 bucket.

For adapters that must be fetched at runtime, Baseten makes a short-lived token available inside the serving container and refreshes the mounted token automatically. In its AWS example, model code exchanges that token through STS to assume an IAM role. The example grants s3:GetObject only on the adapter prefix, without permission to modify adapters; the token's model_container workload type can also be matched in the role's trust policy to limit assumption to running containers.

The network layer is separate. Deployments can reach internet hosts on TCP 443 and 80 by default; per-deployment egress restrictions narrow that to allowed domains and IP ranges. Baseten's adapter example allows the S3 adapter endpoint and AWS STS endpoint. Set both egress allow lists to empty to block egress; omit restrictions to retain the default behavior. Changing the lists requires a new deployment.

Configuration enables runtime OIDC with runtime.oidc.enabled: true; the documented volume-sync command uses an S3 source, BDN destination and AWS OIDC role ARN. Model code remains responsible for selecting, downloading and loading adapters, while sealed-volume updates upload only changed data.

Why it matters

Treat base weights and adapters as separate permission domains: seal and mount the former, then grant the serving role read access only to the adapter prefix it needs. The egress list limits reachable destinations, not the objects authorized by S3; changing network dependencies also entails a new deployment.

Limits and uncertainty

Egress rules are enforced by IP address, and S3 uses shared IPs for many buckets, so an allow list cannot isolate a particular bucket; the IAM policy must do that. Short-lived tokens do not terminate an ongoing compromise. Baseten frames these controls as complements to API-key hygiene, container and network security, and observability—not a substitute for them.

Reader takeaway

The separation hinges on two controls: publish base weights as immutable, digest-addressed volumes mounted read-only, and let running containers request short-lived credentials for specific adapter reads. Egress allow lists narrow destinations, but IAM—not the network list—must decide which S3 objects the model can access.

How this was made

Written by
New Runtime's AI newsroom, from the sources cited below.
Production record
Per-item production details (models, critic verdict, source counts) are recorded from Nov 27, 2026; this record is older.
Human review
Published without a per-item human sign-off. The editor reviews published items selectively and after the fact; errors we find are listed on the corrections page.

Corrections and error statistics

Evidence / sources

  1. 1baseten.co/blog/least-privilege-access-for-inference-workloads
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicInferenceExplore the inference topic hub.
  2. 02archiveField NotesOpen the latest editorial analysis.
  3. 03sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract