diff --git a/10-systems/services/gnexus-creds.md b/10-systems/services/gnexus-creds.md index 7238f2f..a59ae17 100644 --- a/10-systems/services/gnexus-creds.md +++ b/10-systems/services/gnexus-creds.md @@ -19,6 +19,12 @@ - **Repository**: https://git.gnexus.space/git/root/gnexus-creds.git (branch master) - **Current version**: 543d6ae (2026-10-02, updated by rei; splash on sign-in, logout to internal sign-in without SSO auto-login, extension 0.2.1; previous 3b5a00d: extension 0.2.0 builds on download page; 02a2441: en/uk/ru localization, mobile UX fixes; 4c6a4f7 2026-10-01: PWA shell, biometric reveal gate, ui-kit 1.0) +## Visibility semantics (important, caused a false "data loss" alarm 2026-10-02) +- MCP `search_secrets` returns ONLY secrets with `allow_mcp=true` (by design, commit 2082db2: secrets created via MCP always get allow_mcp=true; secrets created via UI/extension default to allow_mcp=false). +- MCP search default limit is 20 (max 50, paginate with offset). +- Web UI lists 20 secrets per page with pagination (since commit aae771f, predates 2026-10 updates). +- As of 2026-10-02: 70 secrets total (68 actual + 2 archived), 20 with allow_mcp=true, 48 with allow_mcp=false (mostly personal logins created via extension since May 2026). All owned by goldmikki@gmail.com. Nothing was lost during the 2026-10-01/02 updates: .env byte-identical to pre-update backup, zero app errors, only 2 deletions ever (2026-05-28). + ## Configuration - Environment variables are managed via `.env` file in `/home/ubuntu/gnexus-creds`. - Production mode enabled (`GNEXUS_CREDS_ENV=production`). diff --git a/90-maintenance/pending-changes/20261002114916-a744ced2.json b/90-maintenance/pending-changes/20261002114916-a744ced2.json new file mode 100644 index 0000000..c3a8268 --- /dev/null +++ b/90-maintenance/pending-changes/20261002114916-a744ced2.json @@ -0,0 +1,19 @@ +{ + "id": "20261002114916-a744ced2", + "kind": "doc", + "target": "10-systems/services/gnexus-creds.md", + "summary": "gnexus-creds: documented MCP/UI visibility semantics after false data-loss alarm", + "reason": "False \"data loss\" alarm investigated 2026-10-02: MCP search filters allow_mcp=true only and defaults to limit 20; UI paginates 20/page. DB intact (70 secrets). Documented to prevent recurrence.", + "payload": { + "content": "---\nowner: gmikcon\nstatus: active\nlast_reviewed: 2026-10-02\nreview_interval: 90d\nconfidence: high\nsource_of_truth: deployment-verified\n---\n\n# gnexus-creds\n\nPersonal secret storage service with REST API, MCP HTTP/SSE adapter, and Vue UI.\n\n## Deployment\n- **Host**: [[gnexus-creds-host]] (192.168.1.173)\n- **Method**: Docker Compose\n- **Port**: 80 (External) $\\to$ 8000 (Internal)\n- **Database**: PostgreSQL 17 (Containerized)\n- **Repository**: https://git.gnexus.space/git/root/gnexus-creds.git (branch master)\n- **Current version**: 543d6ae (2026-10-02, updated by rei; splash on sign-in, logout to internal sign-in without SSO auto-login, extension 0.2.1; previous 3b5a00d: extension 0.2.0 builds on download page; 02a2441: en/uk/ru localization, mobile UX fixes; 4c6a4f7 2026-10-01: PWA shell, biometric reveal gate, ui-kit 1.0)\n\n## Visibility semantics (important, caused a false \"data loss\" alarm 2026-10-02)\n- MCP `search_secrets` returns ONLY secrets with `allow_mcp=true` (by design, commit 2082db2: secrets created via MCP always get allow_mcp=true; secrets created via UI/extension default to allow_mcp=false).\n- MCP search default limit is 20 (max 50, paginate with offset).\n- Web UI lists 20 secrets per page with pagination (since commit aae771f, predates 2026-10 updates).\n- As of 2026-10-02: 70 secrets total (68 actual + 2 archived), 20 with allow_mcp=true, 48 with allow_mcp=false (mostly personal logins created via extension since May 2026). All owned by goldmikki@gmail.com. Nothing was lost during the 2026-10-01/02 updates: .env byte-identical to pre-update backup, zero app errors, only 2 deletions ever (2026-05-28).\n\n## Configuration\n- Environment variables are managed via `.env` file in `/home/ubuntu/gnexus-creds`.\n- Production mode enabled (`GNEXUS_CREDS_ENV=production`).\n- Secrets (`SECRET_KEY`, `MCP_TOKEN`) are randomly generated.\n\n## Local runtime adaptation (do not overwrite)\n`docker-compose.yml` has an uncommitted local modification that matches the live stack:\n- service renamed `postgres` $\\to$ `db` (container names gnexus-creds-db-1 / app-1 depend on it);\n- port mapping `80:8000` (upstream default is `8000:8000`);\n- app healthcheck uses python urllib instead of curl (curl not in image);\n- `restart: unless-stopped` on both services.\nPreserve it across updates: `git stash push docker-compose.yml` $\\to$ pull $\\to$ `git stash pop`.\n\n## Operations\n- **Health Check**: `GET /health`\n- **Readiness Check**: `GET /ready`\n- **Migrations**: `docker compose run --rm app alembic upgrade head`\n- **Logs**: `docker compose logs -f app`\n- **Update procedure** (verified 2026-10-01 ×1 and 2026-10-02 ×3): backup `.env` + `docker-compose.yml` to `~/backups/` $\\to$ stash compose $\\to$ `git pull --ff-only origin master` $\\to$ stash pop $\\to$ `sudo docker compose up -d --build` $\\to$ `alembic upgrade head` $\\to$ check `/health`, `/ready` and https://creds.gnexus.space/health.\n- **SSH access**: ubuntu@192.168.1.173, password same as navi swarm password (see gnexus-creds secret \"navi (192.168.1.168) — SSH ubuntu\"); sudo same password. No dedicated secret for this host yet." + }, + "status": "applied", + "created_at": "2026-10-02T11:49:16Z", + "updated_at": "2026-10-02T11:49:18Z", + "applied_at": "2026-10-02T11:49:18Z", + "validation": { + "status": "ok", + "issue_count": 0, + "issues": [] + } +}