Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for Authorize (0.26 sec)

  1. 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)
  2. pkg/registry/admissionregistration/validatingadmissionpolicybinding/authz.go

    		// identical paramRef and policy to old object
    		return nil
    	}
    
    	return v.authorize(ctx, binding)
    }
    
    func (v *validatingAdmissionPolicyBindingStrategy) authorize(ctx context.Context, binding *admissionregistration.ValidatingAdmissionPolicyBinding) error {
    	if v.authorizer == nil || v.resourceResolver == nil || binding.Spec.ParamRef == nil {
    		return nil
    	}
    
    	// for superuser, skip all checks
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 12:19:03 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. pilot/pkg/xds/auth.go

    	c, err := security.Authenticate(ctx, s.Authenticators)
    	if c != nil {
    		return c.Identities, nil
    	}
    	return nil, err
    }
    
    func (s *DiscoveryServer) authorize(con *Connection, identities []string) error {
    	if con == nil || con.proxy == nil {
    		return nil
    	}
    
    	if features.EnableXDSIdentityCheck && identities != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. plugin/pkg/admission/certificates/ctbattest/admission_test.go

    	verb        string
    	allowedName string
    	decision    authorizer.Decision
    	err         error
    }
    
    func (f fakeAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorizer.Decision, string, error) {
    	if f.err != nil {
    		return f.decision, "forced error", f.err
    	}
    	if a.GetVerb() != f.verb {
    		return authorizer.DecisionDeny, fmt.Sprintf("unrecognised verb '%s'", a.GetVerb()), nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/security/first-steps.md

    You will see something like this:
    
    <img src="/img/tutorial/security/image01.png">
    
    !!! check "Authorize button!"
        You already have a shiny new "Authorize" button.
    
        And your *path operation* has a little lock in the top-right corner that you can click.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Jun 03 01:48:20 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. pilot/pkg/xds/sds.go

    	var authzResult *bool
    	var authzError error
    	// isAuthorized is a small wrapper around credscontroller.Authorize so we only call it once instead of each time in the loop
    	isAuthorized := func() bool {
    		if authzResult != nil {
    			return *authzResult
    		}
    		res := false
    		if err := secrets.Authorize(proxy.VerifiedIdentity.ServiceAccount, proxy.VerifiedIdentity.Namespace); err == nil {
    			res = true
    		} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 23:04:36 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/cel/environment/environment_test.go

    	if err != nil {
    		return false, err
    	}
    	return result.Value() == true, nil
    }
    
    type fakeAuthorizer struct {
    	decision authorizer.Decision
    	reason   string
    	err      error
    }
    
    func (f fakeAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorizer.Decision, string, error) {
    	return f.decision, f.reason, f.err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 10K bytes
    - Viewed (0)
  8. pkg/kubelet/server/server_test.go

    	attributesFunc   func(user.Info, *http.Request) authorizer.Attributes
    	authorizeFunc    func(authorizer.Attributes) (authorized authorizer.Decision, reason string, err error)
    }
    
    func (f *fakeAuth) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error) {
    	return f.authenticateFunc(req)
    }
    func (f *fakeAuth) GetRequestAttributes(u user.Info, req *http.Request) authorizer.Attributes {
    	return f.attributesFunc(u, req)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/security/oauth2-jwt.md

    You'll see the user interface like:
    
    <img src="/img/tutorial/security/image07.png">
    
    Authorize the application the same way as before.
    
    Using the credentials:
    
    Username: `johndoe`
    Password: `secret`
    
    !!! check
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. docs/metrics/prometheus/README.md

    ## List of metrics exposed by MinIO
    
    - MinIO exports Prometheus compatible data by default as an authorized endpoint at `/minio/v2/metrics/cluster`. 
    - MinIO exports Prometheus compatible data by default which is bucket centric as an authorized endpoint at `/minio/v2/metrics/bucket`.
    - MinIO exports Prometheus compatible data by default which is node centric as an authorized endpoint at `/minio/v2/metrics/node`.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 12 15:49:30 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top