-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[RFE] respect target
option in mount
type secret
#12287
Comments
target
optint in mount
type secrettarget
option in mount
type secret
@ashley-cui PTAL |
@flouthoc PTAL |
@mskarbek interested in opening a PR to allow this? |
@rhatdan is there a documentation describing code structure, or maybe recording of a codding session that shows of code structure during implementation of some feature? I have written little to no Go code, but I'll gladly learn something new. |
@mskarbek I think this is a good RFE and needs a small patch. @rhatdan @ashley-cui PTAL |
Can this be backported to 3.4.2-rhel branch/included in 3.4 release in RHEL? |
I recommend you open a BZ if you want a backport. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
podman run -it --secret token,type=env,target=TOKEN ubi8/ubi:latest bash
is currently a valid command.podman run -it --secret token,type=mount,target=TOKEN ubi8/ubi:latest bash
ends with error:I would like to be able to specify
target
option inmount
type as file name. The above command should produce file/run/secrets/TOKEN
in that instance.Use case:
Multiple containers of the same image, each configured individually with their secrets but with a common internal script/unit file. I have a unit file that always looks in the same place, but each container gets their individual secret.
Edit:
This should also include
mount-env
(#12284) when/if implemented.The text was updated successfully, but these errors were encountered: