Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consul-auth-method service account auto generate token is impacted by Kubernetes 1.29 release | KEP-2799: Reduction of Secret-based Service Account Tokens #4140

Open
MageshSrinivasulu opened this issue Jun 17, 2024 · 1 comment
Labels
type/bug Something isn't working

Comments

@MageshSrinivasulu
Copy link

MageshSrinivasulu commented Jun 17, 2024

Kubernetes 1.29 has released a feature that will impact the service account tokens that are auto-generated

https://github.com/kubernetes/enhancements/tree/master/keps/sig-auth/2799-reduction-of-secret-based-service-account-token

The secret of the service account consul-auth-method is impacted by this issue

https://kubernetes.io/blog/2023/12/13/kubernetes-v1-29-release/#serviceaccount-token-clean-up

image

https://github.com/kubernetes/enhancements/tree/master/keps/sig-auth/2799-reduction-of-secret-based-service-account-token#proposal

image

As we can see the below secret is updated with the label kubernetes.io/legacy-token-last-used

kind: Secret
metadata:
  annotations:
    kubernetes.io/service-account.name: consul-auth-method
    meta.helm.sh/release-name: consul
    meta.helm.sh/release-namespace: consul
  labels:
    app: consul
    app.kubernetes.io/managed-by: Helm
    chart: consul-helm
    component: auth-method
    heritage: Helm
    kubernetes.io/legacy-token-last-used: "2024-06-17"
    release: consul
  name: consul-auth-method
  namespace: consul
type: kubernetes.io/service-account-token

How does the consul plan to address this issue? Will the helm release include the manual creation of a service account secret?

@MageshSrinivasulu MageshSrinivasulu added the type/bug Something isn't working label Jun 17, 2024
@MageshSrinivasulu
Copy link
Author

Can someone please comment on how to handle this issue using helm deployment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant