Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test container removal/setEACL with session issued by a NON-owner of the container #579

Closed
cthulhu-rider opened this issue Jul 4, 2023 · 1 comment
Assignees

Comments

@cthulhu-rider
Copy link
Contributor

cthulhu-rider commented Jul 4, 2023

container MUST NOT be removed/setEACLed by anyone except:

  • owner (creator)
  • trusted party proved by the container owner via session token

AFAIK we have a test that asserts true-positive case (session signed by owner => removal/setEACL OK)

we must additionally test true-negative case:

  • issue session on behalf of any party other than container owner (i.e. sign via non-owner key)
  • sent removal/setEACL request with token of this session
  • expect operation failure
@cthulhu-rider cthulhu-rider changed the title Test container removal with session issued by a NON-owner of the container Test container removal/setEACL with session issued by a NON-owner of the container Jul 4, 2023
@vvarg229 vvarg229 self-assigned this Jul 12, 2023
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Jul 13, 2023
Added two negative tests that verify that the container cannot be removed or
set container EACL by anyone other than the owner (creator) or trusted trusted
party proved by the container owner via session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Jul 28, 2023
Added two negative tests that verify that the container cannot be removed or
set container EACL by anyone other than the owner (creator) or trusted trusted
party proved by the container owner via session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Jul 28, 2023
Added two negative tests that verify that the container cannot be removed or
set container EACL by anyone other than the owner (creator) or trusted trusted
party proved by the container owner via session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Jul 31, 2023
Added two negative tests that verify that the container cannot be removed or
set container EACL by anyone other than the owner (creator).

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Jul 31, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Jul 31, 2023
Added two negative tests that verify that the container cannot be removed or
set container EACL by anyone other than the owner (creator).

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Jul 31, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Jul 31, 2023
Added two negative tests that verify that the container cannot be removed or
set container EACL by anyone other than the owner (creator).

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Jul 31, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 1, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 1, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 1, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
@cthulhu-rider
Copy link
Contributor Author

cthulhu-rider commented Aug 2, 2023

recent NeoFS CLI revisions check session ownership, so attempting to use another wallet may fail with session issuer differs with the container owner w/o request to NeoFS. To skip this check and make behavior similar to owner's sessions, use --force flag.

with --force:

  1. success leads to command exit with code=0.
  2. any failure leads to command exit with code=1 and timed out after 90 seconds output message

currently, NeoFS CLI will exit with code=0 in case 2, so right now test may rely on code=1 and/or mentioned text output. This may be changed in the future nspcc-dev/neofs-node#2380

P.S. there is no ability to get exact reason of some failures right now. For example, async Inner Ring checks (session ownership is one of them).

vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 17, 2023
Added two negative tests that verify that the container cannot be removed or
set container EACL by anyone other than the owner (creator).

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 17, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 24, 2023
Added two negative tests that verify that the container cannot be removed or
set container EACL by anyone other than the owner (creator).

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 24, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 24, 2023
Added two negative tests that verify that the container cannot be removed or
set container EACL by anyone other than the owner (creator).

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 24, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 24, 2023
Added two negative tests that verify that the container cannot be removed or
set container EACL by anyone other than the owner (creator).

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 24, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 24, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 24, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 24, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 24, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 24, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 24, 2023
Added two negative tests that verify that the container cannot be removed or
set container EACL by anyone other than the owner (creator).

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 24, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
vvarg229 added a commit to vvarg229/neofs-testcases that referenced this issue Aug 25, 2023
Added negative tests that verify that the container can be removed or set
container EACL only by trusted party proved by the container owner via
session token.

Closes nspcc-dev#579

Signed-off-by: Oleg Kulachenko <oleg@nspcc.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants