Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(ci): set LDR_TEST_MODE + KDF on the webkit server step (fixes Safari auth-setup 401) (#4775)

LearningCircuitd458493cbd69
diff --git a/.github/workflows/playwright-webkit-tests.yml b/.github/workflows/playwright-webkit-tests.yml
index ab51a8549e..e57a7dc1b9 100644
--- a/.github/workflows/playwright-webkit-tests.yml
+++ b/.github/workflows/playwright-webkit-tests.yml
@@ -84,6 +84,15 @@ jobs:
TEST_ENV: true
FLASK_ENV: testing
LDR_DATA_DIR: ${{ github.workspace }}/data
+ # The server MUST open test_admin's encrypted DB with the same KDF it
+ # was created with. init_test_database.py creates it at 1000 iterations
+ # (LDR_TEST_MODE relaxes the floor to allow it); without these two vars
+ # here the requested 1000 is below the production floor, so it falls
+ # back to the 256000 default, the server derives the wrong key, and
+ # every login fails with a 401 — see #4558, which set these on the init
+ # step but missed this server step.
+ LDR_DB_CONFIG_KDF_ITERATIONS: "1000"
+ LDR_TEST_MODE: "1"
LDR_DISABLE_RATE_LIMITING: true
SECRET_KEY: test-secret-key-for-ci
run: |
@@ -245,6 +254,15 @@ jobs:
TEST_ENV: true
FLASK_ENV: testing
LDR_DATA_DIR: ${{ github.workspace }}/data
+ # The server MUST open test_admin's encrypted DB with the same KDF it
+ # was created with. init_test_database.py creates it at 1000 iterations
+ # (LDR_TEST_MODE relaxes the floor to allow it); without these two vars
+ # here the requested 1000 is below the production floor, so it falls
+ # back to the 256000 default, the server derives the wrong key, and
+ # every login fails with a 401 — see #4558, which set these on the init
+ # step but missed this server step.
+ LDR_DB_CONFIG_KDF_ITERATIONS: "1000"
+ LDR_TEST_MODE: "1"
LDR_DISABLE_RATE_LIMITING: true
SECRET_KEY: test-secret-key-for-ci
run: |