- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 583 for authorizer (0.12 sec)
-
staging/src/k8s.io/apiserver/pkg/authorization/union/union_test.go
cs := []struct { authorizers []authorizer.Authorizer decision authorizer.Decision }{ { authorizers: []authorizer.Authorizer{}, decision: authorizer.DecisionNoOpinion, }, { authorizers: []authorizer.Authorizer{ &mockAuthzHandler{decision: authorizer.DecisionNoOpinion}, &mockAuthzHandler{decision: authorizer.DecisionAllow},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 24 15:14:54 UTC 2019 - 7.7K bytes - Viewed (0) -
pkg/kubeapiserver/authorizer/reload.go
current atomic.Pointer[authorizerResolver] } type authorizerResolver struct { authorizer authorizer.Authorizer ruleResolver authorizer.RuleResolver } func (r *reloadableAuthorizerResolver) Authorize(ctx context.Context, a authorizer.Attributes) (authorized authorizer.Decision, reason string, err error) { return r.current.Load().authorizer.Authorize(ctx, a) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 19:01:15 UTC 2024 - 9.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/caching_authorizer.go
"k8s.io/apiserver/pkg/authorization/authorizer" ) type authzResult struct { authorized authorizer.Decision reason string err error } type cachingAuthorizer struct { authorizer authorizer.Authorizer decisions map[string]authzResult } func newCachingAuthorizer(in authorizer.Authorizer) authorizer.Authorizer { return &cachingAuthorizer{ authorizer: in,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 12 18:58:24 UTC 2024 - 3.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authorization/union/union.go
"k8s.io/apiserver/pkg/authorization/authorizer" ) // unionAuthzHandler authorizer against a chain of authorizer.Authorizer type unionAuthzHandler []authorizer.Authorizer // New returns an authorizer that authorizes against a chain of authorizer.Authorizer objects func New(authorizationHandlers ...authorizer.Authorizer) authorizer.Authorizer { return unionAuthzHandler(authorizationHandlers) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jun 28 20:27:28 UTC 2020 - 3.9K bytes - Viewed (0) -
plugin/pkg/auth/authorizer/node/node_authorizer.go
return authorizer.DecisionAllow, "", nil } return authorizer.DecisionNoOpinion, "", nil } // authorizeStatusUpdate authorizes get/update/patch requests to status subresources of the specified type if they are related to the specified node func (r *NodeAuthorizer) authorizeStatusUpdate(nodeName string, startingType vertexType, attrs authorizer.Attributes) (authorizer.Decision, string, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 16K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/authz.go
GetSubresource() string } func NewAuthorizerVal(userInfo user.Info, authorizer authorizer.Authorizer) ref.Val { return authorizerVal{receiverOnlyObjectVal: receiverOnlyVal(AuthorizerType), userInfo: userInfo, authAuthorizer: authorizer} } func NewResourceAuthorizerVal(userInfo user.Info, authorizer authorizer.Authorizer, requestResource Resource) ref.Val {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 21.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authorization/authorizerfactory/builtin.go
func (alwaysAllowAuthorizer) RulesFor(user user.Info, namespace string) ([]authorizer.ResourceRuleInfo, []authorizer.NonResourceRuleInfo, bool, error) { return []authorizer.ResourceRuleInfo{ &authorizer.DefaultResourceRuleInfo{ Verbs: []string{"*"}, APIGroups: []string{"*"}, Resources: []string{"*"}, }, }, []authorizer.NonResourceRuleInfo{ &authorizer.DefaultNonResourceRuleInfo{ Verbs: []string{"*"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 24 15:14:54 UTC 2019 - 3.2K bytes - Viewed (0) -
pkg/registry/admissionregistration/validatingadmissionpolicy/authz_test.go
auth: func(ctx context.Context, a authorizer.Attributes) (authorized authorizer.Decision, reason string, err error) { return authorizer.DecisionDeny, "", nil }, }, { name: "authorized", userInfo: &user.DefaultInfo{Groups: []string{user.AllAuthenticated}}, auth: func(ctx context.Context, a authorizer.Attributes) (authorized authorizer.Decision, reason string, err error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 21:29:56 UTC 2022 - 3.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1_test.go
serv.statusCode = test.statusCode authorized, _, err := wh.Authorize(context.Background(), test.attr) if test.expectedErr && err == nil { t.Fatalf("%d: Expected error", i) } else if !test.expectedErr && err != nil { t.Fatalf("%d: unexpected error: %v", i, err) } if test.expectedAuthorized != (authorized == authorizer.DecisionAllow) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 43.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authorization/authorizerfactory/builtin_test.go
if authorized, _, _ := auth.Authorize(context.Background(), yes); authorized != authorizer.DecisionAllow { t.Errorf("failed") } if authorized, _, _ := auth.Authorize(context.Background(), no); authorized == authorizer.DecisionAllow { t.Errorf("failed") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 24 15:14:54 UTC 2019 - 1.8K bytes - Viewed (0)