Skip to content

Optimize cryptography for forwarded GET/HEAD/SEARCH requests#4008

Open
cthulhu-rider wants to merge 2 commits into
masterfrom
object-get-forward-crypto
Open

Optimize cryptography for forwarded GET/HEAD/SEARCH requests#4008
cthulhu-rider wants to merge 2 commits into
masterfrom
object-get-forward-crypto

Conversation

@cthulhu-rider
Copy link
Copy Markdown
Contributor

No description provided.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2026

Codecov Report

❌ Patch coverage is 48.03922% with 53 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.78%. Comparing base (3b4a1dd) to head (58574ce).

Files with missing lines Patch % Lines
pkg/services/object/server.go 34.92% 38 Missing and 3 partials ⚠️
pkg/services/object/acl/v2/service.go 62.06% 8 Missing and 3 partials ⚠️
cmd/neofs-node/object.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4008      +/-   ##
==========================================
- Coverage   27.80%   27.78%   -0.03%     
==========================================
  Files         681      681              
  Lines       46758    46806      +48     
==========================================
+ Hits        13003    13006       +3     
- Misses      32517    32558      +41     
- Partials     1238     1242       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cthulhu-rider cthulhu-rider marked this pull request as ready for review June 3, 2026 15:11
Copy link
Copy Markdown
Member

@carpawell carpawell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First commit has "TBD" body

})
}

// TODO: double-check following code is required
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this todo mean?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is recent code in which the original request is changed. Therefore, this is not exactly forwarding. So i decided to left behavior for this case as is. But maybe smth can be improved for it

Comment thread CHANGELOG.md Outdated

### Changed
- Optimized EC GET request execution (#3996)
- Optimized GET/HEAD/SEARCH request signing when forwarding by container node (#XXX)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be fixed

GetRequestToInfo(*protoobject.GetRequest) (aclsvc.RequestInfo, bool, error)
RangeRequestToInfo(*protoobject.GetRangeRequest) (aclsvc.RequestInfo, error)
SearchV2RequestToInfo(*protoobject.SearchV2Request) (aclsvc.RequestInfo, error)
SearchV2RequestToInfo(*protoobject.SearchV2Request) (aclsvc.RequestInfo, bool, error)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo, desc should be extended then

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by desc u mean aclsvc.RequestInfo?

Recursive signatures are always more heavyweight than simple ones. Thus,
it's more efficient to create new read requests from container SN than
re-sign the original ones.

Refs #3978.

Signed-off-by: cthulhurider <ctulhurider@gmail.com>
Signed-off-by: cthulhurider <ctulhurider@gmail.com>
@cthulhu-rider cthulhu-rider force-pushed the object-get-forward-crypto branch from b586591 to 58574ce Compare June 5, 2026 13:32
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

Successfully merging this pull request may close these issues.

2 participants