compose/internal/registry
Guillaume Lours 6430a45806 refactor(registry): pin the resolver credentials, build it once
The credentials assertion in TestImageDigestResolverUsesDistributionDigest
was vacuous: EncodedAuth encodes even an empty AuthConfig, so
EncodedRegistryAuth != "" always holds. Decode the header and check the
username and password instead.

Build the digest resolver once in generateImageDigestsOverride rather than
once for the services and once for the jobs.

Move the "registry descriptor digest, not the local content digest"
rationale from the pkg/compose wrapper onto registry.ImageDigestResolver,
where the code now lives.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
2026-11-16 16:59:39 +01:00
..
desktop.go refactor(registry): read session expiry only from the stored claims 2026-10-21 17:15:36 +02:00
desktop_test.go refactor(registry): read session expiry only from the stored claims 2026-10-21 17:15:36 +02:00
registry.go refactor(registry): pin the resolver credentials, build it once 2026-11-16 16:59:39 +01:00
registry_test.go refactor(registry): pin the resolver credentials, build it once 2026-11-16 16:59:39 +01:00