Skip to content

feat: add token-protected deep health routes for database, PowerSync, email and models - #1272

Merged
ital0 merged 8 commits into
mainfrom
italomenezes/thu-880-deep-health-token-protected-routes-for-database-powersync
Sep 21, 2026
Merged

ital0 merged 8 commits into
mainfrom
italomenezes/thu-880-deep-health-token-protected-routes-for-database-powersync

Conversation

@ital0

@ital0 ital0 commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@ital0 ital0 self-assigned this Sep 9, 2026
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

Semgrep Security Scan

No security issues found.

@github-actions

github-actions Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Preview environment destroyed 🧹

Stack preview-pr-1272 and its Cloudflare subdomain have been cleaned up.

@github-actions

github-actions Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

PR Metrics

Metric Value
Lines changed (prod code) +260 / -4
JS bundle size (gzipped) 🟢 644.8 KB → 644.6 KB (-185 B, -0.0%)
Test coverage 🟢 82.25% → 82.25% (+0.0%)
Performance (preview) Preview not ready — Render deploy may have timed out
Accessibility —
Best Practices —
SEO —

Updated Mon, 21 Sep 2026 20:38:29 GMT · run #3068

@ital0
ital0 marked this pull request as ready for review September 21, 2026 19:44

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔭 thunder-deep-review (advisory)

Reviewed the diff — no issues to report. ✅ Never approves, never requests changes, never gates merge.
head: c164874952e0 · mode: deep · deferred 0 item(s) already reported by other bots (best-effort dedup)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔭 thunder-deep-review (advisory)

Complements the other bots — surfaces only what they did not flag. Never approves, never requests changes, never gates merge.
head: c287867aa8de · mode: deep · deferred 0 item(s) already reported by other bots (best-effort dedup)

}).fetch
}
const client = new OpenAI({
apiKey: runtime ? settings.anthropicApiKey : settings.tinfoilApiKey,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Nit — Unset Anthropic/Tinfoil keys report as a generic upstream failure instead of "not configured"

I noticed the powersync and email probes return a clear not-configured reason when their URL/key is missing, but the models probe has no equivalent guard — if ANTHROPIC_API_KEY or TINFOIL_API_KEY is empty we still build the client and send an empty bearer, so every model comes back as upstream-error. On a half-configured deploy that reads like "the provider is down" rather than "you forgot a secret," which is a confusing page to get at 3am. Could we short-circuit to a not-configured reason when the relevant key is blank, so it matches the sibling routes?

@ital0
ital0 merged commit 0e24f7c into main Sep 21, 2026
32 of 33 checks passed
@ital0
ital0 deleted the italomenezes/thu-880-deep-health-token-protected-routes-for-database-powersync branch September 21, 2026 21:13

This branch was successfully deployed

1 active deployment
preview — c287867a Deployed Sep 21, 2026 by ital0 via deploy / deploy #3058
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