Commit 13b545c
committed
fix(keystone): render empty Secret data as {} instead of null
The keystone-fernet-keys and keystone-credential-keys Secrets rendered
data: with no value, which YAML parses as null rather than an empty
map. GitOps controllers that re-apply these Secrets on every sync
(they are Helm pre-install hooks) can send that literal null through
as a "clear this field" instruction, wiping the fernet/credential
keys written out-of-band by the setup jobs and rotation cronjob.
Render data: {} instead, which merges as a no-op.
Assisted-by: Claude Sonnet 5.0
Change-Id: I93628b5cfd589b3d53d315d1eb6bf64d9ccba33c
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>1 parent ce8c706 commit 13b545c
3 files changed
Lines changed: 15 additions & 2 deletions
File tree
- keystone/templates
- releasenotes/notes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments