An attribute DENY does not block DELETE

オープン
#4,295 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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).
主要言語
Go
スター
37
フォーク
56
平均マージ
1日 21時間
マージ済み PR(30日)
46

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nspcc-dev/neofs-node のほかの issue

nspcc-dev/neofs-node の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。