stackrox
stackrox copied to clipboard
Proposal: Add a --config-file parameter for easier switching between StackRox instances?
I just get started using StackRox and roxctl, so please excuse, if those are newbie questions that were asked and answered before.
From what I found in the docs and the roxctl help, I can set most things I need for roxctl in environment variables.
Setting a token as an environment variable that every process in my shell can read sounds like something that could be problematic. Setting the ROX_API_TOKEN_FILE
variable pointing to a file is better.
But still, this means I need to set three different variables (token file, endpoint, CA file) each time I "switch between StackRox instances". Not sure how often I need to actually do something with roxctl.
Using different customer's clusters, it would be nice if roxctl supported a --config-file
argument or a configuration file with multiple contexts, like kubeconfig.
The latter might be hard to implement, but a --config-file
argument might be easy hanging fruit?
Have a nice weekend!
Kind Regards, Johannes