Blame SOURCES/0005-ipa-pki-proxy.conf-provide-access-to-kra-admin-kra-getStatus_rhbz#2049167.patch

b7b64b
From 9bae5492270d8b695999cd82831cbee62b04626b Mon Sep 17 00:00:00 2001
b7b64b
From: Florence Blanc-Renaud <flo@redhat.com>
b7b64b
Date: Fri, 28 Jan 2022 16:58:42 +0100
b7b64b
Subject: [PATCH] ipa-pki-proxy.conf: provide access to
b7b64b
 /kra/admin/kra/getStatus
b7b64b
b7b64b
The access to /kra/admin/kra/getStatus will be needed
b7b64b
in order to fix pki-healthcheck.
b7b64b
Note that this commit is a pre-requisite for the fix
b7b64b
to be done on PKI side. No test added since the full
b7b64b
integration test already exists in test_replica_promotion.py,
b7b64b
in TestHiddenReplicaPromotion::test_ipahealthcheck_hidden_replica
b7b64b
b7b64b
Fixes: https://pagure.io/freeipa/issue/9099
b7b64b
Related: https://pagure.io/freeipa/issue/8582
b7b64b
b7b64b
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
b7b64b
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
b7b64b
---
b7b64b
 install/share/ipa-pki-proxy.conf.template | 4 ++--
b7b64b
 1 file changed, 2 insertions(+), 2 deletions(-)
b7b64b
b7b64b
diff --git a/install/share/ipa-pki-proxy.conf.template b/install/share/ipa-pki-proxy.conf.template
b7b64b
index 96708482c..7a46f20b9 100644
b7b64b
--- a/install/share/ipa-pki-proxy.conf.template
b7b64b
+++ b/install/share/ipa-pki-proxy.conf.template
b7b64b
@@ -1,4 +1,4 @@
b7b64b
-# VERSION 16 - DO NOT REMOVE THIS LINE
b7b64b
+# VERSION 17 - DO NOT REMOVE THIS LINE
b7b64b
 
b7b64b
 ProxyRequests Off
b7b64b
 
b7b64b
@@ -11,7 +11,7 @@ ProxyRequests Off
b7b64b
 </LocationMatch>
b7b64b
 
b7b64b
 # matches for admin port and installer
b7b64b
-<LocationMatch "^/ca/admin/ca/getCertChain|^/ca/admin/ca/getConfigEntries|^/ca/admin/ca/getCookie|^/ca/admin/ca/getStatus|^/ca/admin/ca/securityDomainLogin|^/ca/admin/ca/getDomainXML|^/ca/admin/ca/updateNumberRange|^/ca/admin/ca/tokenAuthenticate|^/ca/admin/ca/updateNumberRange|^/ca/admin/ca/updateDomainXML|^/ca/admin/ca/updateConnector|^/ca/admin/ca/getSubsystemCert|^/kra/admin/kra/updateNumberRange|^/kra/admin/kra/getConfigEntries">
b7b64b
+<LocationMatch "^/ca/admin/ca/getCertChain|^/ca/admin/ca/getConfigEntries|^/ca/admin/ca/getCookie|^/ca/admin/ca/getStatus|^/ca/admin/ca/securityDomainLogin|^/ca/admin/ca/getDomainXML|^/ca/admin/ca/updateNumberRange|^/ca/admin/ca/tokenAuthenticate|^/ca/admin/ca/updateNumberRange|^/ca/admin/ca/updateDomainXML|^/ca/admin/ca/updateConnector|^/ca/admin/ca/getSubsystemCert|^/kra/admin/kra/updateNumberRange|^/kra/admin/kra/getConfigEntries|^/kra/admin/kra/getStatus">
b7b64b
     SSLOptions +StdEnvVars +ExportCertData +StrictRequire +OptRenegotiate
b7b64b
     SSLVerifyClient none
b7b64b
     ProxyPassMatch ajp://localhost:$DOGTAG_PORT $DOGTAG_AJP_SECRET
b7b64b
-- 
b7b64b
2.34.1
b7b64b