Skip to content

oci: add OciCredentials model and harden credential resolution#709

Merged
bennyz merged 1 commit into
mainfrom
oci-follow-up
May 28, 2026
Merged

oci: add OciCredentials model and harden credential resolution#709
bennyz merged 1 commit into
mainfrom
oci-follow-up

Conversation

@ambient-code
Copy link
Copy Markdown
Contributor

@ambient-code ambient-code Bot commented May 27, 2026

Introduce a Pydantic OciCredentials model that normalizes empty/whitespace strings and enforces both-or-neither validation. Update all callers to use the new model. Add tests for digest parsing, Docker Hub bare images, and whitespace env var handling.

follow up on #649


Rebased from #654 to resolve merge conflicts. Original PR by @bennyz.

Introduce a Pydantic OciCredentials model that normalizes empty/whitespace
strings and enforces both-or-neither validation. Update all callers to use
the new model. Add tests for digest parsing, Docker Hub bare images, and
whitespace env var handling.

Assisted-by: claude-opus-4.6
Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
@bennyz bennyz merged commit fbf73a6 into main May 28, 2026
30 checks passed
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.

1 participant