Unable to set up pulp-python sync from JFrog local pypi repository
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
Start by reproducing the authenticated sync described in the issue with a JFrog local PyPI repository, using the listed pulp-python 3.11.0 setup and remote credentials. Compare the request URL and authentication seen in the JFrog logs with the configured remote; done means the sync succeeds with credentials passed correctly and the package path is formed as expected.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Version
Deployed via Operator:
{
"versions": [
{
"component": "core",
"version": "3.49.1",
"package": "pulpcore",
"module": "pulpcore.app",
"domain_compatible": true
},
{
"component": "python",
"version": "3.11.0",
"package": "pulp-python",
"module": "pulp_python.app",
"domain_compatible": false
},
Describe the bug
I set up a Pulp python remote pointing at a local JFrog pypi repository ("url": "https://<redacted>/artifactory/api/pypi/pypi-local/simple"), providing valid credentials in the process (with username and password), and linked it with a Pulp python repository and distribution. However, it appears that the credentials are not being passed during the requests when syncing, or the URL is being malformed, or something. From JFrog logs (note the non_authenticated_user and 401):
2024-05-14T16:33:15.472Z|<redacted>|<redacted>|non_authenticated_user|GET|/api/pypi/pypi-local/simple/pypi/<redacted>/json|401|-1|0|1|bandersnatch/6.1.0 (cpython 3.9.18-final0, Linux x86_64) (aiohttp 3.9.3)
For what it's worth, that URL also looks strange... I would expect .../simple/<redacted>/json, not .../simple/pypi/<redacted>/json. It's worth noting that Artifactory requires the username/password to be included in the URL but Pulp prevents that:
Error: {"url":["The remote url contains username or password. Please use remote username or password instead."]}
To Reproduce
Steps to reproduce the behavior:
- Create a local pypi repository in JFrog.
- Create a Pulp remote pointing at the JFrog pypi repository (and then set up a Pulp repository and distribution as needed to sync it).
- Attempt an authenticated sync.
Expected behavior
The sync should happen successfully.
Additional context
N/A
- Linguagem predominante
- Python
- Estrelas
- 49
- Forks
- 88
- Merge médio
- 1d 10h
- PRs com merge (30d)
- 31
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de pulp/pulp_python
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
pulp/pulp_python#1381 ·
-
Feature Triage-Needed
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 45/100
pulp/pulp_python#1371 ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 45/100
pulp/pulp_python#1360 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 52/100
pulp/pulp_python#1358 ·
-
Feature
pulp/pulp_python#1340 · 1 responsável ·
Todas as issues de pulp/pulp_python
Issues semelhantes
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
zostera/django-bootstrap4#894 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
use-agent-os/agent-os#3276 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
NousResearch/hermes-agent#117848 ·