Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 457 for audiences (0.22 sec)

  1. security/pkg/util/jwtutil.go

    		return listAud, nil
    	}
    
    	return nil, err
    }
    
    type jwtPayload struct {
    	// Aud is JWT token audience - used to identify 3p tokens.
    	// It is empty for the default K8S tokens.
    	Aud []string `json:"aud"`
    }
    
    // ExtractJwtAud extracts the audiences from a JWT token. If aud cannot be parse, the bool will be set
    // to false. This distinguishes aud=[] from not parsed.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. pilot/pkg/bootstrap/server_test.go

    			jwtRule:   `{"issuer": "foo", "jwks_uri": "baz", "audiences": ["aud1", "aud2"]}`,
    		},
    		{
    			name:      "invalid jwt rule",
    			expectErr: true,
    			jwtRule:   "invalid",
    		},
    		{
    			name:      "jwt rule with invalid audiences",
    			expectErr: true,
    			// audiences must be a string array
    			jwtRule: `{"issuer": "foo", "jwks_uri": "baz", "audiences": "aud1"}`,
    		},
    	}
    
    	for _, tt := range tests {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. security/pkg/util/jwtutil_test.go

    	testCases := map[string]struct {
    		jwt string
    		aud []string
    	}{
    		"no audience": {
    			jwt: firstPartyJwt,
    		},
    		"one audience string": {
    			jwt: oneAudString,
    			aud: []string{"abc"},
    		},
    		"one audience list": {
    			jwt: thirdPartyJwt,
    			aud: []string{"yonggangl-istio-4.svc.id.goog"},
    		},
    		"two audiences list": {
    			jwt: twoAudList,
    			aud: []string{"abc", "xyz"},
    		},
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. pilot/pkg/security/authz/model/generator_test.go

    		},
    		{
    			name:  "requestAudiencesGenerator",
    			g:     requestAudiencesGenerator{},
    			key:   "request.auth.audiences",
    			value: "foo",
    			want: yamlPrincipal(t, `
             metadata:
              filter: istio_authn
              path:
              - key: request.auth.audiences
              value:
                stringMatch:
                  exact: foo`),
    		},
    		{
    			name:  "requestPresenterGenerator",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 20 01:58:53 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/apis/apiserver/v1beta1/zz_generated.deepcopy.go

    func (in *Issuer) DeepCopyInto(out *Issuer) {
    	*out = *in
    	if in.DiscoveryURL != nil {
    		in, out := &in.DiscoveryURL, &out.DiscoveryURL
    		*out = new(string)
    		**out = **in
    	}
    	if in.Audiences != nil {
    		in, out := &in.Audiences, &out.Audiences
    		*out = make([]string, len(*in))
    		copy(*out, *in)
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Issuer.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 17:10:34 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator.go

    	// neither of these are true for audit annotations set via AddAuditAnnotation.
    	//
    	// for audit annotations, the assumption is that for some period of time (cache TTL),
    	// all requests with the same API audiences and the same bearer token result in the
    	// same annotations.  This may not be true if the authenticator sets an annotation
    	// based on the current time, but that may be okay since cache TTLs are generally
    	// small (seconds).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/deprecated_insecure_serving.go

    	return &authenticator.Response{
    		User: &user.DefaultInfo{
    			Name:   "system:unsecured",
    			Groups: []string{user.SystemPrivilegedGroup, user.AllAuthenticated},
    		},
    		Audiences: auds,
    	}, true, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 27 15:58:45 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  8. pkg/kubeapiserver/options/authentication.go

    	if o == nil {
    		return
    	}
    
    	fs.StringSliceVar(&o.APIAudiences, "api-audiences", o.APIAudiences, ""+
    		"Identifiers of the API. The service account token authenticator will validate that "+
    		"tokens used against the API are bound to at least one of these audiences. If the "+
    		"--service-account-issuer flag is configured and this flag is not, this field "+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 22:40:22 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  9. pkg/registry/authentication/rest/storage_authentication.go

    	"k8s.io/kubernetes/pkg/registry/authentication/tokenreview"
    )
    
    type RESTStorageProvider struct {
    	Authenticator authenticator.Request
    	APIAudiences  authenticator.Audiences
    }
    
    func (p RESTStorageProvider) NewRESTStorage(apiResourceConfigSource serverstorage.APIResourceConfigSource, restOptionsGetter generic.RESTOptionsGetter) (genericapiserver.APIGroupInfo, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 12:50:40 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  10. pkg/apis/storage/validation/validation.go

    		audience := tokenRequest.Audience
    		if _, ok := audiences[audience]; ok {
    			allErrs = append(allErrs, field.Duplicate(path.Child("audience"), audience))
    			continue
    		}
    		audiences[audience] = true
    
    		if tokenRequest.ExpirationSeconds == nil {
    			continue
    		}
    		if *tokenRequest.ExpirationSeconds < int64(min.Seconds()) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 00:47:13 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top