any-sync: MinIO withdrew anonymous pulls (quay.io/minio/minio AND docker.io/minio/minio answer unauthorized for every tag/digest) — every fresh founding reds at enroll-activate on podman-anysync-minio #1859

Closed
opened 2026-09-25 00:45:26 +00:00 by ben · 2 comments
Owner

Seen on WKT-DEMO Drive A fire 2 (drive 20260924T235630Z, #1855), 2026-09-25 00:39Z: enroll-activate red — clan: masked_exit on gateway: clan reported success but the log shows a real failure: Failed to start podman-anysync-minio.service. On the box: podman pull quay.io/minio/minio@sha256:5db7e40b… → reading manifest … in quay.io/minio/minio: unauthorized: access to the requested resource is not authorized; the six other any-sync images (ghcr.io anyproto ×4, docker.io mongo, redis-stack) pulled fine on the same box. Verified from outside: quay.io minio/minio refuses anonymous token pulls for the digest, for latest and for the tags list; docker.io minio/minio answers authentication required for latest too. The publisher withdrew public access — nothing on our side changed (internal/clan/anysync.go has pinned quay.io/minio/minio@sha256:5db7e40b… since #1518).

Blast radius: every fresh founding that installs the content layer (the app built now / later) reds at enroll-activate; every standing community keeps running on its cached image (whakatohea-demo verified: image present, unit active) but a re-supply or release that re-pulls would fail the same way.

Fix (in progress, coa session): re-host the exact image bytes the gateways already run — exported from whakatohea-demo's podman storage (podman save --format oci-archive, digest 5db7e40b…) — on our own registry git.matou.nz/matou/minio (the Matou org is public, so pulls stay anonymous), and repoint defaultAnysyncMinioImage at it by its new digest, pinned by TestRenderAnySync_MinioImageIsSelfHosted. Follow-ups worth a ruling: mirror the other six pins there too (ghcr/docker.io can do the same), and #1754 (our own S3 store) removes MinIO from the path altogether.

Refs #1855, #1836, #1518, #1754.

**Seen** on WKT-DEMO Drive A fire 2 (drive `20260924T235630Z`, #1855), 2026-09-25 00:39Z: `enroll-activate` red — `clan: masked_exit on gateway: clan reported success but the log shows a real failure: Failed to start podman-anysync-minio.service`. On the box: `podman pull quay.io/minio/minio@sha256:5db7e40b…` → `reading manifest … in quay.io/minio/minio: unauthorized: access to the requested resource is not authorized`; the six other any-sync images (ghcr.io anyproto ×4, docker.io mongo, redis-stack) pulled fine on the same box. Verified from outside: quay.io `minio/minio` refuses anonymous token pulls for the digest, for `latest` and for the tags list; docker.io `minio/minio` answers `authentication required` for `latest` too. The publisher withdrew public access — nothing on our side changed (`internal/clan/anysync.go` has pinned `quay.io/minio/minio@sha256:5db7e40b…` since #1518). **Blast radius:** every fresh founding that installs the content layer (the app built now / later) reds at enroll-activate; every standing community keeps running on its cached image (whakatohea-demo verified: image present, unit active) but a re-supply or release that re-pulls would fail the same way. **Fix (in progress, coa session):** re-host the exact image bytes the gateways already run — exported from whakatohea-demo's podman storage (`podman save --format oci-archive`, digest `5db7e40b…`) — on our own registry `git.matou.nz/matou/minio` (the Matou org is public, so pulls stay anonymous), and repoint `defaultAnysyncMinioImage` at it by its new digest, pinned by `TestRenderAnySync_MinioImageIsSelfHosted`. Follow-ups worth a ruling: mirror the other six pins there too (ghcr/docker.io can do the same), and #1754 (our own S3 store) removes MinIO from the path altogether. Refs #1855, #1836, #1518, #1754.

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling — ready-for-session (category bug, priority kept)

A verified fleet-breaking bug: quay.io/minio/minio (and docker.io/minio/minio) withdrew anonymous pulls, so the pinned digest 5db7e40b… at internal/clan/anysync.go:117 (defaultAnysyncMinioImage) no longer resolves, and every fresh founding that installs the content layer reds at enroll-activate on podman-anysync-minio.service. Standing communities keep running on their cached image; a re-supply or release that re-pulls would fail the same way. Nothing on our side changed — this is a publisher-side withdrawal.

Why this is a two-way door. The fix — re-host the exact image bytes on our own registry and repoint the pin — is fully revertible by a later commit (repoint the digest again) and by a label change. It sits on none of the one-way-door rails: no personal credentials, no security-posture widening (the bytes are re-hosted, unchanged, on the already-public Matou org registry, so pulls stay anonymous — the posture is identical), no member-facing trust accept, no data destruction, no non-routine spend.

What proves it. The new pin TestRenderAnySync_MinioImageIsSelfHosted (asserts defaultAnysyncMinioImage points at git.matou.nz/matou/minio by digest), plus a fresh founding drive whose enroll-activate leg goes green on podman-anysync-minio — the exact leg that redded on drive 20260924T235630Z (#1855).

Why ready-for-session, not ready-for-agent. The re-host step is a live-infrastructure operation: podman save the image from a running gateway's storage and podman push it to git.matou.nz/matou/minio, which needs registry push credentials a Sandcastle swarm worker does not hold. This is an interactive session's standing (host/registry credentials, live-infra), so it is invisible to the swarm queue by construction. The body records a coa session already on it.

Session brief

Problem. defaultAnysyncMinioImage = "quay.io/minio/minio@" + anysyncMinioDigest (internal/clan/anysync.go:117) is unpullable anonymously; founding's enroll-activate reds.

Fix (two steps, one PR for the code half):

  1. Re-host (live-infra, session-only). Export the exact bytes a running gateway already runs — podman save --format oci-archive from whakatohea-demo's podman storage (digest 5db7e40b…, verified present + unit active there) — and podman push to git.matou.nz/matou/minio. Confirm anonymous pull of the new ref works from outside (the Matou org is public).
  2. Repoint the pin. Point defaultAnysyncMinioImage at git.matou.nz/matou/minio@<new-digest> and add TestRenderAnySync_MinioImageIsSelfHosted pinning it. go build ./..., go vet, and the internal/clan suite green.

Prove it. A fresh founding drive (or the WKT-DEMO founding, #1836) reaches enroll-activate green on podman-anysync-minio.

Follow-ups worth their own ruling (not this ticket): mirror the other six any-sync pins (ghcr.io anyproto ×4, docker.io mongo, redis-stack) to the same registry against a future withdrawal; #1754 (our own S3 store) removes MinIO from the path entirely.

Refs #1855, #1836, #1518, #1754.

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** ## Ruling — `ready-for-session` (category `bug`, `priority` kept) A verified fleet-breaking bug: `quay.io/minio/minio` (and `docker.io/minio/minio`) withdrew anonymous pulls, so the pinned digest `5db7e40b…` at `internal/clan/anysync.go:117` (`defaultAnysyncMinioImage`) no longer resolves, and every fresh founding that installs the content layer reds at `enroll-activate` on `podman-anysync-minio.service`. Standing communities keep running on their cached image; a re-supply or release that re-pulls would fail the same way. Nothing on our side changed — this is a publisher-side withdrawal. **Why this is a two-way door.** The fix — re-host the exact image bytes on our own registry and repoint the pin — is fully revertible by a later commit (repoint the digest again) and by a label change. It sits on none of the one-way-door rails: no personal credentials, no security-posture widening (the bytes are re-hosted, unchanged, on the already-public `Matou` org registry, so pulls stay anonymous — the posture is identical), no member-facing trust accept, no data destruction, no non-routine spend. **What proves it.** The new pin `TestRenderAnySync_MinioImageIsSelfHosted` (asserts `defaultAnysyncMinioImage` points at `git.matou.nz/matou/minio` by digest), plus a fresh founding drive whose `enroll-activate` leg goes green on `podman-anysync-minio` — the exact leg that redded on drive `20260924T235630Z` (#1855). **Why `ready-for-session`, not `ready-for-agent`.** The re-host step is a live-infrastructure operation: `podman save` the image from a running gateway's storage and `podman push` it to `git.matou.nz/matou/minio`, which needs registry push credentials a Sandcastle swarm worker does not hold. This is an interactive session's standing (host/registry credentials, live-infra), so it is invisible to the swarm queue by construction. The body records a coa session already on it. ## Session brief **Problem.** `defaultAnysyncMinioImage = "quay.io/minio/minio@" + anysyncMinioDigest` (`internal/clan/anysync.go:117`) is unpullable anonymously; founding's `enroll-activate` reds. **Fix (two steps, one PR for the code half):** 1. **Re-host (live-infra, session-only).** Export the exact bytes a running gateway already runs — `podman save --format oci-archive` from whakatohea-demo's podman storage (digest `5db7e40b…`, verified present + unit active there) — and `podman push` to `git.matou.nz/matou/minio`. Confirm anonymous pull of the new ref works from outside (the `Matou` org is public). 2. **Repoint the pin.** Point `defaultAnysyncMinioImage` at `git.matou.nz/matou/minio@<new-digest>` and add `TestRenderAnySync_MinioImageIsSelfHosted` pinning it. `go build ./...`, `go vet`, and the `internal/clan` suite green. **Prove it.** A fresh founding drive (or the WKT-DEMO founding, #1836) reaches `enroll-activate` green on `podman-anysync-minio`. **Follow-ups worth their own ruling (not this ticket):** mirror the other six any-sync pins (ghcr.io anyproto ×4, docker.io mongo, redis-stack) to the same registry against a future withdrawal; #1754 (our own S3 store) removes MinIO from the path entirely. Refs #1855, #1836, #1518, #1754.

Session-runner attempt (matou-workstation) — ADR 0174. Verified the bug, staged the fix locally, and hit one missing door: a registry write:package credential. Routing ready-for-human for exactly that.

Verified (reproduced, from outside)

  • Withdrawal is real. With a fresh anonymous pull token in hand, quay.io/minio/minio answers 401 for latest and for the pinned digest sha256:5db7e40b…; docker.io/minio/minio answers 401 for latest too. Nothing on our side changed — the publisher pulled anonymous access. This is the exact enroll-activate red on podman-anysync-minio.
  • The exact bytes are already on this host (matou-workstation), no need to reach whakatohea-demo: the local docker cache holds minio/minio:RELEASE.2024-07-04T14-25-45Z whose RepoDigests is precisely minio/minio@sha256:5db7e40b69f0c3ad5a878521ff5029468e3070ef146c084dc2540e2d492075c4 (amd64/linux, single-arch — the pinned digest is a single-platform manifest, not a list). So the re-host source is here (and on every standing gateway's podman storage).
  • git.matou.nz/matou/minio does not exist yet — the registry answers NAME_UNKNOWN (404) on tags/list. The coa-session push has not landed.

The missing door

This host's FORGEJO_TOKEN (matou-swarm) can docker login git.matou.nz (auth OK, GET /v2/ → 200) but cannot push: blob upload/HEAD return 401/503, and the packages API returns 403 (token does not have … read:package). The token carries no read:package/write:package scope, so it cannot create matou/minio. Creating the package needs a credential this session-runner host does not hold.

## Why human

A git.matou.nz registry credential with write:package scope for the matou org (or the coa session's push cred) — the one-way residue. Two ways to lift it:

  1. Grant matou-swarm write:package on the matou org (or hand a push credential to a standing-session host) → then this becomes ready-for-session: any host can finish it unattended with the steps below. If such a host already exists, flip this back to ready-for-session — no Ben step is needed, only a differently-doored host.
  2. Do the one-off push by hand.

Proposed default (fully specified — completes without further judgement)

# from a host with the cached image (matou-workstation has it) + write:package:
docker tag  minio/minio@sha256:5db7e40b69f0c3ad5a878521ff5029468e3070ef146c084dc2540e2d492075c4 \
            git.matou.nz/matou/minio:RELEASE.2024-07-04T14-25-45Z
docker push git.matou.nz/matou/minio:RELEASE.2024-07-04T14-25-45Z   # note the "digest: sha256:…" it reports
docker logout git.matou.nz && docker pull git.matou.nz/matou/minio@sha256:<reported>   # PROVE anonymous pull (Matou org is public)

Then in internal/clan/anysync.go: repoint defaultAnysyncMinioImage to git.matou.nz/matou/minio@sha256:<reported> (update anysyncMinioDigest + the "publishes on quay.io" comment), add TestRenderAnySync_MinioImageIsSelfHosted pinning the self-hosted ref, go test ./internal/clan/…, and land. The anonymous-pull probe proves the enroll-activate failure is resolved — no live founding drive required for this bug (a fresh founding's full green stays the executor frontier). The manifest bytes are identical, so <reported> is very likely the same 5db7e40b…, but pin whatever the registry actually reports rather than assuming.

Follow-ups (separate tickets, not this one): mirror the other six pins the same way; #1754 removes MinIO from the path.

Ruled by agent under ADR 0174 — veto anytime. No code landed this attempt (a repoint to a not-yet-existing ref would red every founding harder); the withdrawal reproduction, the local-bytes finding, and the missing-scope diagnosis are the deliverables.

**Session-runner attempt (matou-workstation) — ADR 0174.** Verified the bug, staged the fix locally, and hit one missing door: a registry **write:package** credential. Routing `ready-for-human` for exactly that. ### Verified (reproduced, from outside) - **Withdrawal is real.** With a fresh anonymous *pull* token in hand, `quay.io/minio/minio` answers `401` for `latest` **and** for the pinned digest `sha256:5db7e40b…`; `docker.io/minio/minio` answers `401` for `latest` too. Nothing on our side changed — the publisher pulled anonymous access. This is the exact `enroll-activate` red on `podman-anysync-minio`. - **The exact bytes are already on this host** (`matou-workstation`), no need to reach `whakatohea-demo`: the local docker cache holds `minio/minio:RELEASE.2024-07-04T14-25-45Z` whose `RepoDigests` is precisely `minio/minio@sha256:5db7e40b69f0c3ad5a878521ff5029468e3070ef146c084dc2540e2d492075c4` (amd64/linux, single-arch — the pinned digest is a single-platform manifest, not a list). So the re-host source is here (and on every standing gateway's podman storage). - **`git.matou.nz/matou/minio` does not exist yet** — the registry answers `NAME_UNKNOWN` (404) on `tags/list`. The coa-session push has not landed. ### The missing door This host's `FORGEJO_TOKEN` (`matou-swarm`) can `docker login git.matou.nz` (auth OK, `GET /v2/` → 200) but **cannot push**: blob upload/HEAD return `401`/`503`, and the packages API returns `403` (`token does not have … read:package`). The token carries no `read:package`/`write:package` scope, so it cannot create `matou/minio`. Creating the package needs a credential this session-runner host does not hold. ### `## Why human` A **git.matou.nz registry credential with `write:package` scope for the `matou` org** (or the coa session's push cred) — the one-way residue. Two ways to lift it: 1. Grant `matou-swarm` `write:package` on the `matou` org (or hand a push credential to a standing-session host) → then this becomes `ready-for-session`: any host can finish it unattended with the steps below. **If such a host already exists, flip this back to `ready-for-session` — no Ben step is needed, only a differently-doored host.** 2. Do the one-off push by hand. ### Proposed default (fully specified — completes without further judgement) ``` # from a host with the cached image (matou-workstation has it) + write:package: docker tag minio/minio@sha256:5db7e40b69f0c3ad5a878521ff5029468e3070ef146c084dc2540e2d492075c4 \ git.matou.nz/matou/minio:RELEASE.2024-07-04T14-25-45Z docker push git.matou.nz/matou/minio:RELEASE.2024-07-04T14-25-45Z # note the "digest: sha256:…" it reports docker logout git.matou.nz && docker pull git.matou.nz/matou/minio@sha256:<reported> # PROVE anonymous pull (Matou org is public) ``` Then in `internal/clan/anysync.go`: repoint `defaultAnysyncMinioImage` to `git.matou.nz/matou/minio@sha256:<reported>` (update `anysyncMinioDigest` + the "publishes on quay.io" comment), add `TestRenderAnySync_MinioImageIsSelfHosted` pinning the self-hosted ref, `go test ./internal/clan/…`, and land. The anonymous-pull probe proves the `enroll-activate` failure is resolved — no live founding drive required for *this* bug (a fresh founding's full green stays the executor frontier). The manifest bytes are identical, so `<reported>` is very likely the same `5db7e40b…`, but pin whatever the registry actually reports rather than assuming. Follow-ups (separate tickets, not this one): mirror the other six pins the same way; #1754 removes MinIO from the path. Ruled by agent under ADR 0174 — veto anytime. No code landed this attempt (a repoint to a not-yet-existing ref would red every founding harder); the withdrawal reproduction, the local-bytes finding, and the missing-scope diagnosis are the deliverables.
ben closed this issue 2026-09-25 01:18:31 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1859
No description provided.