Bug 2350322
Summary: | Missing rewrite.config in upgraded server | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomasz Torcz <tomek> |
Component: | dogtag-pki | Assignee: | Endi Sukma Dewata <edewata> |
Status: | POST --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 41 | CC: | abokovoy, alee, cfu, edewata, ftrivino, ipa-maint, jmagne, mfargett, mhjacks, r3pek, rcritten, ssorce, taherrin, twoerner |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | --- | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | Type: | --- | |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Tomasz Torcz
2025-03-06 13:15:59 UTC
The file seem to come from upstream https://github.com/dogtagpki/pki/commit/994d932100c7d335752fe817a7d8757f62439b08 Move to dogtag-pki, as it is purely within the dogtag. After some code reading, I got it working (I think? `ipa-acme-status` works, I'll see if any of my certificates will be issued). What I did: 1. Symlinked /usr/share/pki/server/conf/Catalina/localhost/rewrite.config to /etc/pki/pki-tomcat/Catalina/localhost/rewrite.config 2. Edited /etc/pki/pki-tomcat/server.xml and added in line 133 (almost at the end): <Valve className="org.apache.catalina.valves.rewrite.RewriteValve"/> Were the steps correct? Should it be done during FreeIPA upgrade? Certificates got reissured to acme clients. This configuration file was added to dogtag in v11.3 to provide support for the EST protocol in f95df455c5f062ef024b91f5bfc95d919c91cfb7 . The commit message explicitly says that this configuration is not added on upgrade. The acme rewrite rules were add in v11.5 in 994d932100c So any version of PKI installed prior to v11.3 will not have rewrite.config enabled which is the root cause of the missing rules. IMHO this upgrade to add the missing file and config needs to be managed by PKI as it will affect all older PKI deployments whether they use IPA or not. Thanks for the investigation. I suppose the issue can be reproduced in plain PKI instance with these steps: 1. Install PKI 11.2 or older 2. Create CA instance 3. Upgrade to the latest PKI version 4. Deploy ACME or EST in the same instance 5. Access ACME or EST services Expected result: ACME and EST services should work. Fixed upstream: * v11.6 branch: https://github.com/dogtagpki/pki/commit/a0671f2c9e7385447c80f58d49ca06646811b975 * master branch (PKI 11.7): https://github.com/dogtagpki/pki/commit/17a44731c7d6aa2888ae8e700149712351fe081c |