Registry Mirror
Skip to content

Conversation

@ridhoq

@ridhoq Ridwan Hoq (ridhoq) commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

What this changes

The installer now installs unmodified upstream Agent Substrate v1.0.0 with the out-of-tree Azure Blob object-store plugin, replacing the aramase/substrate fork it pinned before.

Pins

Images: release (default) or source

  • release:

    1. Checks that every image upstream published to ghcr.io/agent-substrate/substrate for the tag is labelled as built from the pinned commit (org.opencontainers.image.revision). Pinning the release's image digests themselves is tracked in Supported Substrate release catalog: choose version and image source, pin release image digests #17.
    2. Imports each one into the installation's ACR by digest with az acr import.

    It needs no Docker or Podman.

  • source: builds the release images with the pinned ate-setup publish release-images, as before, adapted to 1.0. It's set in installation.json.

  • Both: build the counter demo (releases don't publish it) and the plugin with ko.

  • Upstream patches: the old root.go patch is gone. Only the source track's Podman adapter remains: a single call swap and a Dockerfile base-image rewrite.

Plugin deployment

  • Sidecars: the plugin's own kustomize components (config/, config/assets/) configure both objectstore-plugin sidecars. The installer fills their documented placeholders, checking that each appears exactly as often as the pinned plugin uses it, and renders them onto the pinned atelet.yaml and ate-api-server.yaml.
  • Removed and renamed: the installer's own sidecar patch is gone, and deploy/components/storage is now actor-images, which only sets up ACR pulls for actor images.
  • MicroVM assets: hack/microvm-assets/assemble.sh was deleted upstream, so assets are assembled by the pinned ate-setup's own Go code through a small helper. They're uploaded as content-addressed blobs, and the moved SandboxConfig template is rendered for amd64.

ate-setup on a non-GKE cluster

1.0's ate-setup assumes GCS on every non-kind cluster:

  • Transfer account: it refuses to deploy without a snapshot transfer service account. The installer passes placeholders. The only place they end up is a ConfigMap key read by an argument the plugin component replaces, and a contract test fails if ate-setup starts reading them anywhere new.
  • MicroVM assets: it would stage them to GCS, so deploy ate-system runs with --sandbox-classes gvisor and the installer applies the microVM SandboxConfig itself.

agent-substrate/substrate#3651 proposes --storage-backend=external and --component to replace both workarounds.

Also in this PR

  • Router ingress: 1.0's atenet-router admits no clients unless allowlisted. The installer allows the ate-system/atenet-client identity that kubectl ate proxy uses (ate-setup's --ingress-allowed-spiffe-ids), so the counter demo is reachable again. Anyone who can request that certificate, such as a cluster admin, can reach every actor.

  • Worker pool options:

    • aks.workerPool.osDiskType (Managed or Ephemeral): Ephemeral puts the OS disk, and /var/lib/ate with it, on local NVMe on v6/v7 "d" sizes.
    • osDiskSizeGB: 30–2048, and at most 2,040 for Ephemeral (Azure's limit).
    • maxPods: 10–250, otherwise the AKS default. AKS also needs room for at least 30 pods in the pool, so maxPods × count must be at least 30.

    They're Bicep parameters, so direct deployments get them too. Preflight checks that an ephemeral disk fits the VM's local storage. plan and provision refuse to change these on an existing pool, including removing a previously set maxPods, since AKS can't change them. A dedicated local NVMe mount for /var/lib/ate/snapshots is tracked in Dedicated local NVMe snapshot disk for microVM workers #18.

  • Setup summary: shows the Substrate version, the image source and the plugin commit before billing approval. Choosing them in setup is tracked in Supported Substrate release catalog: choose version and image source, pin release image digests #17.

  • Install record and status: the install record now also stores the tag and plugin repository and commit, and status reports the installed Substrate and plugin revisions from it rather than from the local configuration.

  • Upgrade guard first: install, demo and client check the install record before fetching source or checking images, so an installation from the previous pin gets the "upgrades are not implemented" message instead of an unrelated source error.

  • Environment: SETUP_CSI and STORAGE_CLASS from the caller's shell no longer reach the pinned ate-setup, which reads both.

Validation

  • make build verify test-unit test-contract bicep passes. The contracts now also:
    • check that the vendored plugin components match the pin;
    • run the pinned ate-setup with every flag the installer passes;
    • check the live release inventory;
    • assemble the real microVM assets.
  • Live install on rc.3, 2× Standard_D8s_v7 in westus3: init → provision → images → install → client → status → demo all succeeded.
    • The counter actor kept its memory, file and rootfs counts across a synchronous suspend and resume.
    • After I deleted the node-local snapshot, resume fetched it from Blob (FetchSnapshot 7.5 s) and continued.
    • destroy left no owned resource groups.
  • Adversarial review: three models (Opus 5.5, Sol 6.1, MAI Code 2) reviewed the branch. Their smaller findings are fixed here, and release image digest pinning is deferred to Supported Substrate release catalog: choose version and image source, pin release image digests #17.
  • Live install on rc.3, 1× Standard_D8ds_v7 with Ephemeral, 400 GB, maxPods 30:
    • The scale set used diffDiskSettings {Local, NvmeDisk}, and /var/lib/ate was on the NVMe-backed root.
    • Allocatable memory was 30.6 of 31.3 GiB.
    • A suspend and resume worked.
    • destroy left no owned resource groups.
  • Live install on v1.0.0, 1× Standard_D8ds_v7 in westus3:
    • All 11 release images passed the revision check against b34fbee7 and were imported into ACR.
    • provision → check → install → demo → client succeeded, and status reported v1.0.0 (b34fbee74290) with plugin b21387e82cee from the install record.
    • The counter kept its memory, file and rootfs counts across suspend and resume, with snapshots stored in Blob.
    • destroy left no owned resource groups. Setup hit two transient Azure-side stops on the way (Operator access wait fails on the first probe while AKS RBAC is still propagating #19).

Notes for reviewers

Replace the aramase/substrate fork pin with upstream v1.0.0-rc.3
(4ee8f66a) and the out-of-tree Azure Blob object-store plugin
(agent-substrate-plugins/objectstore-azure-blob at b21387e8, the head of
its unmerged installation stack).

Pins: substrate.source gains an optional release tag that must name the
pinned commit, and substrate.pluginSource pins the plugin. Both are
fetched by exact commit; an explicit source no longer inherits the
default tag.

Images: substrate.imageSource selects the image track. "release", the
default, verifies that every image upstream published for the tag was
built from the pinned commit and imports it into the owned ACR by
digest, with no Docker or Podman. "source" keeps building with ate-setup
publish release-images, now with release-style tags, label-aware Podman
publishing and the new Envoy base-image line. The root.go startup patch
is gone, since publish no longer contacts a cluster. Both tracks ko-build
the counter demo, which releases do not publish, and the plugin.

Plugin: the plugin's own kustomize components configure both
objectstore-plugin sidecars. The installer fills their documented
placeholders with exact-count checks and renders them onto the pinned
atelet and ate-api-server manifests, so single-component redeploys keep
them. The installer's own sidecar patch is removed; deploy's storage
component becomes actor-images.

MicroVM assets: hack/microvm-assets/assemble.sh is gone upstream. A
helper added to the disposable checkout calls ate-setup's own Go
assembly with its pinned versions and checksums. The assets are uploaded
as content-addressed blobs, and the moved SandboxConfig template's
default version is rendered for amd64. ate-setup runs deploy ate-system
with --sandbox-classes gvisor, because its microVM staging targets GCS.

ate-setup requires a GCS snapshot transfer account on every non-kind
cluster. The installer passes placeholders; their only effect is a
ConfigMap key read by the in-tree control sidecar argument the plugin
component replaces. Contract tests keep that blast radius reviewed.
agent-substrate/substrate#3651 proposes --storage-backend=external and
--component to replace this.

Contract tests now also check that the vendored plugin testdata matches
the pin, that the pinned ate-setup accepts every flag passed, the GCP
placeholder reads, the published release inventory, and a real asset
assembly.

Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
rc.3's atenet-router admits no ingress client unless its SPIFFE ID is
allowed, so the counter demo could not be reached over HTTP. Pass
ate-setup's --ingress-allowed-spiffe-ids for the atenet-client
ServiceAccount that kubectl ate proxy requests its certificate for, as
upstream's counter guide does, and document the proxy flow in place of
the router port-forward.

Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
Snapshot suspends write each actor's memory to /var/lib/ate on the
worker's OS disk, so the disk bounds how fast a node can suspend and
resume actors. Add three microVM pool settings, threaded through
infra/main.bicep and infra/resources.bicep as workerOsDiskType,
workerOsDiskSizeGB and workerMaxPods so direct deployments get them too:

- aks.workerPool.osDiskType: Managed (default) or Ephemeral, which puts
  the OS disk, and /var/lib/ate, on local storage (NVMe on v6/v7 "d"
  sizes).
- aks.workerPool.osDiskSizeGB: 30-2048, default 128. Managed disk
  performance scales with size; an Ephemeral disk sets how much of the
  NVMe /var/lib/ate gets.
- aks.workerPool.maxPods: 10-250, or omitted for the AKS default. AKS
  reserves about 20 MiB of node memory per pod, about 5 GiB at 250.

Cloud preflight checks that the size supports ephemeral OS disks and
that the disk fits its largest local placement. AKS fixes all three when
it creates the pool, so plan and provision refuse to change them on an
existing installation instead of failing partway through a deployment.

Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
The installation summary now lists what will be installed before billing
approval: the Substrate release and commit, whether images are imported
release images, built from source, or already saved, and the Azure Blob
plugin commit. status prints the same version line.

Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
Release images are copied into the owned registry with az acr import,
which needs Microsoft.ContainerRegistry/registries/importImage/action.
AcrPush does not include it, so imports relied on the operator also
holding a broad role such as Contributor on the registry.

Grant the upload identity Container Registry Data Importer and Data
Reader next to AcrPush. It can import and pull, but cannot push or
change the registry. It works on registries in the
LegacyRegistryPermissions mode the installer creates: on such a
registry, an identity holding only this role imported a ghcr image with
its digest intact and was refused when it tried to enable the admin
user, while an identity without it could not import.

Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
- Cap ephemeral worker OS disks at Azure's 2,040 GiB limit in validation
  and preflight, so a large size fails before provisioning starts billing.
- Refuse removing a previously set aks.workerPool.maxPods: Bicep then
  omits the limit, which only matches a pool on the AKS default of 250.
- Stop passing SETUP_CSI and STORAGE_CLASS from the caller's shell to
  the pinned ate-setup, which reads both.
- Docs: a managed OS disk does not survive a reimage either, so the
  drain warning applies to both disk types; release images are checked
  by their revision label, not proven to be built from the commit; and
  the plugin pin stays fetchable only while its pull request head does.

Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>

@aramase Anish Ramasekar (aramase) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for this. One change I think is needed before merge: the maxPods validation should account for the AKS pool minimum (inline on config.go). The other comments are optional.

Agent Substrate 1.0 is due out today. Let's wait for it and bump this PR from the rc.3 pin to the 1.0 tag before merging, so we don't land an rc pin and repin right after.

Comment thread internal/installer/config.go Resolved
Comment thread internal/installer/cluster.go Resolved
Comment thread docs/operations.md Resolved
Comment thread internal/installer/cluster.go Resolved
Comment thread internal/installer/config.go Resolved
Comment thread infra/registry.bicep Resolved
Move the default source from v1.0.0-rc.3 to the v1.0.0 release
(b34fbee7). The release differs from rc.3 only in documentation and
copyright headers, and ghcr.io/agent-substrate/substrate publishes every
release image for v1.0.0 labelled with that commit.

Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
… in status, importer wording

Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
@ridhoq Ridwan Hoq (ridhoq) changed the title Install Agent Substrate v1.0.0-rc.3 with the Azure Blob plugin Install Agent Substrate v1.0.0 with the Azure Blob plugin Nov 6, 2026
@ridhoq

Copy link
Copy Markdown
Member Author

Bumped to v1.0.0 GA (b34fbee7). rc.3 → GA only changes docs and copyright headers, and the contract tests pass against the GA release images.

@aramase Anish Ramasekar (aramase) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: docs/operations.md:47 still says Preparation checks the image builder on every setup. Could the Preparation row say the builder check only runs for source-image builds? New installations import release images and skip it.

Signed-off-by: Ridwan Hoq <943533+ridhoq@users.noreply.github.com>
@ridhoq

Copy link
Copy Markdown
Member Author

Fixed in 1d80df2: the Preparation row now says the builder check only runs for source-image builds, and the Images row says release images are imported.

@ridhoq
Ridwan Hoq (ridhoq) merged commit ae80876 into main Nov 6, 2026
1 check passed
@ridhoq
Ridwan Hoq (ridhoq) deleted the pin-1.0 branch November 6, 2026 02:04
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