docs: document OCI/docker registry credential discovery#1001
docs: document OCI/docker registry credential discovery#1001sofusalbertsen wants to merge 3 commits into
Conversation
Explain how registry credentials are resolved for --artifact-type=oci (and docker with --registry-username set): explicit flags first, then Docker/Podman auth files and credential helpers, then anonymous access. Also note --registry-provider is deprecated and no longer used.
|
Claude finished @mbevc1's task in 2m 41s —— View job Review: docs — OCI/docker registry credential discovery
Content is accurate. I cross-checked the help text against the code and the resolution chain is correct:
The accuracy nuances raised in the earlier review round have been folded in — nicely done. 🔴 One blocking item — generated-docs fixturesThe changed flag descriptions (and the new
This is the fixture update @mbevc1 flagged. Regenerating the docs will fix both. (I couldn't run the test here — Minor / optional
Nothing else — clear, well-scoped, and the deprecation note on |
mbevc1
left a comment
There was a problem hiding this comment.
Minor nit and we'll need to update fixtures for testing. But looks good otherwise
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
| registryUsernameFlag = "[conditional] The container registry username. Only required if you want to read container image SHA256 digest from a remote container registry and it is not already accessible via Docker/Podman auth files or a credential helper." | ||
| registryPasswordFlag = "[conditional] The container registry password or access token. Only required if you want to read container image SHA256 digest from a remote container registry and it is not already accessible via Docker/Podman auth files or a credential helper." |
There was a problem hiding this comment.
These flag-text changes break the generated-docs fixtures. TestDocsCommandTestSuite does an exact file comparison, and both fixtures still carry the old help text, so the suite will fail until they're regenerated:
cmd/kosli/testdata/output/docs/mintlify/artifact.md:48-49cmd/kosli/testdata/output/docs/mintlify/snyk.md:53-54
artifact.md also needs the new credential-resolution paragraph (the fingerprintDesc change around line 30). This matches @mbevc1's "we'll need to update fixtures" note.
Explain how registry credentials are resolved for --artifact-type=oci (and docker with --registry-username set): explicit flags first, then Docker/Podman auth files and credential helpers, then anonymous access. Also note --registry-provider is deprecated and no longer used.