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

bearer_token_file: load inline #537

Merged
merged 4 commits into from
Mar 9, 2022
Merged

bearer_token_file: load inline #537

merged 4 commits into from
Mar 9, 2022

Conversation

kjetijor
Copy link
Contributor

simplify loading the bearer token from file, to just reading it inline. The previous approach with refreshing the token from file from various points, seems to have missed something - we were still flagged by the audit logging on our k8s clusters.

lib/kubeclient/version.rb Outdated Show resolved Hide resolved
lib/kubeclient.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@grosser grosser left a comment

Choose a reason for hiding this comment

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

nice approach!
... yeah careful with watch
the audit log should show which request was stale too so you can see if the problem was watch or regular calls

@grosser
Copy link
Contributor

grosser commented Feb 27, 2022

FYI this fixes #525 too :D

This was referenced Mar 5, 2022
@cben
Copy link
Collaborator

cben commented Mar 9, 2022

LGTM

@cben cben merged commit 8e76ef5 into ManageIQ:master Mar 9, 2022
@cben cben added the bug label Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants