Skip to content

Conversation

iamsumee
Copy link
Contributor

@iamsumee iamsumee commented Aug 9, 2021

stargz-snapshotter reads creds from docker store only at startup time. The
credentials stored in docker config can get periodically rotated.
If stargz-snapshotter is running for extended time on a host before an image is
launched the current mechanism fails because rotated creds are not re-read.

This patch reads creds file everytime authorizer invokes the
'credentials' function and handles cred rotation.

Signed-off-by: Sumeet Bhatia sumee@amazon.com

stargz-snapshotter reads creds from docker store only at startup time. The
credentials stored in docker config can get periodically rotated.
If stargz-snapshotter is running for extended time on a host before an image is
launched the current mechanism fails because rotated creds are not re-read.

This patch reads creds file everytime authorizer invokes the
'credentials' function and handles cred rotation.

Signed-off-by: Sumeet Bhatia <sumee@amazon.com>
@ktock ktock merged commit 9233990 into containerd:main Aug 10, 2021
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 this pull request may close these issues.

2 participants