百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
K

kubernetes-secret-decode

> 编程语言
开源

显示 Kubernetes 密钥及其值 (已解码为 base64 格式)

194 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

显示 Kubernetes 密钥及其值 (已解码为 base64 格式)

Kubernetes Secret Decode

Description

Be able to easily see the values of a secret.

YAML and JSON are both supported and detection of the input type is performed automatically.

Before:

yaml
$ kubectl get secret my-secret -o yaml
apiVersion: v1
data:
  password: cGFzc3dvcmQ=
  username: dXNlcm5hbWU=
kind: Secret
metadata:
  creationTimestamp: 2018-05-09T21:01:37Z
  name: my-secret
  namespace: default
  resourceVersion: "20229"
  selfLink: /api/v1/namespaces/default/secrets/my-secret
  uid: 29ef8024-53cc-11e8-967d-080027cd91ae
type: Opaque

After:

yaml
$ kubectl ksd get secret my-secret -o yaml
apiVersion: v1
stringData:
  password: password
  username: username
kind: Secret
metadata:
  creationTimestamp: "2018-05-09T21:01:37Z"
  name: my-secret
  namespace: default
  resourceVersion: "20229"
  selfLink: /api/v1/namespaces/default/secrets/my-secret
  uid: 29ef8024-53cc-11e8-967d-080027cd91ae
type: Opaque

Installation

Prebuilt

Download the appropriate binary for your OS from the releases section, make it executable and add it to your path.

Compile From Source

These instructions assume you have go installed and a $GOPATH set. The binary needs to be installed somewhere in your $PATH. The binary also needs to be named either kubectl-ksd or kubectl-kubernetes-secret-decode

For easy install running the following:

make install

Usage

kubectl ksd get secret my-secret -o yaml

kubectl ksd get secret my-secret -o json

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Go

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言