Repository navigation
Commit f76b8ee
committed
fix(forward-email): reject unknown keys in the forward_email block and its defaults
A misspelled `defualts:` (or `defaults: {setings: ...}`) was silently ignored, so the
package defaults were enforced instead of the operator's override — e.g. a declared
`retention_days: 0` became a PUT of 30. The per-domain file already rejected unknown
top-level keys; the config block and its `defaults:` sub-block now do the same, through
the existing `_check_keys`.
Also documents the CLI exit codes in the module docstring (0 clean, 1 any per-domain
error or finding, 2 an invalid invocation); the split was only implicit in the tests.
Round-2 Codex lens on #1, full-scope confirm: one blocking finding fixed (this), one
rejected (per-domain config errors keep rc 1 — nothing documents rc 2 for them and the
suite asserts 1).1 parent d473257 commit f76b8ee
3 files changed
Lines changed: 27 additions & 0 deletions
File tree
- src/octodns_gitops
- cli
- forward_email
- tests/forward_email
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
162 | 167 | | |
163 | 168 | | |
164 | 169 | | |
| |||
273 | 278 | | |
274 | 279 | | |
275 | 280 | | |
| 281 | + | |
| 282 | + | |
276 | 283 | | |
277 | 284 | | |
278 | 285 | | |
| |||
299 | 306 | | |
300 | 307 | | |
301 | 308 | | |
| 309 | + | |
302 | 310 | | |
303 | 311 | | |
304 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
136 | 151 | | |
137 | 152 | | |
138 | 153 | | |
| |||
0 commit comments