Repository navigation
Commit 9d7e5f7
alert: cache the vault key so a logicsrc outage does not silence alerts
On 2026-10-28 app.logicsrc.com crash-looped 16:10-16:16Z; every alert in that
window failed with "no API key (vault smshub--prod SMSHUB_ALERT_API_KEY)" and
fell back to email, including the qrypt.chat sweep alert. The key was in the
vault the whole time. Now the last key the vault returned is kept in
~/.local/state/alert/smshub-key (0600) and used when the vault cannot answer.
A key smshub rejects is still reported loudly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 3c33cc8 commit 9d7e5f7
2 files changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
78 | 92 | | |
79 | 93 | | |
80 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
59 | 74 | | |
0 commit comments