rotate Supermemory POC client key

This commit is contained in:
Codex
2026-09-09 00:27:50 -07:00
parent b83a47fc5c
commit 239998de66
2 changed files with 16 additions and 4 deletions
+14 -2
View File
@@ -48,7 +48,7 @@ image build is required.
The server creates its client bearer token at: The server creates its client bearer token at:
`/mnt/user/appdata/supermemory-poc/data-gemini-embedding-2-768/api-key` `/mnt/user/appdata/supermemory-poc/data-gemini-embedding-2-768-r2/api-key`
Read it through an authorized unRaid/Arcane console without printing it into Read it through an authorized unRaid/Arcane console without printing it into
logs. Save it only as `SUPERMEMORY_API_KEY` in the `supermemory-lab` Hermes logs. Save it only as `SUPERMEMORY_API_KEY` in the `supermemory-lab` Hermes
@@ -85,7 +85,9 @@ used by Hermes.
The earlier local `Xenova/bge-m3` and LiteLLM-backed embedding experiments are The earlier local `Xenova/bge-m3` and LiteLLM-backed embedding experiments are
preserved under their old data directories because embedding plans cannot be preserved under their old data directories because embedding plans cannot be
changed in place. This deployment uses the fresh changed in place. This deployment uses the fresh
`data-gemini-embedding-2-768` directory. The one-shot `supermemory-smoke` `data-gemini-embedding-2-768-r2` directory. The `r2` store rotates the
auto-generated Supermemory client key after the first native-provider
diagnostic exposed the original key in its startup log. The one-shot `supermemory-smoke`
service verifies the locked embedding plan, tracks the exact document ID to a service verifies the locked embedding plan, tracks the exact document ID to a
terminal state, observes legacy v3 search, gates on v4 document and Chinese terminal state, observes legacy v3 search, gates on v4 document and Chinese
hybrid search, checks provenance metadata, and exercises the profile and hybrid search, checks provenance metadata, and exercises the profile and
@@ -100,6 +102,16 @@ document, but both v4 and v3 searches returned no hit. The old smoke mixed
list-wide status checks and did not track the newly created document, so this list-wide status checks and did not track the newly created document, so this
native Gemini run uses a new store and a stricter document-specific gate. native Gemini run uses a new store and a stricter document-specific gate.
On 2026-09-09, native Gemini direct checks succeeded for both
`gemini-embedding-2` at 768 dimensions and Supermemory's native LLM default.
The v4 `documents` and `hybrid` searches returned the expected Chinese marker
and provenance metadata, while legacy `/v3/search` returned no results. The
self-hosted server-v0.0.8 binary returned 404 for `/v4/conversations`, even
though the self-hosting overview describes that route as part of the full API.
Keep conversation ingest as a failing smoke gate: document RAG can proceed in
isolation, but Hermes auto-capture/session ingest is not validated on this
binary.
## Evaluation guardrails ## Evaluation guardrails
- Score raw Supermemory API retrieval separately from the Hermes answer. In - Score raw Supermemory API retrieval separately from the Hermes answer. In
+2 -2
View File
@@ -81,7 +81,7 @@ services:
volumes: volumes:
- /mnt/user/appdata/supermemory-poc/bin:/opt/supermemory/bin:ro - /mnt/user/appdata/supermemory-poc/bin:/opt/supermemory/bin:ro
- /mnt/user/appdata/supermemory-poc/bin/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro - /mnt/user/appdata/supermemory-poc/bin/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro
- /mnt/user/appdata/supermemory-poc/data-gemini-embedding-2-768:/var/lib/supermemory - /mnt/user/appdata/supermemory-poc/data-gemini-embedding-2-768-r2:/var/lib/supermemory
networks: networks:
br0: br0:
ipv4_address: ${SUPERMEMORY_IPV4_ADDRESS:?set an unused LAN address in Arcane environment} ipv4_address: ${SUPERMEMORY_IPV4_ADDRESS:?set an unused LAN address in Arcane environment}
@@ -112,7 +112,7 @@ services:
- /opt/supermemory-poc/smoke.sh - /opt/supermemory-poc/smoke.sh
volumes: volumes:
- ./smoke.sh:/opt/supermemory-poc/smoke.sh:ro - ./smoke.sh:/opt/supermemory-poc/smoke.sh:ro
- /mnt/user/appdata/supermemory-poc/data-gemini-embedding-2-768:/var/lib/supermemory - /mnt/user/appdata/supermemory-poc/data-gemini-embedding-2-768-r2:/var/lib/supermemory
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
cap_drop: cap_drop: