#kubernetes #kube

app kube-secrets

Command line utility to quickly display useful secrets in a Kubernetes namespace

6 releases (3 breaking)

Uses new Rust 2024

0.7.1 May 6, 2026
0.6.0 Jan 15, 2026
0.5.0 Feb 10, 2022
0.4.2 Sep 21, 2021

#903 in Command line utilities

BSD-3-Clause

85KB
307 lines

kube-secrets

This is a command line utility for quickly looking at secrets in a Kubernetes namespace that are typically looked at by humans. It specifically hides secrets which are TLS certificates, Helm charts, and Docker credentials.

Install

For Mac OSX:

$ brew install frankwiles/tools/kube-secrets

or build it from source:

$ cargo install kube-secrets

Usage

List all of the useful secrets in namespace fakespace. (These are fake secrets in a fake namespace in case you're worried)

$ secrets fakespace

Screenshot of full listing

List all of the secrets in namespace fakespace whose name contains the string token

$ secrets fakespace token

Screenshot of filtered listing

And if you mistakenly look for secrets in a namespace that doesn't actually exist, it let's you know that.

$ secrets bob

Screenshot of error message

Dependencies

~60MB
~1M SLoC