Skip to content

chown secret tempfile to target user for rootless podman - #131

Open
miklinux wants to merge 1 commit into
southalc:masterfrom
miklinux:rootless_secret
Open

miklinux wants to merge 1 commit into
southalc:masterfrom
miklinux:rootless_secret

Conversation

@miklinux

Copy link
Copy Markdown

When creating a podman secret for a rootless user, the tempfile holding the secret content is created as root with mode 0600. Podman running as the target user couldn't read it, causing a permission denied error.

This now chowns the tempfile to resource[:user]'s uid/gid before invoking podman, when a user is specified and it's not root.

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.

1 participant