Delete old deferral requests

Aperta
#10,073 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
go
Ambito
api, security

Direzione di ricerca

Start with the DELETE /v1/cve/requests/$id endpoint and the reported error that limits deletion to vulnerability exceptions or pending updates. Determine how expired deferral requests are represented and whether the API should support removing them; done means the supported housekeeping behavior is implemented or clearly documented.

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

Descrizione

Hello, I'm trying to remove old deferral requests via the API:

curl -s -k -u admin:$acs_pass -X DELETE "https://localhost:8443/v1/cve/requests/$id"

However I get:

{"error":"cannot delete exception 6ee5ee7d-4b2c-402f-9903-b404c52f1df9. Only vulnerability exceptions or updates in pending state can be deleted","code":13,"message":"cannot delete exception 6ee5ee7d-4b2c-402f-9903-b404c52f1df9. Only vulnerability exceptions or updates in pending state can be deleted","details":[]}

We are needing to extract deferral request info from ACS as the UI (to put it bluntly) is a bit rubbish for this. However we are finding a load of no longer used deferral requests and we'd like to do some housekeeping. Is it possible via the API please? (The deferrals we are wishing to remove don't show in UI as they've expired).

Thanks!

Lingua principale
Go
Stelle
1.3k
Fork
194
Merge medio
2g 20h
PR unite (30g)
392

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 stackrox/stackrox

Tutte le issue di stackrox/stackrox

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.