Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 52 for tokenreview (0.16 sec)

  1. security/pkg/k8s/tokenreview/k8sauthn.go

    	tokenReview := &k8sauth.TokenReview{
    		Spec: k8sauth.TokenReviewSpec{
    			Token: targetToken,
    		},
    	}
    	if aud != nil {
    		tokenReview.Spec.Audiences = aud
    	}
    	reviewRes, err := kubeClient.AuthenticationV1().TokenReviews().Create(context.TODO(), tokenReview, metav1.CreateOptions{})
    	if err != nil {
    		return security.KubernetesInfo{}, err
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 13 17:12:41 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. security/pkg/server/ca/authenticate/kubeauth/kube_jwt_test.go

    				}
    				ctx = metadata.NewIncomingContext(ctx, tc.metadata)
    			}
    
    			tokenReview := &k8sauth.TokenReview{
    				Spec: k8sauth.TokenReviewSpec{
    					Token: tc.token,
    				},
    			}
    
    			tokenReview.Status.Audiences = []string{}
    			if tc.token != invlidToken {
    				tokenReview.Status.Authenticated = true
    			}
    			tokenReview.Status.User = k8sauth.UserInfo{
    				Username: "system:serviceaccount:default:example-pod-sa",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. security/pkg/k8s/tokenreview/k8sauthn_test.go

    func TestGetTokenReviewResult(t *testing.T) {
    	testCases := []struct {
    		name           string
    		tokenReview    authenticationv1.TokenReview
    		expectedError  error
    		expectedResult security.KubernetesInfo
    	}{
    		{
    			name: "the service account authentication error",
    			tokenReview: authenticationv1.TokenReview{
    				Status: authenticationv1.TokenReviewStatus{
    					Error: "authentication error",
    				},
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 13 17:12:41 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/authentication/v1beta1/zz_generated.deepcopy.go

    func (in *TokenReview) DeepCopyInto(out *TokenReview) {
    	*out = *in
    	out.TypeMeta = in.TypeMeta
    	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    	in.Spec.DeepCopyInto(&out.Spec)
    	in.Status.DeepCopyInto(&out.Status)
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenReview.
    func (in *TokenReview) DeepCopy() *TokenReview {
    	if in == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 23:42:33 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  5. api/discovery/apis__authentication.k8s.io__v1.json

          "namespaced": false,
          "singularName": "selfsubjectreview",
          "verbs": [
            "create"
          ]
        },
        {
          "kind": "TokenReview",
          "name": "tokenreviews",
          "namespaced": false,
          "singularName": "tokenreview",
          "verbs": [
            "create"
          ]
        }
      ]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 15 18:18:19 UTC 2023
    - 495 bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/authentication/v1beta1/types_swagger_doc_generated.go

    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 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...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 23:42:33 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/authentication/v1beta1/zz_generated.prerelease-lifecycle.go

    func (in *TokenReview) APILifecycleDeprecated() (major, minor int) {
    	return 1, 19
    }
    
    // APILifecycleReplacement is an autogenerated function, returning the group, version, and kind that should be used instead of this deprecated type.
    // It is controlled by "k8s:prerelease-lifecycle-gen:replacement=<group>,<version>,<kind>" tags in types.go.
    func (in *TokenReview) APILifecycleReplacement() schema.GroupVersionKind {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 23:42:33 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/authentication/v1beta1/generated.proto

      // +optional
      optional .k8s.io.api.authentication.v1.UserInfo userInfo = 1;
    }
    
    // TokenReview attempts to authenticate a token to a known user.
    // Note: TokenReview requests may be cached by the webhook token authenticator
    // plugin in the kube-apiserver.
    message TokenReview {
      // Standard object's metadata.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. pkg/apis/authentication/zz_generated.deepcopy.go

    func (in *TokenReview) DeepCopyInto(out *TokenReview) {
    	*out = *in
    	out.TypeMeta = in.TypeMeta
    	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    	in.Spec.DeepCopyInto(&out.Spec)
    	in.Status.DeepCopyInto(&out.Status)
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TokenReview.
    func (in *TokenReview) DeepCopy() *TokenReview {
    	if in == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 14 16:00:26 UTC 2022
    - 7.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/authentication/v1/generated.proto

      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2;
    }
    
    // TokenReview attempts to authenticate a token to a known user.
    // Note: TokenReview requests may be cached by the webhook token authenticator
    // plugin in the kube-apiserver.
    message TokenReview {
      // Standard object's metadata.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top