Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 457 for audiences (0.2 sec)

  1. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook.go

    	// We take implicit audiences of the API server at WebhookTokenAuthenticator
    	// construction time. The outline of how we validate audience here is:
    	//
    	// * if the ctx is not audience limited, don't do any audience validation.
    	// * if ctx is audience-limited, add the audiences to the tokenreview spec
    	//   * if the tokenreview returns with audiences in the status that intersect
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 00:47:42 UTC 2022
    - 11.5K bytes
    - Viewed (0)
  2. common-protos/k8s.io/api/authentication/v1beta1/generated.proto

      optional UserInfo user = 2;
    
      // Audiences are audience identifiers chosen by the authenticator that are
      // compatible with both the TokenReview and token. An identifier is any
      // identifier in the intersection of the TokenReviewSpec audiences and the
      // token's audiences. A client of the TokenReview API that sets the
      // spec.audiences field should validate that a compatible audience identifier
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/authentication/v1/generated.proto

      // identifier in the intersection of the TokenReviewSpec audiences and the
      // token's audiences. A client of the TokenReview API that sets the
      // spec.audiences field should validate that a compatible audience identifier
      // is returned in the status.audiences field to ensure that the TokenReview
      // server is audience aware. If a TokenReview returns an empty
      // status.audience field where status.authenticated is "true", the token is
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/authentication/v1beta1/generated.proto

      // identifier in the intersection of the TokenReviewSpec audiences and the
      // token's audiences. A client of the TokenReview API that sets the
      // spec.audiences field should validate that a compatible audience identifier
      // is returned in the status.audiences field to ensure that the TokenReview
      // server is audience aware. If a TokenReview returns an empty
      // status.audience field where status.authenticated is "true", the token is
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook_v1beta1_test.go

    		},
    		{
    			description:  "bad audiences",
    			implicitAuds: apiAuds,
    			reqAuds:      authenticator.Audiences{"other"},
    			serverResponse: authenticationv1beta1.TokenReviewStatus{
    				Authenticated: false,
    			},
    			expectedAuthenticated: false,
    		},
    		{
    			description:  "bad audiences",
    			implicitAuds: apiAuds,
    			reqAuds:      authenticator.Audiences{"other"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 00:47:42 UTC 2022
    - 19.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc.go

    func (v *idTokenVerifier) verifyAudience(t *oidc.IDToken) error {
    	// We validate audience field is not empty in the authentication configuration.
    	// This check ensures callers of "Verify" using idTokenVerifier are not passing
    	// an empty audience.
    	if v.audiences.Len() == 0 {
    		return fmt.Errorf("oidc: invalid configuration, audiences cannot be empty")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 19:29:33 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/filters/metrics_test.go

            authentication_attempts{result="failure"} 1
    				`,
    		},
    		{
    			desc: "auth failed due to audiences not intersecting",
    			response: &authenticator.Response{
    				User:      &user.DefaultInfo{Name: "admin"},
    				Audiences: authenticator.Audiences{"audience-x"},
    			},
    			status:      true,
    			apiAudience: authenticator.Audiences{"audience-y"},
    			want: `
            # HELP authentication_attempts [ALPHA] Counter of authenticated attempts.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 20 13:35:55 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  8. tests/integration/security/testdata/authz/jwt.yaml.tmpl

    # - Allow request with valid JWT token to access path /jwt1
    # - Allow request with valid JWT token of presenter bar to access path with suffix "/presenter"
    # - Allow request with valid JWT token of audiences foo to access path with suffix "/audiences"
    
    apiVersion: security.istio.io/v1beta1
    kind: AuthorizationPolicy
    metadata:
      name: {{ .To.ServiceName }}
    spec:
      selector:
        matchLabels:
          "app": "{{ .To.ServiceName }}"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. pilot/pkg/security/authz/builder/testdata/http/allow-full-rule-in.yaml

              notValues: ["not-requestPrincipals", "not-requestPrincipals-prefix-*", "*-not-suffix-requestPrincipals", "*"]
            - key: "request.auth.audiences"
              values: ["audiences", "audiences-prefix-*", "*-suffix-audiences", "*"]
              notValues: ["not-audiences", "not-audiences-prefix-*", "*-not-suffix-audiences", "*"]
            - key: "request.auth.presenter"
              values: ["presenter", "presenter-prefix-*", "*-suffix-presenter", "*"]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 20 01:58:53 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. security/pkg/server/ca/authenticate/oidc.go

    	ksa := parts[3]
    	if !checkAudience(sa.Aud, j.audiences) {
    		return nil, fmt.Errorf("invalid audiences %v", sa.Aud)
    	}
    	return &security.Caller{
    		AuthSource: security.AuthSourceIDToken,
    		Identities: []string{spiffe.MustGenSpiffeURI(j.meshHolder.Mesh(), ns, ksa)},
    	}, nil
    }
    
    // checkAudience() returns true if the audiences to check are in
    // the expected audiences. Otherwise, return false.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top