Bug 2025336

Summary: [RFE] Backport GH#12294 PR to Podman - secret: honor custom target= for secrets with type=mount
Product: Red Hat Enterprise Linux 8 Reporter: Marcin Skarbek <redhat>
Component: podmanAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Alex Jia <ajia>
Severity: high Docs Contact:
Priority: high    
Version: 8.5CC: acui, bbaude, dornelas, dwalsh, jligon, jnovy, kwoch, lsm5, mheon, pthomas, toneata, tsweeney, umohnani, ypu
Target Milestone: rcKeywords: FutureFeature, Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: podman-3.4.5-0.2.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2030032 (view as bug list) Environment:
Last Closed: 2022-05-10 13:28:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2030032    

Description Marcin Skarbek 2021-11-21 19:10:01 UTC
Please backport https://github.com/containers/podman/pull/12294 to RHEL version of Podman 3.4 or even better 3.3, so it can be utilized in RHEL 8.5.

Comment 19 Alex Jia 2022-01-11 11:35:21 UTC
This bug has been verified for podman-3.4.5-0.2.module+el8.6.0+13703+f9ed6816.

[root@kvm-04-guest15 ~]# podman secret ls
ID                         NAME        DRIVER      CREATED         UPDATED
c8177fd48d20e823290c09fed  token       file        17 seconds ago  17 seconds ago
[root@kvm-04-guest15 ~]# podman run -it --secret token,type=env,target=TOKEN ubi8/ubi:latest bash
[root@b0a6f6b6e0c7 /]# pwd
/
[root@b0a6f6b6e0c7 /]# exit
exit
[root@kvm-04-guest15 ~]# podman run -it --secret token,type=mount,target=TOKEN ubi8/ubi:latest bash
[root@2cdcd67dc1ab /]# pwd
/
[root@2cdcd67dc1ab /]# exit
exit

Comment 23 errata-xmlrpc 2022-05-10 13:28:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: container-tools:rhel8 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:1762