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

fix(inputs.kubernetes): refresh token from file at each read #11578

Merged
merged 3 commits into from
Aug 3, 2022

Conversation

powersj
Copy link
Contributor

@powersj powersj commented Aug 1, 2022

Similar to #11267, this allows for the token contained in the provided
file to get re-read at each interval. This way, if the token is
updated/refreshed Telegraf will also get the newer token.

powersj added 2 commits August 1, 2022 11:47
Similar to influxdata#11267, this allows for the token contained in the provided
file to get re-read at each interval. This way if the token is
updated/refreshed Telegraf will also get the newer token.
@powersj powersj changed the title fix (inputs/kubernetes): refresh token from file at each read fix(inputs/kubernetes): refresh token from file at each read Aug 1, 2022
@telegraf-tiger
Copy link
Contributor

telegraf-tiger bot commented Aug 2, 2022

@powersj powersj marked this pull request as ready for review August 2, 2022 21:29
Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks @powersj for the fix!

@srebhan srebhan self-assigned this Aug 3, 2022
@srebhan srebhan added fix pr to fix corresponding bug area/k8s plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Aug 3, 2022
@srebhan srebhan changed the title fix(inputs/kubernetes): refresh token from file at each read fix(inputs.kubernetes): refresh token from file at each read Aug 3, 2022
@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Aug 3, 2022
@reimda
Copy link
Contributor

reimda commented Aug 3, 2022

It looks like this is related to secret store functionality. If the secret store could be updated by the plugin, we wouldn't need a separate external file. Once we merge secret store (see #11232) we might want to revisit kubernetes token refresh.

@reimda reimda merged commit 388be51 into influxdata:master Aug 3, 2022
@powersj powersj deleted the fix/k8s-auth-refresh branch August 3, 2022 19:11
reimda pushed a commit that referenced this pull request Aug 15, 2022
reimda pushed a commit that referenced this pull request Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/k8s fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants