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

Pod is using stale tokens #342

Closed
albertschwarzkopf opened this issue May 5, 2022 · 2 comments
Closed

Pod is using stale tokens #342

albertschwarzkopf opened this issue May 5, 2022 · 2 comments

Comments

@albertschwarzkopf
Copy link

Hi,

the "Bound Service Account Token Volume" is graduated to stable and enabled by default in Kubernetes version 1.22.
I am using "aws-for-fluent-bit:2.23.4" in AWS EKS 1.22 and I have checked, if it is using stale tokens (regarding https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html and https://docs.aws.amazon.com/eks/latest/userguide/troubleshooting.html#troubleshooting-boundservicetoken).

So when the API server receives requests with tokens that are older than one hour, then it annotates the pod with "annotations.authentication.k8s.io/stale-token". In my case I can see the following annotation. E.g.:

annotations.authentication.k8s.io/stale-token subject: system:serviceaccount:kube-system:fluentbit-oidc, seconds after warning threshold: 969

Fluent Bit Version Info

aws-for-fluent-bit:2.23.4

Cluster Details

AWS EKS 1.22
aws-for-fluent-bit:2.23.4 deployed as Daemonset

Steps to reproduce issue

  • Enable EKS Audit Logs
  • Query CW Insights (select cluster log group):
fields @timestamp
| filter @message like /seconds after warning threshold/
| parse @message "subject: *, seconds after warning threshold:*\"" as subject, elapsedtime
@matthewfala
Copy link
Contributor

Hi @albertschwarzkopf,
We're working on getting a solution for stale-token issue accepted upstream. Please see: fluent/fluent-bit#4487

Hopefully this issue will be resolved in the next or following aws-for-fluent-bit release. Currently the fix is awaiting further review and merge.

@PettitWesley
Copy link
Contributor

We released a cherry-pick of the fix in our latest release, please try it: https://github.com/aws/aws-for-fluent-bit/releases/tag/v2.25.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants