adm: Do not use actor for readonly commands #1514

Merged
fyrchik merged 6 commits from fyrchik/frostfs-node:only-read-only into master 2024-11-21 14:37:35 +00:00
Owner

Testing done:
Manually checked that every affected command executes with no errors on dev-env when alphabet-wallets is not provided.

frostfsid: list-namespaces, list-subjects, list-groups, list-group-subjects
nns: get-records, tokens
netmap: netmap-candidates
Testing done: Manually checked that every affected command executes with no errors on dev-env when alphabet-wallets is not provided. ``` frostfsid: list-namespaces, list-subjects, list-groups, list-group-subjects nns: get-records, tokens netmap: netmap-candidates ```
fyrchik added 3 commits 2024-11-21 07:47:06 +00:00
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
It was not possible previously, because GetAllRecords() was not declared
safe in frostfs-contract.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
[#1514] adm/nns: Do not create actor for readonly commands
All checks were successful
Pre-commit hooks / Pre-commit (pull_request) Successful in 4m1s
Tests and linters / Run gofumpt (pull_request) Successful in 4m12s
DCO action / DCO (pull_request) Successful in 4m26s
Tests and linters / Staticcheck (pull_request) Successful in 5m44s
Build / Build Components (pull_request) Successful in 5m57s
Vulncheck / Vulncheck (pull_request) Successful in 6m39s
Tests and linters / Lint (pull_request) Successful in 7m0s
Tests and linters / gopls check (pull_request) Successful in 7m50s
Tests and linters / Tests (pull_request) Successful in 10m21s
Tests and linters / Tests with -race (pull_request) Successful in 10m18s
2f56a626e9
`nns get-records` and `nns tokens` command do not need to sign anything,
so remove useless actor and use invoker directly.
`NewLocalActor()` is only used in `ape` and `nns` packages. `ape`
package seem to use it correctly, only when alphabet wallets are
provided, so no changes there.
Also, remove --alphabet-wallets flag from commands that do not need it.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
fyrchik requested review from storage-core-committers 2024-11-21 07:47:37 +00:00
fyrchik requested review from storage-core-developers 2024-11-21 07:47:42 +00:00
fyrchik force-pushed only-read-only from 2f56a626e9 to 0be126c2cf 2024-11-21 07:47:49 +00:00 Compare
fyrchik changed title from only-read-only to adm: Do not use actor for readonly commands 2024-11-21 07:47:49 +00:00
fyrchik force-pushed only-read-only from 0be126c2cf to a2e1b2cf43 2024-11-21 07:52:37 +00:00 Compare
fyrchik force-pushed only-read-only from a2e1b2cf43 to ecc77381f9 2024-11-21 07:53:09 +00:00 Compare
fyrchik force-pushed only-read-only from ecc77381f9 to 8e3a2eaed9 2024-11-21 07:54:48 +00:00 Compare
fyrchik force-pushed only-read-only from 8e3a2eaed9 to bd8459312a 2024-11-21 08:53:30 +00:00 Compare
acid-ant approved these changes 2024-11-21 12:22:14 +00:00
aarifullin approved these changes 2024-11-21 13:27:44 +00:00
fyrchik merged commit 99f9e59de9 into master 2024-11-21 14:37:35 +00:00
fyrchik deleted branch only-read-only 2024-11-21 14:37:38 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#1514
No description provided.