Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Avoiding always-failing basic auth

Aperta
#76 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start by tracing ContainerImage.get_digest(auth={}) and the registry authentication flow to see where the initial Basic Auth request is made before the OAuth dance. Determine how a pre-obtained bearer token could be accepted, then verify the GitLab registry example avoids the spurious 401 while existing authentication behavior remains intact.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello and thanks for this very useful lib!

Container image registries which don't allow basic auth always receive a first basic authenticated request before falling back to the oauth dance. For example:

ContainerImage('registry.gitlab.com/gitlab-org/gitlab-runner:alpine').get_digest(auth={})

Our IT complains about these spurious 401 requests but I don't see a wait to bypass them. Would it make sense to add a mechanism to pass pre-obtained bearer tokens? I can submit a patch if this looks reasonable to you.

Cheers,

Lingua principale
Python
Stelle
8
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di containers/containerimage-py

Tutte le issue di containers/containerimage-py

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.