Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsProjectSubject ¶
Types ¶
type RBACPolicyEnforcer ¶
type RBACPolicyEnforcer struct {
// contains filtered or unexported fields
}
RBACPolicyEnforcer provides an RBAC Claims Enforcer which additionally consults AppProject roles, jwt tokens, and groups. It is backed by a AppProject informer/lister cache and does not make any API calls during enforcement.
func NewRBACPolicyEnforcer ¶
func NewRBACPolicyEnforcer(enf *rbac.Enforcer, projLister applister.AppProjectNamespaceLister) *RBACPolicyEnforcer
NewRBACPolicyEnforcer returns a new RBAC Enforcer for the Argo CD API Server
func (*RBACPolicyEnforcer) EnforceClaims ¶
func (p *RBACPolicyEnforcer) EnforceClaims(claims jwt.Claims, rvals ...any) bool
EnforceClaims is an RBAC claims enforcer specific to the Argo CD API server
func (*RBACPolicyEnforcer) GetScopes ¶
func (p *RBACPolicyEnforcer) GetScopes() []string
func (*RBACPolicyEnforcer) SetScopes ¶
func (p *RBACPolicyEnforcer) SetScopes(scopes []string)
Click to show internal directories.
Click to hide internal directories.