🔒️✨ docker: Support basic auth for docker hub #76
Reference in New Issue
Block a user
Delete Branch "Rirmach/dockerhub_auth"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
初步支持 docker hub 认证拉取
Summary by CodeRabbit
Walkthrough
Added Docker Hub auth config (username, token) to config files and structures, initialized defaults, and updated Docker proxy initialization to use basic auth when credentials are provided, otherwise anonymous.
Changes
src/config.toml[dockerHubAuth]withusernameandtoken; minor formatting tweak on proxy line.src/config/config.goDockerHubAuthstruct toAppConfigwithUsername,Token; set empty defaults inDefaultConfig.src/handlers/docker.goInitDockerProxynow selects basic auth ifDockerHubAuthcredentials exist; otherwise uses anonymous auth; other options unchanged.Sequence Diagram(s)
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches
❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands and usage tips.Actionable comments posted: 0
🧹 Nitpick comments (2)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between
3f614e8011and4053481714.📒 Files selected for processing (3)
src/config.toml(1 hunks)src/config/config.go(2 hunks)src/handlers/docker.go(1 hunks)🧰 Additional context used
🧬 Code graph analysis (1)
src/handlers/docker.go (1)
🔇 Additional comments (2)
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.