Files
grafana/pkg/services/authz/rbac/models.go
T
Ieva acbbfde256 AuthZ service: Expand the logic to also evaluate action sets (#112124)
* expand AuthZ service logic to also evaluate action sets

* handle folder creation

* fix test

* simplify mapper code

Co-authored-by: gamab <gabi.mabs@gmail.com>

* more accurate variable name Co-authored-by: gamab <gabi.mabs@gmail.com>

* break alerting import cycle

* Apply suggestion from @gamab

---------

Co-authored-by: gamab <gabi.mabs@gmail.com>
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2025-10-08 13:37:12 +01:00

33 lines
683 B
Go

package rbac
import claims "github.com/grafana/authlib/types"
type checkRequest struct {
Namespace claims.NamespaceInfo
IdentityType claims.IdentityType
UserUID string
Action string // Verb has been mapped into an action
ActionSets []string
Group string
Resource string
Verb string
Name string
ParentFolder string
}
type listRequest struct {
Namespace claims.NamespaceInfo
IdentityType claims.IdentityType
UserUID string
Group string
Resource string
Verb string
Action string
ActionSets []string
Options *ListRequestOptions
}
type ListRequestOptions struct {
SkipCache bool
}