ape: Make services use bearer chains fed router #1216

Merged
fyrchik merged 2 commits from aarifullin/frostfs-node:feat/bt_router into master 2024-07-05 18:26:56 +00:00

2 commits

Author SHA1 Message Date
48022de5ef [#1216] ape: Make services use bearer chains fed router
All checks were successful
Vulncheck / Vulncheck (pull_request) Successful in 3m52s
DCO action / DCO (pull_request) Successful in 4m9s
Pre-commit hooks / Pre-commit (pull_request) Successful in 5m10s
Build / Build Components (1.21) (pull_request) Successful in 4m56s
Build / Build Components (1.22) (pull_request) Successful in 4m58s
Tests and linters / gopls check (pull_request) Successful in 6m16s
Tests and linters / Staticcheck (pull_request) Successful in 6m38s
Tests and linters / Lint (pull_request) Successful in 7m42s
Tests and linters / Tests (1.21) (pull_request) Successful in 9m10s
Tests and linters / Tests (1.22) (pull_request) Successful in 9m6s
Tests and linters / Tests with -race (pull_request) Successful in 10m1s
* Refactor object and tree service - they should instantiate
  chain router cheking the bearer token. If there are no bearer
  token rules, then defaul chain router is used.
* Fix unit-tests.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
2024-07-04 13:44:21 +03:00
ea762a0494 [#1216] ape: Introduce BearerChainFeedRouter
* Unlike default chain router, `BearerChainFedRouter` performs checks for
  overrides defined in the bearer token;
* Add unit-test for the introduced router.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
2024-07-04 13:38:00 +03:00