fix: search all Podman auth file locations per containers-auth.json(5) spec#46
Conversation
…) spec On Linux, Podman writes credentials to $XDG_RUNTIME_DIR/containers/auth.json, but skillctl only checked one path. Now podmanAuthPaths() returns all candidate locations in spec order and credentialStore() chains them as fallbacks. Fixes #45 Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com> Signed-off-by: Pavel Anni <panni@redhat.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR extends credential loading to search multiple Podman authentication file locations per XDG specification. A new ChangesPodman authentication file location support
🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Replace tautological dedupe test with one that exercises the actual dedup branch (both XDG vars pointing to same directory). Add slog.Debug for skipped auth files to help users troubleshoot credential issues. Addresses review feedback from PR #46. Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com> Signed-off-by: Pavel Anni <panni@redhat.com>
|
Actionable comments posted: 0 |
Summary
podmanAuthPath()→podmanAuthPaths()to return all candidateauth file locations per the containers-auth.json(5) spec
$XDG_RUNTIME_DIR/containers/auth.jsonfirst (Linux primary),then
$XDG_CONFIG_HOME/containers/auth.json(fallback, defaults to~/.config)credentialStore()now chains all found Podman stores as fallbacksXDG_CONFIG_HOMEresolves to the same locationFixes #45
Test plan
TestPodmanAuthPathscovers: XDG_RUNTIME_DIR priority, XDG_CONFIG_HOME fallback, deduplication, no-XDG fallbackpkg/ocitest suite passesgolangci-lintclean🤖 Generated with Claude Code
Summary by CodeRabbit
Tests
Improvements