Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to disable builtin credential handling #760

Open
malt3 opened this issue Jan 2, 2025 · 0 comments · May be fixed by #761
Open

Allow users to disable builtin credential handling #760

malt3 opened this issue Jan 2, 2025 · 0 comments · May be fixed by #761

Comments

@malt3
Copy link
Contributor

malt3 commented Jan 2, 2025

I have a custom Bazel credential helper that can derive working Authorization headers for oci registries. In one case, this is for ghcr.io, for which rules_oci has a token realm preconfigured.
This can lead to situations where my credential helper would inject the right headers for pulling an image, but the extra requests (and command executions for docker credential helpers) fail before I get there.

I would like to have a setting (like a repo_env var) for disabling the builtin credential handling completely, since my docker config may be missing or misconfigured.

Happy to implement such a setting, but I‘d like to know if that’s something that can be merged first.

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 a pull request may close this issue.

1 participant