Skip to main content

SeKube a dumb program to show kubernetes secrets

It does two(and a half) things:

  • It lists kubernetes secrets

  • It prints kubernetes secrets

  • It caches availible secrets for fast tab-completion

KubeCTL is fine and dandy but when you are doing OPS and some one asks you “we can’t get it to work, can you confirm the content of this secret” or “could you check the certificate in this secret and see if you can figure out what is wrong..” you have to do this little dance with kubectl [blah] -o json | jq -r .data[] |base64 -d and it gets quite tedious after a while. This script aims to be stupid and simple and just simplify those steps.

Further more trying to use kubectl for tab-completion can be quite a chore due to the long response time. In order to aliviate this sekube tries to keep a local cache of availible keys in order to make tab-completion faster.

Usage example

entering a non-existant secret (not using tab-complete)

$ sekube certi
Error: "certi" not found in "None", did you mean:
  sec-certificate-monitor in default
  certificate-controller-token in kube-system
  sec-webscale in default
  ipfs in ipfs

Printing the content of a secret to the screen

$ sekube sec-certificate-monitor
============= github_token =============
coffebeef39aa0f530e231709895700911232f0c
============== sentry_dsn ==============
https://badb0xcas9ae5bd8c956a35b5c50d3e9@sentry.io/555

It supports tab-completion

Add eval "$(_SEKUBE_COMPLETE=bash_source sekube)" to your .bashrc to enable it

Why is it called sekube? and not kube-secrets or similar ?

Because I use ku-<TAB> as a shortcut for kubectl waay to ofte to want to have things interfearing with that (yes I could create an alias for kubectl, but I wont)

Metadata

Release files for sekube 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sekube 0.1.6
File Size Uploaded Provenance Actions
sekube-0.1.6.tar.gz 4.0 kB Without provenance Details for sekube-0.1.6.tar.gz

Release files / sekube-0.1.6.tar.gz

Download URL sekube-0.1.6.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
41c266de0e41fbc4a2e981c2b7e84ed51e9854f84cbc50e8b8aad955ec971ca9
BLAKE2b-256 checksum
How to use checksums
9ad0db640749eb88b29216f0fbfc2c3fa192d418df7568a35330c48e9826dad9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.1 importlib-metadata/4.11.1 keyring/21.8.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

Security for sekube 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page