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 2049174 - KRA GetStatus service blocked by IPA proxy
Summary: KRA GetStatus service blocked by IPA proxy
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: ipa
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Florence Blanc-Renaud
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On: 2049167
Blocks: 2049311 2184491
TreeView+ depends on / blocked
 
Reported: 2022-02-01 17:08 UTC by Florence Blanc-Renaud
Modified: 2023-04-04 20:40 UTC (History)
5 users (show)

Fixed In Version: ipa-4.9.8-2.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2049167
Environment:
Last Closed: 2022-05-17 12:44:20 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-7777 0 None None None 2022-02-01 17:10:27 UTC
Red Hat Issue Tracker RHELPLAN-110587 0 None None None 2022-02-01 17:10:38 UTC
Red Hat Product Errata RHBA-2022:2387 0 None None None 2022-05-17 12:44:43 UTC

Description Florence Blanc-Renaud 2022-02-01 17:08:54 UTC
+++ This bug was initially created as a clone of Bug #2049167 +++

Cloned from upstream: https://pagure.io/freeipa/issue/9099

Currently IPA proxy does not provide access to KRA `GetStatus` service:
https://github.com/freeipa/freeipa/blob/master/install/share/ipa-pki-proxy.conf.template

Please provide access to `/kra/admin/kra/getStatus`. This is needed by `pki-healthcheck` tool in order to work properly in IPA environment.

--- Additional comment from Florence Blanc-Renaud on 2022-02-01 17:06:16 UTC ---

Upstream ticket:
https://pagure.io/freeipa/issue/9099

--- Additional comment from Florence Blanc-Renaud on 2022-02-01 17:07:52 UTC ---

Fixed upstream:
master:
    f3636c6 ipa-pki-proxy.conf: provide access to /kra/admin/kra/getStatus
    https://pagure.io/freeipa/c/f3636c6afa75d9822a2fd1a535415b09f3fe1867

ipa-4-9:
    9bae549 ipa-pki-proxy.conf: provide access to /kra/admin/kra/getStatus
    https://pagure.io/freeipa/c/9bae5492270d8b695999cd82831cbee62b04626b

Comment 1 Florence Blanc-Renaud 2022-02-02 09:43:31 UTC
Note for QE:
there is already an integration test that can be used to verify the fix, in (upstream) test_replica_promotion.py::TestHiddenReplicaPromotion::test_ipahealthcheck_hidden_replica

Currently the test is failing when running ipa-healthcheck with the following error:
Internal error testing KRA clone. KRA clone problem detected  Host: replica1.ipa.test Port: 443
[
  {
    "source": "pki.server.healthcheck.clones.connectivity_and_data",
    "check": "ClonesConnectivyAndDataCheck",
    "result": "ERROR",
    "uuid": "abd43647-a4d7-4da0-b970-d23538bbb5dd",
    "when": "20201115044756Z",
    "duration": "5.190928",
    "kw": {
      "status": "ERROR:  pki-tomcat : Internal error testing KRA clone. Host: replica1.ipa.test Port: 443"
    }
  }
]

With this fix + *a fix in pki*, the test should pass.

The other way to verify this test is to use curl (it doesn't require the pki part of the fix).
Install ipa-server with --setup-kra
Without the fix:

# curl  https://`hostname`/kra/admin/kra/getStatus
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
</body></html>

With the fix:

# curl https://`hostname`/kra/admin/kra/getStatus
<?xml version="1.0" encoding="UTF-8" standalone="no"?><XMLResponse><State>1</State><Type>KRA</Type><Status>running</Status><Version>10.10.7-1.fc34</Version></XMLResponse>

Comment 7 errata-xmlrpc 2022-05-17 12:44:20 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 (new packages: ipa), 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-2022:2387


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