#13958: Claude/secureclaw env supabase dz q hh
cli
docker
stale
size: L
Cluster:
Security Enhancements and Fixes
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR adds an optional Supabase-backed environment variable store (via a PostgREST table) and wires it into startup entry points (`src/index.ts`, `src/cli/run-main.ts`, `src/macos/relay.ts`) so secrets can be fetched before `loadConfig()` performs `${VAR}` substitution. It also adds a SQL schema for the `env_vars` table and vitest coverage for resolving config, fetching rows, and applying values without overriding existing env vars.
Key integration detail: local dotenv loading remains first/authoritative, with Supabase acting as a fallback layer when `SUPABASE_URL` + `SUPABASE_SERVICE_ROLE_KEY` are set.
<h3>Confidence Score: 4/5</h3>
- Mostly safe to merge, with one concrete configuration bug to address.
- Core Supabase env loading path is defensive (timeouts/errors return empty set) and is sequenced before CLI config parsing in the updated entry points. The remaining issue is URL construction for schema-qualified table names, which will deterministically fail if users set `SUPABASE_ENV_TABLE` to include a schema prefix.
- src/infra/supabase-env.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#7892: Claude/setup agent firewall ww xsv
by starwreckntx · 2026-02-03
76.3%
#10258: fix(config): preserve ${ENV_VAR} references when writing config (#9...
by nu-gui · 2026-02-06
73.9%
#11048: fix: address repository issues (env, author, CI comments, security ...
by cavula · 2026-02-07
73.6%
#7346: Security: add hardening module and secure-bot extension
by AlphonseC · 2026-02-02
73.4%
#14871: Claude/audit codebase architecture 8a ql2
by MagnoliaLex · 2026-02-12
73.3%
#21173: fix(config): support envFiles option in resolveConfigEnvVars for ga...
by Mellowambience · 2026-02-19
73.0%
#8876: Confirmaciones para equipo de IT
by m4xjunior · 2026-02-04
72.9%
#9747: feat(config): add pass (password-store) secret backend support
by evilbuck · 2026-02-05
72.7%
#6512: Claude/setup open claw agent f v sqk
by franelcisco · 2026-02-01
72.6%
#7487: docs: add code review for recent security commits (b796f6e..411d5fd)
by INTEGRITY2077 · 2026-02-02
72.2%