An attribute DENY does not block DELETE

Abierto
#4,295 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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).
Lenguaje dominante
Go
Estrellas
37
Forks
56
Merge medio
1 d 21 h
PR fusionados (30 d)
46

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de nspcc-dev/neofs-node

Todos los issues de nspcc-dev/neofs-node

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.