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
cri: pass pull image credentials to snapshotter #6336
base: main
Are you sure you want to change the base?
Conversation
Pass them via annotations so that a snapshotter can fetch image contents with proper credentials. It is needed for remote snapshotters like estargz and nydus. While it is possible for the snapshotters to parse credentials on their own, but it several drawbacks: 1. snapshotter needs to access containerd config file 2. snapshotter needs to handle different credential sources that are already handled by kubelet/containerd 3. snapshotter needs additional kubernetes privileges to access kubernetes secrets APIs By passing image pulling credentials to snapshotters, we can avoid the above drawbacks. The behavior is still toggled by the current `disable_snapshot_annotations` option and is disabled by default. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
|
@bergwolf: GitHub didn't allow me to request PR reviews from the following users: ruiwen-zhao, alakesh. Note that only containerd members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Hi @bergwolf. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Build succeeded.
|
|
It is a scary path to take to be honest. Have we put credentials in labels before? Wouldn't it leak credentials to logs? |
|
@kzys I don't think we've done it before. You are right that we need to audit the code to make sure we never print snapshot annotations in any logs. |
|
We would be storing creds in plaint text on disk, I think? |
|
I guess my major concerns are
I guess a more preferred way is what is proposed here: #5105 |
|
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Pass them via annotations so that a snapshotter can fetch image contents
with proper credentials. It is needed for remote snapshotters like
estargz and nydus. While it is possible for the snapshotters to parse
credentials on their own, but it several drawbacks:
already handled by kubelet/containerd
kubernetes secrets APIs
By passing image pulling credentials to snapshotters, we can avoid the
above drawbacks. The behavior is still toggled by the current
disable_snapshot_annotationsoption and is disabled by default.Fixes: #5105
/cc @ktock @ruiwen-zhao @alakesh