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.