Bug 1993078 - Enable Auth config for ironic-api
Summary: Enable Auth config for ironic-api
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Bare Metal Hardware Provisioning
Version: 4.9
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.9.0
Assignee: Derek Higgins
QA Contact: Adina Wolff
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-12 10:35 UTC by Derek Higgins
Modified: 2021-10-18 17:46 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-18 17:46:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift ironic-image pull 207 0 None None None 2021-08-12 10:38:25 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:46:23 UTC

Description Derek Higgins 2021-08-12 10:35:50 UTC
Auth was removed from ironic API in favour of doing
it in httpd (as part of a switch to wsgi). The switch to
wsgi hasn't happened so we need to restore auth here.

Comment 3 Adina Wolff 2021-08-18 06:55:31 UTC
Fix was verified

IPV4, OCP version 4.9.0-0.nightly-2021-08-16-154237
[kni@provisionhost-0-0 ~]$ curl -I https://172.22.0.3:6385/v1/nodes -X get  --insecure
HTTP/1.1 401 Unauthorized
Www-Authenticate: Basic realm="Baremetal API"
Content-Type: application/json
Content-Length: 57
Date: Tue, 17 Aug 2021 12:10:19 GMT


IPV6, OCP version 4.9.0-0.nightly-2021-08-16-082143

[kni@provisionhost-0-0 ~]$ curl https://[fd00:1101:0:1::3]:6385/v1/nodes -X get  --insecure
{"error":{"message":"Authorization required","code":401}}[kni@provisionhost-0-0 ~]$

Comment 6 errata-xmlrpc 2021-10-18 17:46:09 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: OpenShift Container Platform 4.9.0 bug fix and security 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:3759


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