forked from TrueCloudLab/frostfs-node
Airat Arifullin
e9363a5094
* Soft APE check means that APE should allow request even it gets status NoRuleFound for a request. Otherwise, it is interpreted as Deny. * Soft APE check is performed if basic ACL mask is not set. Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
18 lines
336 B
Go
18 lines
336 B
Go
package object
|
|
|
|
import "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/container/acl"
|
|
|
|
type RequestContextKeyT struct{}
|
|
|
|
var RequestContextKey = RequestContextKeyT{}
|
|
|
|
// RequestContext is a context passed between middleware handlers.
|
|
type RequestContext struct {
|
|
Namespace string
|
|
|
|
SenderKey []byte
|
|
|
|
Role acl.Role
|
|
|
|
SoftAPECheck bool
|
|
}
|