Commit 8b1b091
committed
fix(aggregator): read the OpenSearch credential from a file, not launchd env
Follow-up to the ship-auth fix: injecting OFFGRID_OPENSEARCH_USER/PASSWORD via the
daemon plist proved fragile — a KeepAlive respawn kept the old job definition's
env, so the process still shipped unauthenticated. The script now reads the
credential ITSELF from a root-only file (/etc/offgrid/opensearch-basic, override
with OFFGRID_OPENSEARCH_CRED_FILE), env still taking precedence. Works regardless
of which launchd job or wrapper starts it.
Verified live end to end: offgrid-gateway 2899 -> 2900 docs, org_bharat 57 -> 58,
newest doc {"org":"org_bharat","model":"gemma-local","gateway":"g5"}.1 parent 05f977b commit 8b1b091
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
233 | | - | |
234 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
235 | 250 | | |
236 | 251 | | |
237 | 252 | | |
| |||
0 commit comments