Skip to content

Commit 9444999

Browse files
authored
docs(readme): fix quickstart demo API key to match server hashing (#100)
The plaintext (`recotem-quickstart`, 18 chars) was below `_API_KEY_MIN_LEN = 32`, and the published hash was a plain sha256 instead of the scrypt KDF the server actually uses, so the quickstart `curl /predict/...` always returned `invalid_api_key`. Replace with a 32-char plaintext and the matching `scrypt(N=2, r=8, p=1, salt=b"recotem.api-key.v1")` hex digest.
1 parent e276bd5 commit 9444999

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ artifact directory all in one place. Train a TopPop recommender from a
7676
# 1. Set demo keys. DEMO ONLY — for production, generate fresh keys with
7777
# `recotem keygen --type signing` and `recotem keygen --type api`.
7878
export RECOTEM_SIGNING_KEYS="dev:0000000000000000000000000000000000000000000000000000000000000000"
79-
export RECOTEM_API_PLAINTEXT="recotem-quickstart"
80-
export RECOTEM_API_KEYS="dev:sha256:921281c95ab79adecf21d410f8c93d38d74b0c3c267c221c8291771de8e7c359"
79+
export RECOTEM_API_PLAINTEXT="recotem-quickstart-demo-key-0000"
80+
export RECOTEM_API_KEYS="dev:sha256:21be5c3be85b8d68123df9f9b6a26d8e307db30350ea8bcc844883e22ebcf125"
8181

8282
# 2. Train, serve
8383
recotem train examples/quickstart/recipe.yaml

0 commit comments

Comments
 (0)