-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade NeoFS SDK with eacl changes #2618
Conversation
Behavior change: response headers are no longer processed because eACL may include rules over request headers only. Signed-off-by: Leonard Lyubich <[email protected]>
Adopt eACL changes. Signed-off-by: Leonard Lyubich <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #2618 +/- ##
==========================================
- Coverage 29.74% 29.52% -0.22%
==========================================
Files 408 400 -8
Lines 31215 30773 -442
==========================================
- Hits 9284 9086 -198
+ Misses 21119 20883 -236
+ Partials 812 804 -8
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -58,7 +59,7 @@ func boolToString(b bool) string { | |||
} | |||
|
|||
// PrettyPrintTableEACL print extended ACL in table format. | |||
func PrettyPrintTableEACL(cmd *cobra.Command, table *eacl.Table) { | |||
func PrettyPrintTableEACL(cmd *cobra.Command, table eacl.Table) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
return nil, errors.New("invalid action (expected 'allow' or 'deny')") | ||
case "allow": | ||
action = eacl.ActionAllow | ||
case "deny": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we have these strings somewhere?
ops[i] = acl.OpObjectSearch | ||
case "getrange": | ||
ops[i] = acl.OpObjectRange | ||
case "getrangehash": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And these ones also?
"github.com/nspcc-dev/neofs-sdk-go/user" | ||
) | ||
|
||
// node is wrapper over cfg providing interface needed by app components. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need another wrapper?
// static | ||
|
||
node Node | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why
oh
why
is
it
always
like
this?
too outdated, wontfix |
eacl
package neofs-sdk-go#526