-
Notifications
You must be signed in to change notification settings - Fork 21
Restrict access to K8s secret token #103
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
Conversation
|
@mjura do we really need to add the whole It's fine to allow the user to overload the configuration via helm, but I wouldn't use that a a mechanism to get our default config into kubernetes. |
vadorovsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add this dir to lockc/src/settings.rs as well. These are default values used in case there is no configuration found.
|
@flavio I actually like the idea of adding the whole config to the helm chart. It gives people a reference and lets them adjust the configuration by editing it. What worries me a bit is that we have multiple files where we need to put new configuration options, which starts becoming quite a hassle. I have no clear idea how to solve that yet, but it would be nice to have some one file for defining options and then generate all the others ( |
|
Also, there is a typo in the commit message and PR name - |
That's exactly my main concern. Just to reiterate over what I've already said, I would leave the default configuration inside of the lockc repo on GitHub, have that tagged and automatically added to the container image at build time. As for the users, we can address your concern ("how do they find a sample of the configuration file?") by adding a simple comment inside of the helm chart. The comment can point to the configuration file on the GitHub repo |
|
I have updated also baseline restricted paths |
vadorovsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with accepting this PR as it is now. I would address the idea of having a config in one place as a separate, follow up change. I hope it's fine for you @flavio
|
Linter is complaining, but it's not related to changes in this PR, let me fix it with a new PR and let's keep this one on hold. |
The most of the containerized workloads do not need to interact with the Kubernetes API server and they don't need to read the token that is associated with the ServiceAccount used to create the Pod. This path can be blocked /var/run/secrets/kubernetes.io Signed-off-by: Michal Jura <[email protected]>
|
@flavio we are going to remove a duplicated config from helm chart (and instead use the .toml file from the container image) as a follow up change. |
The most of the containerized workloads do not need to interact with the Kubernetes API server and
they don't need to read the token that is associated with the ServiceAccount used to create the Pod.
This path can be blocked /var/run/secrets/kubernetes.io