Intelligence, Advanced Charting & Trading Platform
docs(chartnova): verify removal of overprivileged Neon history role
davoodmehraban89 committed
Oct 11, 2026 at 23:44 UTC
aa383c6a0bf7f27acb41e3b843e5afe8c3778690
1 file changed
+4
-1
PROJECT_STATE.md
+4
-1
@@ -77,5 +77,8 @@ Securely connect the Navasan and Alpha Vantage runtime credentials and the Neon
77
- **Verified in production Neon:** 762 licensed ECB EXR daily reference observations in `market_ticks`, 254 per EUR_USD_ECB/EUR_GBP_ECB/EUR_CHF_ECB, 2025-10-13 to 2026-10-09; 0 invalid/duplicate checks. The `candles` table remains empty. The 2026-10-11 importer `--commit` reported 0 *new* rows; do not attribute prior inserts to this run.
78
- **Verified deployed:** existing `/api/history` retrieves 254-row annual observations through Cloudflare KV and line-chart UI; live smoke also passed domestic, widget, and Scriptable routes. This is not yet a live PostgreSQL read.
79
- **Implemented in isolated GitHub branch, not deployed:** bounded/parameterized Neon-first API with KV fallback, 9 passing Worker history unit tests and syntax check.
80
-- **Security blocker:** SQL-created `chartnova_history_ro` has read access exclusively to the ECB history view but is NOLOGIN awaiting secure credential activation. An API-created `chartnova_history_reader` unexpectedly inherited privileged `neon_superuser` membership and **must not be used**; administrative removal/revocation is pending. Safe Cloudflare secret handoff was blocked, and `CHARTNOVA_HISTORY_DATABASE_URL` is absent.
80
+- **Security blocker:** SQL-created `chartnova_history_ro` has read access exclusively to the ECB history view but is NOLOGIN awaiting secure credential activation. An API-created `chartnova_history_reader` unexpectedly inherited privileged `neon_superuser` membership and **must not be used**; deletion was completed and confirmed absent in pg_roles after user approval. Safe Cloudflare secret handoff was blocked, and `CHARTNOVA_HISTORY_DATABASE_URL` is absent.
81
- **Next checkpoint:** secure least-privilege role credential through approved dashboard, complete API+UI integration and live test on a reviewed Worker deployment, then continue seeking explicitly licensed OHLC sources. Details and rollback are in `docs/data/neon-history-direct-handoff-2026-10-11.md`.
82
+
83
+## 2026-10-11 — Security cleanup verified
84
+With explicit user approval, the unused overprivileged Neon role `chartnova_history_reader` was deleted. Independent queries confirm 0 remaining matches, `chartnova_history_ro` still present with read access only to the ECB view and `NOLOGIN`, and ECB history remains **762 observations (254 per symbol)**. No deployed Worker secret or application code was changed. Pre-delete role configuration and post-delete evidence: `docs/security/neon-history-reader-predelete-2026-10-11.md`.