Proposal: Add a --config-file parameter for easier switching between StackRox instances?

Aperta
#12,157 7 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@randyttruong ci sta già lavorando.

Dal 31/8/2024.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

Start with the roxctl help and documentation describing ROX_API_TOKEN_FILE, the endpoint, and the CA file. Define the scope of a --config-file option, including whether it supports multiple contexts like kubeconfig, and consider how switching between StackRox instances should work. Done means the configuration behavior is documented and usable without resetting three environment variables.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area/roxctl enhancement good first issue open-for-community-contributions

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

Lingua principale
Go
Stelle
1.3k
Fork
194
Merge medio
2g 20h
PR unite (30g)
392

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di stackrox/stackrox

Tutte le issue di stackrox/stackrox

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.