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

fortification: preventing secret leaks #751

Closed
5 tasks done
clux opened this issue Dec 8, 2021 · 2 comments
Closed
5 tasks done

fortification: preventing secret leaks #751

clux opened this issue Dec 8, 2021 · 2 comments
Labels
client kube Client related config Kube config related help wanted Not immediately prioritised, please help!

Comments

@clux
Copy link
Member

clux commented Dec 8, 2021

What problem are you trying to solve?

It's possible to log Kubeconfig, and Config with Debug - which looks like it will just log all secret information by default.
I want to make this slightly harder to do. Similarly in request parameters that may have access to them.

Describe the solution you'd like

A practice I've seen around is to use:

The first can be used in in the Config, Kubeconfig to help avoiding secrets these being logged (unless explicitly requested via Secret::expose_secret).

The second may be helpful, if it fits into the layer stack, not sure about it.

Describe alternatives you've considered

Removing Debug

Documentation, Adoption, Migration Strategy

Might be considered a breaking change to the Kubeconfig or Config, but can be documented, and it is very light.

Target crate for feature

kube-client


@clux clux added client kube Client related config Kube config related help wanted Not immediately prioritised, please help! labels Dec 8, 2021
@clux clux mentioned this issue Dec 8, 2021
33 tasks
@clux
Copy link
Member Author

clux commented Feb 19, 2022

Double checking in file_config looks all fortified to me now.

We must have forgotten to close this 😄

@clux clux closed this as completed Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client kube Client related config Kube config related help wanted Not immediately prioritised, please help!
Projects
None yet
Development

No branches or pull requests

2 participants