You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For "offline" usage you can first fetch the CA from the `sealed-secrets-controller` and use that for encryption when the demo / stack is not available.
After sealing, re-add the Stackable labels to `spec.template.metadata` of the generated SealedSecret manually (they are not part of the encrypted payload):
25
+
26
+
```yaml
27
+
labels:
28
+
stackable.tech/vendor: Stackable
29
+
stackable.tech/demo: argo-cd-git-ops
30
+
```
31
+
32
+
IMPORTANT: These manifests are synced by Argo CD directly from Git, so Jinja2 template expressions like `"{{ DEMO }}"` are never rendered here.
33
+
Kubernetes rejects them as invalid label values, which breaks unsealing — label values must be hardcoded in everything under `manifests/`.
34
+
35
+
## Plaintext secrets used in this demo
36
+
37
+
The sealed secrets under `manifests/airflow/` were created from the following plaintext manifests.
38
+
These are demo-only credentials: the Sealed Secrets controller key for this stack is committed to this repository (`stacks/argo-cd-git-ops/secrets/sealed-secrets-key.yaml`), so the sealed secrets provide no confidentiality here — sealing only demonstrates the GitOps workflow.
39
+
Never use this pattern for real credentials.
40
+
41
+
`airflow-admin-credentials.yaml`:
42
+
43
+
```yaml
44
+
---
45
+
apiVersion: v1
46
+
kind: Secret
47
+
metadata:
48
+
name: airflow-admin-credentials
49
+
type: Opaque
50
+
stringData:
51
+
adminUser.username: admin
52
+
adminUser.firstname: Airflow
53
+
adminUser.lastname: Admin
54
+
adminUser.email: airflow@airflow.com
55
+
adminUser.password: adminadmin
56
+
```
57
+
58
+
`airflow-postgresql-credentials.yaml` (must match the credentials the PostgreSQL chart is provisioned with, see `manifests/airflow-postgres/`):
59
+
60
+
```yaml
61
+
---
62
+
apiVersion: v1
63
+
kind: Secret
64
+
metadata:
65
+
name: airflow-postgresql-credentials
66
+
type: Opaque
67
+
stringData:
68
+
username: airflow
69
+
password: airflow
21
70
```
22
71
23
72
TODO: We should probably create a script that seals all secrets and puts them in the respective stack / demo folders
0 commit comments