https://github.com/rajatjindal/kubectl-modify-secret
kubectl-modify-secrets allows user to directly modify the secret without worrying about base64 encoding/decoding
https://github.com/rajatjindal/kubectl-modify-secret
kubectl kubectl-modify-secrets kubectl-plugin kubectl-plugins
Last synced: 29 days ago
JSON representation
kubectl-modify-secrets allows user to directly modify the secret without worrying about base64 encoding/decoding
- Host: GitHub
- URL: https://github.com/rajatjindal/kubectl-modify-secret
- Owner: rajatjindal
- License: apache-2.0
- Created: 2019-09-21T15:16:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-06T01:38:15.000Z (about 1 year ago)
- Last Synced: 2025-03-16T10:11:31.458Z (30 days ago)
- Topics: kubectl, kubectl-modify-secrets, kubectl-plugin, kubectl-plugins
- Language: Go
- Size: 24.3 MB
- Stars: 175
- Watchers: 2
- Forks: 14
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Funding: FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-kubectl-plugins - kubectl-modify-secret - modify-secrets allows user to directly modify the secret without worrying about base64 encoding/decoding | Secrets | [](https://github.com/rajatjindal/kubectl-modify-secret/stargazers) | (kubectl Plugins / Installing plugins via awesome-kubectl-plugins)
README
# kubectl-modify-secret
`kubectl-modify-secret` is a [kubectl plugin](https://kubernetes.io/docs/tasks/extend-kubectl/kubectl-plugins/) that allows user to modify the secret without having to worry about doing base64 encoding/decoding.
This plugin pulls the secret from Kubernetes, and open the configured editor with just the decoded secret data. Once user makes changes, save and quit the editor, the plugin automatically apply the updated data to Kubernetes.

# Installing via krew
- install `krew` using instructions [here](https://github.com/kubernetes-sigs/krew#installation)
- run `kubectl krew update`
- run `kubectl krew install modify-secret`# Install via brew
- run `brew install rajatjindal/tap/modify-secret`
# Usage
- use namespace and kubeconfig from $KUBECONFIG current context
```bash
kubectl modify-secret xyz
```- provide namespace explicitly
```bash
kubectl modify-secret xyz -n kube-system
```- use different kubeconfig file
```bash
kubectl modify-secret xyz --kubeconfig /path/to/different/kube/config
```