Project

General

Profile

Actions

Bug #36861

closed

Cannot discovery container repositories on private registries or on registries that only support api v2

Added by Joniel Pasqualetto 7 months ago. Updated 5 months ago.

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

Description

Description of problem:

There are 2 different issues that I believe are at play here.

1. Authentication during discovery is not really working not allowing the discovery of any repositories on private registriers.

2. If/when the query to the v2/_catalog works, the way we're dealing with the results returns nothing for the user at the webUI

Version-Release number of selected component (if applicable):
Satellite 6.13 where I tested but most likely also observed on previous versions

How reproducible:
Always

Steps to Reproduce:
1. Create a private registry that only supports api v2 (anything on azurecr.io, for example). I do have a reproducer for testing purposes I can share.
2. push some images to your private registry
3. try discovering the repositories

Actual results:

1. Discover always return 401 errors (using the right password)

2. If the registry is public, it simply returns no results

Expected results:
Be able to discover container repositories on v2 only registries
Be able to discover container repositories on private registries

Additional info:

I have a possible patch that worked on my lab. Will propose it upstream for discussion/validation.

Actions #1

Updated by Partha Aji 7 months ago

  • Project changed from Foreman to Katello
Actions #2

Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/10777 added
Actions #3

Updated by Chris Roberts 7 months ago

  • Target version set to Katello 4.11.0
  • Triaged changed from No to Yes
Actions #4

Updated by The Foreman Bot 7 months ago

  • Fixed in Releases Katello 4.11.0 added
Actions #5

Updated by Joniel Pasqualetto 7 months ago

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

Updated by Ian Ballou 6 months ago

  • Category set to Container
Actions #7

Updated by Ewoud Kohl van Wijngaarden 5 months ago

  • Subject changed from Cannot discovery container repositories on private registries or on registries that only support api v2 to Cannot discovery container repositories on private registries or on registries that only support api v2
Actions

Also available in: Atom PDF