An open API service indexing awesome lists of open source software.

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

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
```