Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,345 for auds (0.06 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/deprecated_insecure_serving.go

    func (InsecureSuperuser) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error) {
    	auds, _ := authenticator.AudiencesFrom(req.Context())
    	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)
  2. pkg/serviceaccount/jwt.go

    	}
    
    	requestedAudiences, ok := authenticator.AudiencesFrom(ctx)
    	if !ok {
    		// default to apiserver audiences
    		requestedAudiences = j.implicitAuds
    	}
    
    	auds := authenticator.Audiences(tokenAudiences).Intersect(requestedAudiences)
    	if len(auds) == 0 && len(j.implicitAuds) != 0 {
    		return nil, false, fmt.Errorf("token audiences %q is invalid for the target audiences %q", tokenAudiences, requestedAudiences)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 22:16:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. pkg/volume/projected/projected.go

    				mode = 0600
    			}
    
    			var auds []string
    			if len(tp.Audience) != 0 {
    				auds = []string{tp.Audience}
    			}
    			tr, err := s.plugin.getServiceAccountToken(s.pod.Namespace, s.pod.Spec.ServiceAccountName, &authenticationv1.TokenRequest{
    				Spec: authenticationv1.TokenRequestSpec{
    					Audiences:         auds,
    					ExpirationSeconds: tp.ExpirationSeconds,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  4. pkg/serviceaccount/jwt_test.go

    		}
    		authn := serviceaccount.JWTTokenAuthenticator([]string{serviceaccount.LegacyIssuer, "bar"}, tc.Keys, auds, validator)
    
    		// An invalid, non-JWT token should always fail
    		ctx := authenticator.WithAudiences(context.Background(), auds)
    		if _, ok, err := authn.AuthenticateToken(ctx, "invalid token"); err != nil || ok {
    			t.Errorf("%s: Expected err=nil, ok=false for non-JWT token", k)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 22:16:08 UTC 2024
    - 17K bytes
    - Viewed (0)
  5. pkg/registry/core/serviceaccount/storage/token.go

    }
    
    type TokenREST struct {
    	svcaccts             rest.Getter
    	pods                 rest.Getter
    	secrets              rest.Getter
    	nodes                rest.Getter
    	issuer               token.TokenGenerator
    	auds                 authenticator.Audiences
    	audsSet              sets.String
    	maxExpirationSeconds int64
    	extendExpiration     bool
    }
    
    var _ = rest.NamedCreater(&TokenREST{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 10:24:31 UTC 2024
    - 10K bytes
    - Viewed (0)
  6. pilot/pkg/xds/ads.go

    	}
    	con := newConnection(peerAddr, stream)
    	con.ids = ids
    	con.s = s
    	return xds.Stream(con)
    }
    
    // update the node associated with the connection, after receiving a packet from envoy, also adds the connection
    // to the tracking map.
    func (s *DiscoveryServer) initConnection(node *core.Node, con *Connection, identities []string) error {
    	// Setup the initial proxy metadata
    	proxy, err := s.initProxyMetadata(node)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  7. security/pkg/server/ca/authenticate/oidc_test.go

    			audToCheck:  []string{"aud1"},
    			audExpected: []string{"aud1", "aud2"},
    		},
    		{
    			name:        "audience is NOT in the expected set",
    			expectRet:   false,
    			audToCheck:  []string{"aud3"},
    			audExpected: []string{"aud1", "aud2"},
    		},
    		{
    			name:        "one of the audiences is in the expected set",
    			expectRet:   true,
    			audToCheck:  []string{"aud1", "aud3"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. pkg/log/uds.go

    	msg, err := json.Marshal(logs)
    	if err != nil {
    		return fmt.Errorf("failed to sync uds log: %v", err)
    	}
    	resp, err := u.client.Post(u.url, "application/json", bytes.NewReader(msg))
    	if err != nil {
    		return fmt.Errorf("failed to send logs to uds server %v: %v", u.url, err)
    	}
    	if resp.StatusCode != http.StatusOK {
    		return fmt.Errorf("uds server returns non-ok status %v: %v", u.url, resp.Status)
    	}
    	return nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 16 00:20:01 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. cni/pkg/log/uds.go

    }
    
    // StartUDSLogServer starts up a UDS server which receives log reported from CNI network plugin.
    func (l *UDSLogger) StartUDSLogServer(sockAddress string, stop <-chan struct{}) error {
    	if sockAddress == "" {
    		return nil
    	}
    	log.Info("Start a UDS server for CNI plugin logs")
    	unixListener, err := uds.NewListener(sockAddress)
    	if err != nil {
    		return fmt.Errorf("failed to create UDS listener: %v", err)
    	}
    	go func() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. tests/integration/security/testdata/requestauthn/aud.yaml.tmpl

    Akshay J Nambiar <******@****.***> 1683529381 +0530
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 08 07:03:01 UTC 2023
    - 838 bytes
    - Viewed (0)
Back to top