Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1752005

Summary: Keyrings should not be used in containerized environment
Product: Red Hat Enterprise Linux 7 Reporter: Tibor Dudlák <tdudlak>
Component: ipaAssignee: Florence Blanc-Renaud <frenaud>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.7CC: ksiddiqu, pasik, rcritten, ssidhaye, tscherf
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.6.6-6.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-31 19:55:52 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:

Comment 2 Florence Blanc-Renaud 2019-09-13 12:40:36 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/7807

Comment 5 Sumedh Sidhaye 2019-12-17 11:50:09 UTC
Build used for verification:
ipa-server-4.6.6-11.el7.x86_64

Non Containerized:

[root@master ~]# klist
Ticket cache: KEYRING:persistent:0:0
Default principal: admin

Valid starting       Expires              Service principal
2019-12-17T12:27:22  2019-12-18T12:27:19  HTTP/master.testrealm.test
2019-12-17T12:27:21  2019-12-18T12:27:19  krbtgt/TESTREALM.TEST
[root@master ~]# rpm -q ipa-server
ipa-server-4.6.6-11.el7.x86_64
[root@master ~]# cat /etc/krb5.conf | grep default_ccache_name
 default_ccache_name = KEYRING:persistent:%{uid}
[root@master ~]# 
[root@master ~]# systemd-detect-virt --container
none

Containerized env:

[root@master ~]# docker exec -it ipadocker systemd-detect-virt --container
other
[root@master ~]# docker exec -it ipadocker rpm -q ipa-server
ipa-server-4.6.6-11.el7.x86_64

[root@master ~]# docker exec -it ipadocker cat /etc/krb5.conf | grep defaut_ccache_name
[root@master ~]#
[root@master ~]# docker exec -it ipadocker /bin/bash -ti
[root@master /]# kinit admin
Password for admin: 
[root@master ~]# docker exec -it ipadocker klist
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: admin

Valid starting     Expires            Service principal
12/17/19 11:38:19  12/18/19 11:38:16  krbtgt/ND78.PNQ
[root@master ~]#

Comment 7 errata-xmlrpc 2020-03-31 19:55:52 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, 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/RHBA-2020:1083