[Bug] Leaked access-token on

Aperta
#718 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
kubernetes, ruby
Ambito
cli, devops, security

Direzione di ricerca

No source file or test is named. Start by tracing the deployment error path that logs the invalid kubeconfig.yml, then reproduce with an invalid config if possible. Done means access-token values are not logged while useful configuration error context remains available.

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

Descrizione

:beetle: bug :lock: security krane [ProdX-GSD]

Bug report

There was an error during a deployment that caused the kubeconfig.yml to be logged. The kubeconfig included an access-token. While access-tokens are short lived we shouldn't be logging them. Ideally we'd just sanitize sensitive information from the kubeconfig.yml instead of suppressing all of it. Possibly by not printing the auth-provider: section of a user or just not logging the entire users section

Error: Error loading config file "/app/config/kubeconfig.yml": v1.Config.Clusters:
[]v1.NamedCluster: v1.NamedCluster.Cluster: v1.Cluster.CertificateAuthorityData: decode base64: illegal base64 data at input byte 748, error found in #10 byte of ...|"}}]}|..., bigger context ...|"}}]}|...

Expected behavior:

access-token should never be logged.

Actual behavior:

access-token is logged as a part of the full kubeconfig.yml file.

Version(s) affected:

Likely all versions, but this happened on 1.0.0.pre.1

Steps to Reproduce

Unclear how to reproduce this exact failure. Might be enough to just have an invalid config file, but I haven't confirmed this

Lingua principale
Ruby
Stelle
1.4k
Fork
119
Merge medio
1h 7m
PR unite (30g)
1

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 Shopify/krane

Tutte le issue di Shopify/krane

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.