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 1928900 - Support new baseURL config option for ACME
Summary: Support new baseURL config option for ACME
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ipa
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Thomas Woerner
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-15 19:19 UTC by Rob Crittenden
Modified: 2021-05-18 15:49 UTC (History)
4 users (show)

Fixed In Version: ipa-4.9.2-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:48:53 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rob Crittenden 2021-02-15 19:19:00 UTC
This bug is created as a clone of upstream ticket:
https://pagure.io/freeipa/issue/8712

### Issue
ACME uses nonce values to prevent replay attacks. Since the ipa-ca name can go to any of the IPA servers in order to verify the nonce the servers need to know the value that was set which relies on replication. Sometimes the client is faster than replication so a request can fail.

The PKI team addressed this in upstream PR https://github.com/dogtagpki/pki/pull/3435

A new option was added, baseURL, so that upon discovery the ACME server returns the real hostname to bind the client to it.

We can add support now even prior to the upstream builds being available and the option will be ignored in the config file. Once the updated build is available then it should just work(tm).

Comment 1 Rob Crittenden 2021-02-15 19:34:18 UTC
master:

    d2d487b Set the ACME baseURL in order to pin a client to a single IPA server
    b1e72cb Add versions to the ACME config templates and update on upgrade
    3d2d067 Add some logging around initial ACME deployment

ipa-4-9:

    a16dc59 Set the ACME baseURL in order to pin a client to a single IPA server
    31061c6 Add versions to the ACME config templates and update on upgrade
    6526ab4 Add some logging around initial ACME deployment

This will require manual verification. Ensure that baseURL is set in /etc/pki/pki-tomcat/acme/engine.conf:

baseURL=https://ipa.example.test/acme

Comment 2 anuja 2021-02-17 14:13:06 UTC
Pre-verified using:
compose: rhel-8.4.0-mbs/9973-1386-idm/

[root@master ~]# rpm -qa ipa-server
ipa-server-4.9.2-1.module+el8.4.0+9973+3d202164.x86_64
[root@master ~]# grep "acme" /etc/pki/pki-tomcat/acme/engine.conf
baseURL=https://master.ipa.test/acme
[root@master ~]#

Comment 6 anuja 2021-02-19 10:55:16 UTC
Verified using nightly compose:
ipa-server-4.9.2-1.module+el8.4.0+9973+3d202164.x86_64

[root@master ~]# grep "acme" /etc/pki/pki-tomcat/acme/engine.conf
baseURL=https://master.ipa.test/acme
[root@master ~]#

Comment 8 errata-xmlrpc 2021-05-18 15:48:53 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 (Moderate: idm:DL1 and idm:client 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-2021:1846


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