Project

General

Profile

Actions

Bug #33147

closed

Ansible collection repo validate both auth url and token are supplied

Added by Samir Jha over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions #1

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
Actions #2

Updated by Ian Ballou over 3 years ago

  • Target version set to Katello 4.2.0
  • Triaged changed from No to Yes
Actions #3

Updated by The Foreman Bot over 3 years ago

  • Fixed in Releases Katello 4.3.0 added
Actions #4

Updated by Samir Jha over 3 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by The Foreman Bot over 3 years ago

  • Pull request https://github.com/Katello/katello/pull/9529 added
Actions #6

Updated by Samir Jha over 3 years ago

  • Pull request deleted (https://github.com/Katello/katello/pull/9529)
Actions

Also available in: Atom PDF