ZICQ
中 Log in / Sign up
Newsroom Compute & Architecture #Baseten #least privilege #OIDC #BDN sealed volumes #egress controls

Baseten Tightens Inference Security with OIDC, Sealed Volumes, and Egress Controls

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published: · 1 views

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:Baseten has documented a least-privilege control chain for inference deployments. Runtime OIDC replaces static cloud keys with signed, workload-bound tokens; BDN Sealed Volumes pin base weights as immutable, digest-addressed read-only mounts; and per-deployment egress allow lists constrain outbound destinations. The split lets base weights travel through a pre-mirrored path while dynamic LoRA adapters are fetched with narrowly scoped temporary credentials. The architecture removes long-lived ke


Baseten separates long-lived cloud credentials, base-weight downloads, and open internet egress into three independent boundaries for inference containers. The important shift is not an additional permission layer inside the model; it is coordination between cloud IAM, workload identity, artifact distribution, and network policy throughout the deployment lifecycle.

Identity boundary: replacing static keys with OIDC

Conventional deployments often place an AWS IAM access key or GCP service-account key inside the runtime environment. Those credentials must be stored, rotated, and audited, and a leaked key can be used at its full privilege level until it is revoked.

Baseten's runtime OIDC flow creates a short-lived identity chain:

  1. Baseten issues a signed token bound to a specific deployment and workload.
  2. The cloud validates that identity through a preconfigured trust relationship instead of accepting a stored long-term key.
  3. On AWS, the container exchanges the OIDC token through STS for temporary credentials tied to an IAM role. Those credentials inherit the role policy but expire automatically.
  4. Model code calls STS only when needed, selects and downloads the required LoRA adapter, and loads it into the serving process.
  5. Baseten refreshes the mounted OIDC token to reduce failures caused by expiration in long requests or long-lived replicas.

Runtime tokens carry the model_container workload type, allowing a cloud trust policy to grant adapter-read access only to running model containers rather than to build or release pipelines. The adapter role should receive s3:GetObject on one prefix without write, delete, or broader-prefix permissions. Build-time weight synchronization and runtime adapter retrieval therefore use separate identities.

Removing static credentials does not eliminate credential exposure. Malicious code that obtains STS credentials can use every action granted to that role until the session expires. Role actions, resource prefixes, token lifetime, and reachable networks must therefore be constrained independently.

Artifact boundary: pinning base weights with BDN sealed volumes

BDN Sealed Volumes first synchronize base weights into Baseten-managed storage and publish an immutable version identified by a content digest. A deployment references that digest, and replicas receive a read-only mount without downloading the weights from the original S3 bucket during startup.

The design provides three engineering benefits:

  • Version consistency: replicas mount the same digest and avoid serving different weight revisions.
  • Cold-start decoupling: startup and scale-out no longer depend on the live availability of the source bucket.
  • Supply-chain isolation: serving containers do not need read credentials for the base-weight bucket.

Baseten states that updates upload only changed content, but it does not disclose the chunking, incremental computation, or deduplication algorithm, so no specific bandwidth-saving ratio can be inferred. A digest provides content addressing and version pinning, not authorization; deployments able to obtain a digest must still be constrained by platform RBAC and environment permissions.

Sealed volumes remove the direct source-bucket download path but not every cost. Initial synchronization still consumes time, bandwidth, and storage. Replicas still mount and load the model, while Baseten-managed storage becomes another infrastructure dependency. Keeping multiple weight revisions also requires policies for storage cost, deletion, and sensitive-data retention.

Dynamic adapters: preserving hot updates while isolating runtime dependencies

LoRA adapters often change more frequently than base weights, so Baseten keeps them on a runtime retrieval path. After exchanging its OIDC token for temporary credentials, the container can read only the designated adapter prefix. Model code remains responsible for adapter selection, download, validation, and loading.

This split avoids redeploying the base model for every adapter change, but it also makes requests dependent on the availability of STS and the adapter store. A read-only IAM policy restricts accessible objects but does not prove that an adapter is trustworthy. Production deployments should verify manifests, checksums, or signatures to prevent a compromised object store from injecting malicious weights.

Network boundary: making egress a deployment-level policy

By default, deployments may contact internet hosts over TCP ports 80 and 443. Egress controls introduce per-deployment allow lists for domains and IP ranges. Empty lists on both dimensions block all egress, while omitting the configuration preserves the default behavior. In the adapter example, the allow list must cover both the S3 download endpoint and the AWS STS endpoint used to exchange the OIDC token.

Domains are ultimately enforced by IP address. A network policy can therefore restrict connection destinations but cannot constrain HTTP paths, request methods, or S3 object prefixes. This is particularly important for S3, where shared infrastructure IPs mean that reaching the service does not imply permission to read every bucket. Object-level authorization must remain in IAM.

Egress allow lists reduce lateral movement toward cloud control planes, metadata services, and unknown destinations, but they do not replace an L7 gateway, IAM, or server-side authorization. Broad shared-IP ranges weaken isolation, while narrow lists may break adapter loading when cloud endpoints change. DNS resolution, re-resolution, and the address used for the actual connection must also be tested.

Separating platform permissions from workload permissions

Baseten's RBAC, restricted environments, and granular API keys control who can manage models, change production environments, and invoke inference endpoints. OIDC, sealed volumes, and egress policies instead control what each deployment can access. Both layers are required: a platform administrator's ability to deploy a model should not cause the serving container to inherit that administrator's cloud resource permissions.

Engineering trade-offs

| Control | Primary benefit | Cost and boundary | |---|---|---| | Runtime OIDC | Removes static cloud keys and automatically rotates short-lived identities | Introduces STS dependency; malicious processes can still abuse temporary credentials | | BDN sealed volumes | Pins weight versions and decouples cold starts from the source bucket | Adds presynchronization and managed-storage costs, creating another platform dependency | | Runtime adapters | Enables LoRA hot updates without redeploying the base model | Requests still depend on STS and the adapter endpoint; integrity requires separate validation | | Egress allow lists | Limits lateral movement and data-exfiltration destinations | Dynamic IPs can affect availability, and network policy does not provide object-level authorization |

Egress-policy changes require a new deployment. This supports workload-specific review and rollback, but it also means emergency blocking depends on deployment orchestration. Sensitive teams should prepare a fallback deployment with all egress disabled instead of editing policy during an incident.

Performance and validation: no quantitative measurements yet

Baseten describes BDN as making cold starts faster and more reliable, but does not report median or P99 startup latency, scale-out time, throughput, storage bandwidth, or error rates. Exchanging an OIDC token introduces an STS network round trip, while sealed volumes change how model files are read. Those costs may vary substantially with model size, replica count, and region.

Production validation should cover at least the following comparisons:

  • Compare P50, P95, and P99 cold-start latency with direct bucket access versus sealed-volume mounts, including both the first replica and large scale-out events.
  • Measure first token exchange, automatic refresh, and failure behavior during STS outages.
  • Exercise adapter-cache hits, cache misses, and degraded behavior when the adapter store is unavailable.
  • Test prefix isolation, denied writes, and cross-bucket reads to confirm that network reachability does not become data access.
  • Test allowed destinations, denied destinations, shared IPs, changing addresses, and a fully closed egress policy.
  • Simulate replacement of a model or dependency to verify whether temporary credentials, adapter provenance, and network policy jointly constrain the blast radius.

Deployment recommendations

  1. Separate base weights, LoRA adapters, and external APIs to identify what should be pre-mirrored and what genuinely requires runtime access.
  2. Synchronize base weights to BDN, pin the immutable digest, and stop issuing base-weight bucket credentials to serving containers.
  3. Create a separate adapter IAM role with read-only access to the target prefix and constrain its trust policy to the model_container workload type.
  4. Add STS and adapter endpoints to the egress allow list. Models requiring no outbound access should explicitly use empty lists rather than relying on defaults.
  5. Compare latency, throughput, and failure rates through canary deployments, while retaining the previous digest and network policy for rollback.
  6. Record STS role use, denied actions, adapter digests, and unusual egress connections, then incorporate workload-identity events into alerting and incident response.

The central value of this control chain is that it separates static credentials, base-weight dependencies, and open egress into independently reviewable boundaries. It can shrink the lateral impact of a leaked credential or malicious dependency, but it does not replace container hardening, API-key hygiene, supply-chain validation, network monitoring, or recovery mechanisms.


Source: Baseten Blog (2026-11-25)

— END —

Tags: #Baseten #least privilege #OIDC #BDN sealed volumes #egress controls

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
Explore & Submit Works

Community Comments

Loading live comments and annotations…