Commit a619907
committed
fix(deploy-to-aws-uv): simplify legacy-api-key plumbing — read inherited secrets
After review feedback (would have required all callers to switch from
`secrets: inherit` to an explicit secret block — a big breaking change),
revise the design so that the shared workflow reads inherited secrets
directly. Caller workflows keep `secrets: inherit` and need no changes.
The smoketest step's `legacy-api-key` input now picks up the first
non-empty value from a fallback chain of standard GNS-Science API-key
secrets:
LEGACY_API_KEY
NZSHM22_TOSHI_API_KEY
NZSHM22_KORORAA_API_KEY
NZSHM22_NSHM_MODEL_API_KEY
NZSHM22_SOLVIS_API_KEY
NZSHM22_HAZARD_API_KEY
Each consumer's serverless.yml wires its own named secret into the
Lambda authorizer's LEGACY_API_KEY env var; the same value flows
through to the smoketest with no extra plumbing.
The `secrets:` block on the workflow_call is dropped — no new caller-
facing API surface.1 parent 43630f4 commit a619907
1 file changed
Lines changed: 13 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 97 | | |
108 | 98 | | |
109 | 99 | | |
| |||
191 | 181 | | |
192 | 182 | | |
193 | 183 | | |
194 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
0 commit comments