Skip to content

prod: calendar key must come from the env — a container has no key file - #305

Merged
hyasin270 merged 1 commit into
mainfrom
prod-cal-key-1787159011
Aug 19, 2026
Merged

prod: calendar key must come from the env — a container has no key file#305
hyasin270 merged 1 commit into
mainfrom
prod-cal-key-1787159011

Conversation

@hyasin270

Copy link
Copy Markdown
Contributor

Cherry-pick. The client read the service-account key from GOOGLE_SERVICE_ACCOUNT_PATH (a file path). Railway containers have no such file and the variable wasn't set on prod, so isConfigured() was false, the gate skipped every schedule, and not one invite was even attempted — silently, because the path is non-blocking.

Now env-first, file second, per the project's existing coos-088 convention. 6 tests red-first, including the exact state prod was in. 15 failing before and after, zero regressions.

… container has no key file

The last thing between "configured" and "an invite actually arrives".

google-calendar.client.js read the service-account key from
GOOGLE_SERVICE_ACCOUNT_PATH — a FILE PATH. Railway containers have no such file,
and the variable was not set on production at all, so isConfigured() returned
false, the gate skipped every schedule, and not one invite was even attempted.
Silent, because the whole calendar path is deliberately non-blocking: no error,
no event, nothing in a coach's calendar and no obvious reason why.

Now ENV FIRST, file second — the convention this project already documents
(coos-088): GOOGLE_SERVICE_ACCOUNT_JSON for the cloud, the local file for a
workstation. A bad path no longer breaks a working env var.

6 tests, red first, including the exact state prod was in (subject and calendar
id set, no key of either kind => not configured). Suite: 15 failing before and
after, zero regressions.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
(cherry picked from commit 6fb5fc9)
@hyasin270
hyasin270 merged commit f7ef065 into main Aug 19, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant