From b430023ddffb97e94500ade29e3d6140422782d9 Mon Sep 17 00:00:00 2001 From: Evgenii Baidakov Date: Thu, 2 Jul 2026 10:27:56 +0700 Subject: [PATCH] *: Remove bearer rules authmate option Relates https://github.com/nspcc-dev/neofs-s3-gw/issues/1306. Signed-off-by: Evgenii Baidakov --- bearer_rules.json | 81 ----------------------------------------------- conftest.py | 2 +- neofs-testcases | 2 +- 3 files changed, 2 insertions(+), 83 deletions(-) delete mode 100644 bearer_rules.json diff --git a/bearer_rules.json b/bearer_rules.json deleted file mode 100644 index 8e9197a8c..000000000 --- a/bearer_rules.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "records": [ - { - "operation": "PUT", - "action": "ALLOW", - "filters": [], - "targets": [ - { - "role": "OTHERS", - "keys": [] - } - ] - }, - { - "operation": "GET", - "action": "ALLOW", - "filters": [], - "targets": [ - { - "role": "OTHERS", - "keys": [] - } - ] - }, - { - "operation": "DELETE", - "action": "ALLOW", - "filters": [], - "targets": [ - { - "role": "OTHERS", - "keys": [] - } - ] - }, - { - "operation": "SEARCH", - "action": "ALLOW", - "filters": [], - "targets": [ - { - "role": "OTHERS", - "keys": [] - } - ] - }, - { - "operation": "GETRANGE", - "action": "ALLOW", - "filters": [], - "targets": [ - { - "role": "OTHERS", - "keys": [] - } - ] - }, - { - "operation": "GETRANGEHASH", - "action": "ALLOW", - "filters": [], - "targets": [ - { - "role": "OTHERS", - "keys": [] - } - ] - }, - { - "operation": "HEAD", - "action": "ALLOW", - "filters": [], - "targets": [ - { - "role": "OTHERS", - "keys": [] - } - ] - } - ] - } diff --git a/conftest.py b/conftest.py index ec7c20249..0d4262b0f 100644 --- a/conftest.py +++ b/conftest.py @@ -68,7 +68,7 @@ def init_s3_credentials( f"{neofs_env.neofs_s3_authmate_path} --debug --with-log --timeout 1m " f"issue-secret --wallet {wallet.path} --gate-public-key={gate_public_key} " f"--peer {neofs_env.storage_nodes[0].endpoint} " - f"--bearer-rules {os.getcwd()}/bearer_rules.json --container-placement-policy 'REP 1' " + f"--container-placement-policy 'REP 1' " f"--container-policy {os.getcwd()}/container_policy.json" ) diff --git a/neofs-testcases b/neofs-testcases index dc00e1c5f..c6bb20326 160000 --- a/neofs-testcases +++ b/neofs-testcases @@ -1 +1 @@ -Subproject commit dc00e1c5fbe5d53e699a215e8596ab2293c9c6db +Subproject commit c6bb20326b01e7e91904a2c965a2fc74e0bd2d8d