feat(container): send registry auth on image pull
ImagePull was called with empty options, so a private registry answered 401 on every pull regardless of containers.pull_policy. docker login did not help either: it writes ~/.docker/config.json, which only the CLI reads. Add containers.registry_auth, a SecretRef reusing the credential shape the rest of the file uses, whose resolved value is a Docker registry.AuthConfig JSON document. archied resolves it at boot and the pool base64url-encodes it into the X-Registry-Auth header ImagePullOptions carries. A missing or unresolvable credential degrades to the anonymous pull that existed before the field (with a warning), so a deployment with no private registry is unaffected; a half-named reference is refused by configuration.Validate. The field is file-owned and json:"-", so the container-runtime-policies layering has to preserve it explicitly, the way it preserves Profiles.
This commit is contained in:
1 parent
f67e3ee5e1
commit
893abf7eca
15 files changed
+368
-11
No files matched your search
@@ -442,6 +442,15 @@ target = "127.0.0.1:9090" # REQUIRED. The State Store gRPC address arch
|
||||
# volume_ttl = "72h" # max age for persistent repo volumes and Git clone caches
|
||||
# pull_policy = "missing" # "missing" or "always"
|
||||
#
|
||||
# A private registry needs a credential the daemon sends on pull (an
|
||||
# anonymous pull always answers 401 there, whatever the policy). The value is
|
||||
# a Docker registry.AuthConfig JSON document -- {"username":"bot","password":"..."}
|
||||
# ("identitytoken"/"registrytoken" are alternatives; "serveraddress" is
|
||||
# optional and defaults to the image's registry). Unset means anonymous pulls,
|
||||
# exactly as before this key existed; a reference that cannot be resolved
|
||||
# warns and pulls anonymously rather than failing the daemon.
|
||||
# registry_auth = { engine = "env", key = "ARCHIE_REGISTRY_AUTH" }
|
||||
#
|
||||
# Agent profiles a workflow selects with `profile: <name>`. A workflow that
|
||||
# names none runs under [containers].image with every tool.
|
||||
# Once the State Store holds container policies, edit profiles in the
|
||||
|
||||
Reference in new issue
Block a user