https://github.com/damlys/k8s-secrets-with-sops
Kubernetes secrets encryption with Mozilla SOPS
https://github.com/damlys/k8s-secrets-with-sops
kubectl kubernetes sops
Last synced: 3 months ago
JSON representation
Kubernetes secrets encryption with Mozilla SOPS
- Host: GitHub
- URL: https://github.com/damlys/k8s-secrets-with-sops
- Owner: damlys
- Created: 2022-08-31T15:51:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-13T07:05:11.000Z (over 3 years ago)
- Last Synced: 2025-09-05T06:37:46.975Z (10 months ago)
- Topics: kubectl, kubernetes, sops
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Encrypt secret
```shell
sops --encrypt --output=manifests/mysql-envs.secret.enc.yaml manifests/mysql-envs.secret.dec.yaml
```
View secret
```shell
sops --decrypt manifests/mysql-envs.secret.enc.yaml
```
Apply secret
```shell
sops --decrypt manifests/mysql-envs.secret.enc.yaml | kubectl apply --filename=-
```
Edit secret
```shell
EDITOR="code --wait" sops manifests/mysql-envs.secret.enc.yaml
```
Decrypt secret
```shell
sops --decrypt --output=manifests/mysql-envs.secret.dec.yaml manifests/mysql-envs.secret.enc.yaml
```