mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
The registry data plane and the catalog reconcile run outside any request, so the account-aware repository store read and wrote them as the default account. A repository another account created was not found: its IMMUTABLE tags were not enforced, and the reconcile recreated it in the default account's partition. The data plane's lookups now read the repository in the account its registry host names, and the reconcile reads and writes each entry in the account it belongs to, the configured default account for a pre-proxy namespace even when a request of another account started the registry. A push or pull for a repository nobody created fell back to the default namespace, so registry:2 stored it and the next start adopted it. Once the catalog has been read, such a name now answers 404 NAME_UNKNOWN before any byte reaches the registry, once it has been checked against the registry running now: a recovered registry's catalog is read again. Until then it answers unavailable, since its images may be in the registry: the start's catalog read is strict now, so a failed read no longer counts as an empty catalog, and the data plane retries it, at most every 30 seconds. A client that leaves while the catalog is read gives its write admission back at once, and a lookup that fails after the read is answered with a 500 rather than left waiting. The EKS registry-hosts and ECR TLS data-plane tests create their repository before pushing. Closes #6101 Closes #6140 Co-authored-by: Yi-111-a <153097222+Yi-111-a@users.noreply.github.com>