[SUPPORT] Introduce ChainRouterError error type and wrap only these errors with ObjectAccessDenied status #1565

Merged
fyrchik merged 3 commits from aarifullin/frostfs-node:fix/ape_logicalerr_sprt into support/v0.44 2024-12-17 08:18:09 +00:00
Member
  • Introduce ChainRouterError in common/ape package
  • Refactor tree service. Make tree service wrap with ObjectAccessDenied only ChainRouterError
  • Refactor object service. Make object service wrap with ObjectAccessDenied only ChainRouterError

Since errors can be differentiated logical check errors and server internal errors.

* Introduce `ChainRouterError` in `common/ape` package * Refactor `tree` service. Make `tree` service wrap with `ObjectAccessDenied` only `ChainRouterError` * Refactor `object` service. Make `object` service wrap with `ObjectAccessDenied` only `ChainRouterError` Since errors can be differentiated logical check errors and server internal errors.
aarifullin added 3 commits 2024-12-16 13:01:32 +00:00
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
* Such wrapping helps to differentiate logical check errors and server internal
  errors.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
[#1563] tree: Wrap only ChainRouterError erros with ObjectAccessDenied
All checks were successful
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m28s
Vulncheck / Vulncheck (pull_request) Successful in 3m52s
Tests and linters / Run gofumpt (pull_request) Successful in 5m18s
Tests and linters / Lint (pull_request) Successful in 5m37s
DCO action / DCO (pull_request) Successful in 5m42s
Tests and linters / gopls check (pull_request) Successful in 5m47s
Tests and linters / Staticcheck (pull_request) Successful in 7m39s
Build / Build Components (pull_request) Successful in 7m52s
Tests and linters / Tests (pull_request) Successful in 7m51s
Tests and linters / Tests with -race (pull_request) Successful in 9m5s
c78546c7b5
* Such wrapping helps to differentiate logical check errors and server internal
  errors.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
aarifullin requested review from storage-core-committers 2024-12-16 13:01:33 +00:00
aarifullin requested review from storage-core-developers 2024-12-16 13:01:33 +00:00
aarifullin changed title from [SUPPORT] Introduce ChainRouterError error type and wrap only these errors with ObjectAccessDenied status to WIP: [SUPPORT] Introduce ChainRouterError error type and wrap only these errors with ObjectAccessDenied status 2024-12-16 13:02:06 +00:00
aarifullin force-pushed fix/ape_logicalerr_sprt from c78546c7b5 to 94b0ceb0b8 2024-12-16 13:08:59 +00:00 Compare
aarifullin changed title from WIP: [SUPPORT] Introduce ChainRouterError error type and wrap only these errors with ObjectAccessDenied status to [SUPPORT] Introduce ChainRouterError error type and wrap only these errors with ObjectAccessDenied status 2024-12-16 13:09:29 +00:00
aarifullin changed title from [SUPPORT] Introduce ChainRouterError error type and wrap only these errors with ObjectAccessDenied status to WIP: [SUPPORT] Introduce ChainRouterError error type and wrap only these errors with ObjectAccessDenied status 2024-12-16 13:09:51 +00:00
aarifullin force-pushed fix/ape_logicalerr_sprt from 94b0ceb0b8 to ad89b3ee53 2024-12-16 13:15:18 +00:00 Compare
aarifullin force-pushed fix/ape_logicalerr_sprt from ad89b3ee53 to 7e3f2fca47 2024-12-16 13:19:29 +00:00 Compare
aarifullin changed title from WIP: [SUPPORT] Introduce ChainRouterError error type and wrap only these errors with ObjectAccessDenied status to [SUPPORT] Introduce ChainRouterError error type and wrap only these errors with ObjectAccessDenied status 2024-12-16 13:19:44 +00:00
acid-ant approved these changes 2024-12-16 14:57:33 +00:00
fyrchik approved these changes 2024-12-17 08:17:43 +00:00
fyrchik requested review from dkirillov 2024-12-17 08:17:56 +00:00
fyrchik merged commit 7e3f2fca47 into support/v0.44 2024-12-17 08:18:09 +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#1565
No description provided.