Skip to content

Commit 6bc095a

Browse files
authored
chore: remove unused admin addresses config
1 parent 93f7935 commit 6bc095a

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

‎.env.example‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,3 @@ MERIDIAN_ADAPTER_DEFINDEX_ID=
5858
VITE_API_URL=http://localhost:3001
5959
# Optional override for Blend's testnet faucet endpoint. Leave empty to use the default.
6060
VITE_BLEND_FAUCET_URL=
61-
# Comma-separated Stellar public keys allowed onto /admin. Client-side only —
62-
# a placeholder gate until #614 lands a real one; do not treat this as
63-
# access control for anything sensitive (see AdminDashboard.tsx).
64-
VITE_ADMIN_ADDRESSES=

‎apps/docs/operations/environment-variables.md‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
## Web (`apps/web`)
44

5-
| Variable | Required | Default | Description |
6-
| ---------------------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
7-
| `VITE_API_URL` | No | `""` | Base URL of the API server. Empty means same origin. In local dev, Vite proxies `/api` to `localhost:3001` so this is not needed. |
8-
| `VITE_ADMIN_ADDRESSES` | No | `""` | Comma-separated Stellar public keys allowed onto `/admin`. Client-side only, and inlined into the public build like every `VITE_` variable. It is a placeholder gate for the Keeper Health/Vault State panels until [#614](https://github.com/drydocs/meridian/issues/614) lands real server-enforced admin auth. Never treat this as access control for anything sensitive. |
5+
Admin page access is gated by comparing the connected wallet with the vault's
6+
on-chain admin address, fetched with `fetchVaultAdmin()` in `AdminLogin.tsx`.
7+
This is a frontend visibility gate, not server-side authorization.
8+
9+
| Variable | Required | Default | Description |
10+
| -------------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------- |
11+
| `VITE_API_URL` | No | `""` | Base URL of the API server. Empty means same origin. In local dev, Vite proxies `/api` to `localhost:3001` so this is not needed. |
912

1013
## API: serverless (`api/v1/`) and Fastify (`apps/api-local`)
1114

0 commit comments

Comments
 (0)