Support for npm audit

Aperta
#445 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
50/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

The 405 comes from the distribution's HTTP routes accepting no POST on /-/npm/v1/security/*, so start by finding where pulp_npm defines its npm registry endpoints and how it forwards requests to a remote's upstream. Reproduce by running npm audit against a local distribution and confirming the 405. Done when audit requests are passed through to the upstream registry and return its response unchanged.

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

Descrizione

Feature Triage-Needed

Is your feature request related to a problem? Please describe.
npm audit and pnpm audit fail against a pulp_npm distribution with HTTP 405 because Pulp doesn't support POST requests against /-/npm/v1/security/* endpoints.

Describe the solution you'd like
Forward these requests to the remote's upstream registry and return the response as-is, with no caching needed.

Describe alternatives you've considered
Overriding --registry for audits or routing the endpoints at the gateway. Both bypass Pulp and need extra configuration.

Additional context
Nexus supports this, so it's a gap for teams migrating from Nexus.

Lingua principale
Python
Stelle
15
Fork
27
Merge medio
22h 44m
PR unite (30g)
8

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 pulp/pulp_npm

Tutte le issue di pulp/pulp_npm

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.