Skip to content

object/get: make internal payload-only GETs conditional on eACL recheck#4029

Open
End-rey wants to merge 1 commit into
masterfrom
header-for-eacl-recheck-when-needed
Open

object/get: make internal payload-only GETs conditional on eACL recheck#4029
End-rey wants to merge 1 commit into
masterfrom
header-for-eacl-recheck-when-needed

Conversation

@End-rey

@End-rey End-rey commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Closes #4028.

Propagate the existing `recheckEACL` signal through the GET path and use it when
preparing internal remote GET requests. Mark internal requests as payload-only
only when no header-based eACL recheck is needed. If recheck may be required,
keep fetching the header so matching eACL rules can still be evaluated
correctly.

Closes #4028.

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 38.46154% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 26.99%. Comparing base (a09f9da) to head (b4da6c2).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
pkg/services/object/get/get.go 33.33% 2 Missing ⚠️
pkg/services/object/get/prm.go 0.00% 2 Missing ⚠️
pkg/services/object/get/util.go 0.00% 2 Missing ⚠️
pkg/services/object/server.go 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4029      +/-   ##
==========================================
+ Coverage   26.97%   26.99%   +0.02%     
==========================================
  Files         684      684              
  Lines       46520    46549      +29     
==========================================
+ Hits        12549    12568      +19     
- Misses      32787    32794       +7     
- Partials     1184     1187       +3     

☔ 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.

@roman-khimov roman-khimov left a comment

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.

It looks good, but let's wait for #4021 to get in first.

@roman-khimov

Copy link
Copy Markdown
Member

Conflicts.

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.

Request header only when needed for EACL recheck

3 participants