Strict APE check for EC & fix sign EC part put requests #1451

Merged
fyrchik merged 5 commits from dstepanov-yadro/frostfs-node:fix/ec_ape_strict into master 2024-11-06 08:18:11 +00:00

5 commits

Author SHA1 Message Date
b4adf43557
[#1451] placement: Return copy of slice from container nodes cache
All checks were successful
Tests and linters / Run gofumpt (pull_request) Successful in 1m53s
DCO action / DCO (pull_request) Successful in 2m8s
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m12s
Vulncheck / Vulncheck (pull_request) Successful in 3m6s
Build / Build Components (pull_request) Successful in 3m23s
Tests and linters / Staticcheck (pull_request) Successful in 3m17s
Tests and linters / Tests (pull_request) Successful in 3m21s
Tests and linters / gopls check (pull_request) Successful in 3m35s
Tests and linters / Lint (pull_request) Successful in 4m15s
Tests and linters / Tests with -race (pull_request) Successful in 6m31s
Nodes from cache could be changed by traverser, if no objectID specified.
So it is required to return copy of cache's slice.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2024-11-06 10:41:28 +03:00
bec16a7e7c
[#1451] ec: Check all parts are saved
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2024-11-06 10:41:27 +03:00
26c728363c
[#1451] ape: Drop unused
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2024-11-06 10:41:27 +03:00
de3a89a0ba
[#1451] ape: Perform strict APE checks for EC parts
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2024-11-06 10:41:26 +03:00
0befda5f4f
[#1451] writer: Sign EC parts with node's private key
As EC put request may be processed only by container node, so sign requests
with current node private to not to perform APE checks.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2024-11-06 10:41:26 +03:00