Repository navigation
Commit 8a18549
committed
fix(api,postgres,mariadb): surface a leftover password and pending restore creds
A users[].password removed from the chart render is still accepted and
stored -- the user object keeps additionalProperties open -- and through
the lookup-preserve path it stays the LIVE credential until a
passwordRotation bump, so an operator editing it to rotate gets a silent
200 and no effect. Emit an admission warning for a still-present
users[].password on Postgres and MariaDB, wired into Create and Update
with per-callsite tests, and say in the field docs that a leftover value
stays live until a bump retires it.
A Postgres restore into a copy renders freshly generated passwords into
<release>-credentials while the role-applying init-job is skipped under
bootstrap, so the advertised passwords do not authenticate until the app
leaves bootstrap. Flag that Secret with
postgres.cozystack.io/credentials-pending and print the same warning in
NOTES so a reader does not treat the value as usable mid-restore.
Document the equivalent MariaDB restore-into-a-copy behaviour --
application users realign only on the operator's requeue tick and root
stays desynced because rootPasswordSecretKeyRef lands only at datadir
bootstrap -- and narrow the Postgres in-place-restore caveat to hold only
until a rotation. Drop the claim that the watch label re-applies root,
and note that a helm rollback rewinds the rotation marker but not the
database.
Assisted-by: LLM
Signed-off-by: Alexey Artamonov <[email protected]>1 parent 435ba2f commit 8a18549
17 files changed
Lines changed: 299 additions & 21 deletions
File tree
- api/apps/v1alpha1
- mariadb
- postgresql
- docs/operations
- packages
- apps
- mariadb
- templates
- postgres
- templates
- tests
- system
- mariadb-rd/cozyrds
- postgres-rd/cozyrds
- pkg/registry/apps/application
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments