Bug 2122617
Summary: | Kerberos authentication fails for POST, PUT and DELETE api calls | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Vladimír Sedmík <vsedmik> |
Component: | Authentication | Assignee: | Oleh Fedorenko <ofedoren> |
Status: | CLOSED ERRATA | QA Contact: | Lukáš Hellebrandt <lhellebr> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.12.0 | CC: | aruzicka, lhellebr, lvrtelov, mhulan, ofedoren, pcreech, pmendezh, swadeley |
Target Milestone: | 6.13.0 | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | foreman-3.5.0,foreman-installer-3.5.0 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-05-03 13:21:46 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1264161 |
Description
Vladimír Sedmík
2022-08-30 12:29:32 UTC
Created redmine issue https://projects.theforeman.org/issues/35473 from this bug Doing the flag dance per https://issues.redhat.com/browse/SAT-10254?focusedCommentId=20931263 Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35473 has been resolved. Verified on Sat 6.13 snap 10.0. It is now possible to call GET, POST, PUT and DELETE endpoints with correct results. On a Satellite enrolled to AD: # kinit foobar.rdu2.redhat.com # curl -c cookies.txt -u : --negotiate https://$(hostname)/api/users/extlogin # curl -b cookies.txt -H "Accept:application/json" -H "Content-Type:application/json" -X GET -k https://$(hostname)/api/architectures <expected result, archs listed> # curl -b cookies.txt -H "Accept:application/json,version=2" -H "Content-Type:application/json" -X POST -d '{"name":"8051"}' -k https://satellite.redhat.com/api/architectures # curl -b cookies.txt -H "Accept:application/json" -H "Content-Type:application/json" -X GET -k https://$(hostname)/api/architectures <expected result, arch added> # curl -b cookies.txt -H "Accept:application/json,version=2" -H "Content-Type:application/json" -X PUT -d '{"name":"8051a"}' -k https://$(hostname)/api/architectures/2 # curl -b cookies.txt -H "Accept:application/json" -H "Content-Type:application/json" -X GET -k https://$(hostname)/api/architectures <expected result, arch name changed> # curl -H "Accept:application/json,version=2" -H "Content-Type:application/json" -X DELETE -k https://$(hostname)/api/architectures/2 # curl -b cookies.txt -H "Accept:application/json" -H "Content-Type:application/json" -X GET -k https://$(hostname)/api/architectures <expected result, arch deleted> 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 (Important: Satellite 6.13 Release), 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-2023:2097 |