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 1638875 - [RFE] extract key/certs pem file into a private namespace
Summary: [RFE] extract key/certs pem file into a private namespace
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: 389-ds-base
Version: 8.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: pre-dev-freeze
: 8.3
Assignee: thierry bordaz
QA Contact: RHDS QE
Marc Muehlfeld
URL:
Whiteboard:
: 1625661 (view as bug list)
Depends On: 1652269 1683259 1782896
Blocks: 1679810 1689138 1701002 1755139 1825061
TreeView+ depends on / blocked
 
Reported: 2018-10-12 17:00 UTC by Amy Farley
Modified: 2023-09-14 04:40 UTC (History)
13 users (show)

Fixed In Version: 389-ds-base-1.4.3.8-2.module+el8.3.0+6591+ebfc9766
Doc Type: Enhancement
Doc Text:
.Directory Server exports the private key and certificate to a private name space when the service starts Directory Server uses OpenLDAP libraries for outgoing connections, such as replication agreements. Because these libraries cannot access the network security services (NSS) database directly, Directory Server extracts the private key and certificates from the NSS database on instances with TLS encryption support to enable the OpenLDAP libraries to establish encrypted connections. Previously, Directory Server extracted the private key and certificates to the directory set in the `nsslapd-certdir` parameter in the `cn=config` entry (default: `/etc/dirsrv/slapd-<instance_name>/`). As a consequence, Directory Server stored the `Server-Cert-Key.pem` and `Server-Cert.pem` in this directory. With this enhancement, Directory Server extracts the private key and certificate to a private name space that `systemd` mounts to the `/tmp/` directory. As a result, the security has been increased.
Clone Of:
Environment:
Last Closed: 2020-11-04 03:07:13 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 3848 0 None open [RFE] Use keyring to manage starting password/pin 2021-02-03 11:12:35 UTC
Github 389ds 389-ds-base issues 3942 0 None closed Extract pem files into a private namespace 2021-02-03 11:12:34 UTC
Red Hat Product Errata RHEA-2020:4695 0 None None None 2020-11-04 03:07:30 UTC

Internal Links: 1785569

Comment 12 mreynolds 2019-03-11 16:24:01 UTC
*** Bug 1625661 has been marked as a duplicate of this bug. ***

Comment 20 thierry bordaz 2019-12-12 15:35:40 UTC
depends on new selinux policy: https://bugzilla.redhat.com/show_bug.cgi?id=1782896

Comment 24 thierry bordaz 2020-02-10 12:10:52 UTC
Upstream ticket related to pem files: https://pagure.io/389-ds-base/issue/50889

Comment 26 thierry bordaz 2020-02-27 09:16:07 UTC
Fix pushed upstream (https://pagure.io/389-ds-base/issue/50889) -> POST

Comment 30 bsmejkal 2020-06-04 10:13:46 UTC
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.6.8, pytest-5.4.3, py-1.8.1, pluggy-0.13.1 -- /usr/bin/python3.6
cachedir: .pytest_cache
metadata: {'Python': '3.6.8', 'Platform': 'Linux-4.18.0-205.el8.x86_64-x86_64-with-redhat-8.3-Ootpa', 'Packages': {'pytest': '5.4.3', 'py': '1.8.1', 'pluggy': '0.13.1'}, 'Plugins': {'metadata': '1.9.0', 'html': '2.1.1'}}
389-ds-base: 1.4.3.8-2.module+el8.3.0+6591+ebfc9766
nss: 3.44.0-15.el8
nspr: 4.21.0-2.el8_0
openldap: 2.4.46-11.el8
cyrus-sasl: 2.1.27-5.el8
FIPS: disabled
rootdir: /mnt/tests/rhds/tests/upstream/ds/dirsrvtests, inifile: pytest.ini
plugins: metadata-1.9.0, html-2.1.1
collected 1 item                                                                                                                                                                                                  

dirsrvtests/tests/suites/tls/tls_cert_namespace_test.py::test_pem_cert_in_private_namespace PASSED                                                                                                       [100%]

========================================================================================= 1 passed in 19.96s ======================================================================================================

Marking as VERIFIED.

Comment 33 Marc Muehlfeld 2020-06-15 09:26:21 UTC
Thierry, can you please review the release note for this enhancement (see Doc Text field)? Thanks.

Comment 34 thierry bordaz 2020-06-15 09:51:32 UTC
Thanks Marc, the text looks good to me

Comment 37 errata-xmlrpc 2020-11-04 03:07:13 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 (389-ds:1.4 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/RHEA-2020:4695

Comment 38 Red Hat Bugzilla 2023-09-14 04:40:08 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


Note You need to log in before you can comment on or make changes to this bug.