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

FEATURE REQUEST: leave fewer temp files around from using kubeconfig files #22

Open
JayBeale opened this issue Oct 5, 2021 · 0 comments

Comments

@JayBeale
Copy link
Member

JayBeale commented Oct 5, 2021

We're potentially writing a new CA.CRT file every time we switch to a client cert-key pair - we could solve this with something like the following code in assignAuthenticationCertificateAndKeyToConnection() and assignServiceAccountToConnection(), but we'd need to back up the CA.CRT path whenever we switch to token again.

	// If our current authz context had a cert auth path file (i.e., if we were using a cert-key pair), delete it
	if len(info.ClientKeyPath) > 0 {
	 	os.Remove(info.CAPath)
	}
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

1 participant