health-check reads secrets.smoketest_bot_token without guarding undefined secrets #4
Labels
No labels
area/auth
area/backend
area/ci
area/deploy
area/e2e
area/frontend
area/shared
blocked
good-first-issue
needs-info
priority/high
priority/low
priority/medium
type/bug
type/chore
type/docs
type/feature
type/tech-debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
celilo/lunacycle#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
celilo/scripts/health-check.tsaccessessecrets.smoketest_bot_tokendirectly.secretsis typed as required (Record<string, string>) and the production handler always supplies it, so this is fine in practice — but there's no defensive guard ifsecretsis everundefined.Context
This surfaced while fixing the unit tests: 6 health-check tests threw
undefined is not an object (evaluating 'secrets.smoketest_bot_token')because they omitted thesecretsdep. Fixed on the test side in commit4396221(passsecrets: {}), deliberately leaving the source contract intact rather than masking a potentially-real missing-secret with?..Decision to make
Is the strict contract correct (caller must always pass
secrets), or should the source defensively handleundefined(treat as "no token provisioned" → skip smoke checks)? Low priority either way; filing so the choice is explicit rather than implicit.Acceptance criteria
secrets, or make access defensive (secrets?.smoketest_bot_token).