An attribute DENY does not block DELETE

Aperta
#4,295 1 commento 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
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Start by tracing DELETE authorization and how object attributes are attached to the request; the issue does not name files or tests, so locate the eACL evaluation path and its DELETE coverage. Reproduce the steps with an attribute-based DENY rule, then confirm the matching object is rejected while an object without the attribute is unaffected.

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

Descrizione

enhancement I4 neofs-storage S4 U3

Expected Behavior

A DELETE rule filtered by an object attribute rejects deletion of matching objects.

Current Behavior

DELETE attaches only the container id and the object id. The attribute filter does not match, the table falls through to the default allow, and the object is deleted.

Steps to Reproduce (for bugs)

  1. Create a container with a public basic ACL.
  2. Put two objects. Give one the attribute classified=secret.
  3. As the container owner, set an eACL that denies GET, HEAD, SEARCH, and DELETE for others when classified equals secret.
  4. From a non-owner wallet, DELETE the object with classified=secret.
  5. The delete succeeds. A following GET reports that the object is already removed (code 2052).
Lingua principale
Go
Stelle
37
Fork
56
Merge medio
1g 21h
PR unite (30g)
46

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 nspcc-dev/neofs-node

Tutte le issue di nspcc-dev/neofs-node

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.