Commit 39fb313
fix(webapp): close two bypass paths around the REQUIRE_PLUGINS healthcheck
Two paths could silently skip the new plugin-load gate, found in review:
- server.ts: when DASHBOARD_AND_API_DISABLED=true, /healthcheck was
served by a static Express handler (200 OK) that bypassed the Remix
loader entirely. Forward to createRequestHandler in that branch too
so the loader's readiness checks (DB ping + rbac.isUsingPlugin())
run in every deployment mode.
- healthcheck.tsx: rbac.isUsingPlugin() sat after the
HEALTHCHECK_DATABASE_DISABLED early return, so it never ran when
that flag was set. The rbac fallback doesn't touch the DB
(fallback.ts isUsingPlugin returns false unconditionally), so move
the rbac check above the DB-disabled guard — REQUIRE_PLUGINS
protection now applies regardless of the DB-healthcheck setting.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b0f944c commit 39fb313
2 files changed
Lines changed: 20 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
8 | 16 | | |
9 | 17 | | |
10 | 18 | | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
195 | 203 | | |
196 | 204 | | |
197 | 205 | | |
| |||
0 commit comments