Authenticated calls to the /v2/<repo>/tags/list fail when redirected to the paginated tags list endpoint
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- api, authentication, backend
Línea de trabajo
Start by reproducing the failure with skopeo list-tags or Harbor's Docker registry provider against a repository with more than 100 tags, comparing bare and paginated /v2//tags/list requests. Trace the registry authentication handling for these endpoints; done means the paginated request accepts the same authentication as the bare endpoint.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Version
"core": "3.43.2",
"container": "2.17.0"
Describe the bug
Requests to the /v2//tags/list endpoint succeed, but fail with a 401 when pagination query parameters are appended.
The same token is used for both requests, and just includes service=:
/token/?service=example.com
('pulp [813cd77a4cb44f64a4d8093505867076]: ::ffff:172.18.0.9 - - [15/Aug/2025:10:22:15 +0000] "GET /v2/stackhpc/neutron-server/tags/list HTTP/1.0" 200 3573 "-" "harbor-registry-client"',)
('pulp [bbf9921074914c1783ba2d5b40e7caf0]: ::ffff:172.18.0.9 - - [15/Aug/2025:10:22:15 +0000] "GET /v2/stackhpc/neutron-server/tags/list?n=100&last=2025.1-ubuntu-noble-20250725T143116 HTTP/1.0" 401 106 "https://example.com/v2/stackhpc/neutron-server/tags/list?n=100&last=2025.1-ubuntu-noble-20250725T143116" "harbor-registry-client"',)
If the token includes scope= (and account=) then the paginated call is successful.
/token/?account=REDACTED&scope=repository%3Astackhpc%2Fneutron-server%3Apull&service=example.com
('pulp [c726049738fb4854ab8b907da1e8f953]: ::ffff:172.18.0.9 - - [15/Aug/2025:12:27:10 +0000] "GET /v2/stackhpc/neutron-server/tags/list HTTP/1.0" 200 3573 "-" "skopeo/1.19.0"',)
('pulp [a247c47c7fa145269cd5fd8d16ff3b1c]: ::ffff:172.18.0.9 - - [15/Aug/2025:12:33:41 +0000] "GET /v2/stackhpc/neutron-server/tags/list?n=100&last=2025.1-ubuntu-noble-20250725T143116 HTTP/1.0" 200 480 "-" "skopeo/1.19.0"',)
I'm not sure what the correct behaviour for the registry v2 protocol is, but there is enough variety in the client implementation that something like Skopeo (which requests the repository= scope in its token) can always list tags from a repository, whether it has more than 100 tags or not, but Harbor's "Docker registry" provider can't if there are more than 100 tags in the repository.
To Reproduce
Use skopeo list-tags or setup a replication rule using Harbor's Docker registry provider on a repository with more than 100 tags and observe the difference in behaviour.
Expected behavior
The paginated version of /v2//tags/list should be behind the same authentication as the bare endpoint.
- Lenguaje dominante
- Python
- Estrellas
- 31
- Forks
- 57
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 87
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pulp/pulp_container
-
Feature
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
pulp/pulp_container#2519 ·
Los mantenedores suelen responder en 1 día
-
base_path uniqueness constraint prevents syncing the same image from multiple remote registriesAbiertoQuestion
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
pulp/pulp_container#2495 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Sync performance: skip /tags/list for specific tag listsPosiblemente ocupada @parmstro la tomó hace 22 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
pulp/pulp_container#2474 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
pulp/pulp_container#2473 ·
Los mantenedores suelen responder en 1 día
-
Task
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
pulp/pulp_container#2246 · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de pulp/pulp_container
Issues similares
-
Keybind quest outdatedAbiertoStatus: Triage Type: Quest
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
GTNewHorizons/GT-New-Horizons-Modpack#27490 ·
Los mantenedores suelen responder en 1 día
-
Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
retentioneering/retentioneering-tools#231 ·
Los mantenedores suelen responder en 1 día
-
backend bug documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
geolens-io/geolens#3568 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
mprov-ng/mprov_control_center#450 ·
Los mantenedores suelen responder en 1 día