Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CredentialIDForJTI (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount/util.go

    		if sa.NodeUID != "" {
    			info.Extra[NodeUIDKey] = []string{sa.NodeUID}
    		}
    	}
    
    	return info
    }
    
    // CredentialIDForJTI converts a given JTI string into a credential identifier for use in a
    // users 'extra' info.
    func CredentialIDForJTI(jti string) string {
    	if len(jti) == 0 {
    		return ""
    	}
    	return "JTI=" + jti
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 10:24:31 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. pkg/serviceaccount/claims.go

    		UID:          private.Kubernetes.Svcacct.UID,
    		PodName:      podName,
    		PodUID:       podUID,
    		NodeName:     nodeName,
    		NodeUID:      nodeUID,
    		CredentialID: apiserverserviceaccount.CredentialIDForJTI(jti),
    	}, nil
    }
    
    func (v *validator) NewPrivateClaims() interface{} {
    	return &privateClaims{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 21:15:10 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  3. pkg/registry/core/serviceaccount/storage/token.go

    	}
    	if utilfeature.DefaultFeatureGate.Enabled(features.ServiceAccountTokenJTI) && len(sc.ID) > 0 {
    		audit.AddAuditAnnotation(ctx, serviceaccount.IssuedCredentialIDAuditAnnotationKey, serviceaccount.CredentialIDForJTI(sc.ID))
    	}
    	return out, nil
    }
    
    func (r *TokenREST) GroupVersionKind(schema.GroupVersion) schema.GroupVersionKind {
    	return gvk
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 10:24:31 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top