Skip to content

Commit 725414a

Browse files
refactor(secrets): move secrets to cluster repository
1 parent 843083a commit 725414a

File tree

9 files changed

+24
-161
lines changed

9 files changed

+24
-161
lines changed

.holo/branches/helm-chart/_codeforphilly.toml

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/development/add-secret.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Add a secret
2+
3+
## Prerequisites
4+
5+
Install the `kubeseal` client command on your local workstation from the latest stable release: <https://github.com/bitnami-labs/sealed-secrets/releases>
6+
7+
## Configure public certificate
8+
9+
Place the public URL for the target cluster's sealed secret's certificate into the `SEALED_SECRETS_CERT` environment variable:
10+
11+
```bash
12+
export SEALED_SECRETS_CERT=https://sealed-secrets.live.k8s.phl.io/v1/cert.pem
13+
```
14+
15+
## Encrypt secrets to cluster repository
16+
17+
Create a Kubernetes `Secret` manifest containing one or more key+value pair, and then use the `kubeseal` client to encrypt it into a `SealedSecret` manifest. The target namespace must be provided and will become part of the encryption such that the secret can only be loaded into that namespace. Commit the sealed secret to the cluster's repository under the path `code-for-philly/helm-chart/templates/secrets/` where it will become part of the deployed helm chart:
18+
19+
```bash
20+
kubeseal \
21+
--namespace code-for-philly \
22+
-f mysecret.yaml \
23+
-w ~/Repositories/cfp-live-cluster/code-for-philly/helm-chart/templates/secrets/mysecret.yaml
24+
```

helm-chart/templates/secrets/discourse.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.

helm-chart/templates/secrets/github.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.

helm-chart/templates/secrets/mailchimp.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

helm-chart/templates/secrets/recaptcha.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

helm-chart/templates/secrets/saml2.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)