Commit f95b0a8
Force-recreate Google credentials file after snapshot restore
Modal preserves env vars across snapshot restore but not /tmp.
configure_google_credentials() short-circuits when
GOOGLE_APPLICATION_CREDENTIALS is set, so the env var survived
the snapshot while the file at that path may not, leaving Cloud
SQL Connector reads pointing at a missing credentials file.
Pop the env var before calling configure_google_credentials()
in the post-restore reset hook so the credentials file is
rewritten on every container start.
Addresses P1 review feedback on PR #1528.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3b29778 commit f95b0a8
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
| 96 | + | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
| |||
0 commit comments