use authentication.kubernetes.io/issued-credential-id audit annotation in serviceaccount token registry endpoint
Kubernetes-commit: 7f12735fffdc490eae59e98d0f03638067b028de
This commit is contained in:
parent
7b91578b43
commit
c60b23f298
|
@ -39,6 +39,12 @@ const (
|
||||||
// CredentialIDKey is the key used in a user's "extra" to specify the unique
|
// CredentialIDKey is the key used in a user's "extra" to specify the unique
|
||||||
// identifier for this identity document).
|
// identifier for this identity document).
|
||||||
CredentialIDKey = "authentication.kubernetes.io/credential-id"
|
CredentialIDKey = "authentication.kubernetes.io/credential-id"
|
||||||
|
// IssuedCredentialIDAuditAnnotationKey is the annotation key used in the audit event that is persisted to the
|
||||||
|
// '/token' endpoint for service accounts.
|
||||||
|
// This annotation indicates the generated credential identifier for the service account token being issued.
|
||||||
|
// This is useful when tracing back the origin of tokens that have gone on to make request that have persisted
|
||||||
|
// their credential-identifier into the audit log via the user's extra info stored on subsequent audit events.
|
||||||
|
IssuedCredentialIDAuditAnnotationKey = "authentication.kubernetes.io/issued-credential-id"
|
||||||
// PodNameKey is the key used in a user's "extra" to specify the pod name of
|
// PodNameKey is the key used in a user's "extra" to specify the pod name of
|
||||||
// the authenticating request.
|
// the authenticating request.
|
||||||
PodNameKey = "authentication.kubernetes.io/pod-name"
|
PodNameKey = "authentication.kubernetes.io/pod-name"
|
||||||
|
|
Loading…
Reference in New Issue