Bug #33147
closedAnsible collection repo validate both auth url and token are supplied
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1984890
Description of problem:
Ansible collection repo fails to sync from the ansible hub, both token-based auth and SSO URL fail
Version-Release number of selected component (if applicable):
Satellite 6.10 sn 10
How reproducible:
always
Steps to Reproduce:
1. create ansible collection repo:
Upstream url:
https://cloud.redhat.com/api/automation-hub/
requirements.yml:
---
collections:
- redhat.satellite_operations
either use
Auth URL: https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
or generated Auth token (both based on https://cloud.redhat.com/ansible/automation-hub/token/)
2. sync repo
Actual results:
Synchronization tasks fail,
if using auth url, the error is:
400, message='Bad Request', url=URL
if using token, the the error is:
401, message='Unauthorized', url=URL
Expected results:
Successful sync
Additional info:
Looking directly at https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token I'm seeing "An internal server error has occurred", the issue may as well be at ansible-hub
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Assignee set to Samir Jha
- Pull request https://github.com/Katello/katello/pull/9500 added
Updated by Ian Ballou over 3 years ago
- Target version set to Katello 4.2.0
- Triaged changed from No to Yes
Updated by The Foreman Bot over 3 years ago
- Fixed in Releases Katello 4.3.0 added
Updated by Samir Jha over 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|eed981730c594e6e86e41c8e86c6cc01aeac592c.
Updated by The Foreman Bot over 3 years ago
- Pull request https://github.com/Katello/katello/pull/9529 added
Updated by Samir Jha over 3 years ago
- Pull request deleted (
https://github.com/Katello/katello/pull/9529)