Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ printf '%s' 'your-password' | argon2 "$(openssl rand -hex 8)" -id -e -t 2 -m 16
|:---------|:--------|
| `QLAWKUS_ADMIN_PASSWORD_HASH` | Argon2id PHC hash for the `qlawkus` admin user (override the username with `QLAWKUS_ADMIN_USERNAME`) |

`%dev` keeps a known password (`qlawkus`) for local development only. In production, store the hash via the env var above or the encrypted secrets keystore (`PUT /api/admin/secrets`, alias `qlawkus.admin.password-hash`) see [`site/content/secrets.adoc`](site/content/secrets.adoc).
`%dev` keeps a known password (`dev`) for local development only. In production, store the hash via the env var above or the encrypted secrets keystore (`PUT /api/admin/secrets`, alias `qlawkus.admin.password-hash`), see [`site/content/secrets.adoc`](site/content/secrets.adoc).

### Environment Variables

Expand Down Expand Up @@ -367,7 +367,7 @@ The full admin surface — including per-property config editing and the `agent.

```bash
curl -X POST http://localhost:8080/api/chat \
-u qlawkus:qlawkus \
-u qlawkus:dev \
-H "Content-Type: application/json" \
-d '{"message": "Hello, who are you?"}'
```
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/quickstart.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TIP: The first build takes a few minutes. Subsequent starts are much faster.

[source,bash]
----
curl -X POST http://localhost:8080/api/chat/sync -u qlawkus:qlawkus \
curl -X POST http://localhost:8080/api/chat/sync -u qlawkus:dev \
-H 'Content-Type: application/json' -d '{"message":"Hello, who are you?"}'
----

Expand Down Expand Up @@ -77,7 +77,7 @@ TIP: `./run.sh prod logs` follows the app logs and `./run.sh prod down` stops th

== Authentication

All HTTP endpoints use Basic auth (`quawkus` / `qlawkus` by default, override with `API_USER_PASSWORD`).
All HTTP endpoints require authentication. The bundled `app` verifies HTTP Basic against an *Argon2id* password hash, database-free (see xref:secrets.adoc[Secrets]). In dev mode (`quarkus:dev`) the credentials are **`qlawkus` / `dev`**, from a hash baked into the `%dev` profile. Any non-dev run is fail-closed: the app refuses to boot until you provide an Argon2id hash of your own password, under the keystore alias `qlawkus.admin.password-hash` or the environment variable `QLAWKUS_ADMIN_PASSWORD_HASH`. The username defaults to `qlawkus` (`qlawkus.admin.username`).

== What's next?

Expand Down
4 changes: 2 additions & 2 deletions scripts/memory-benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
# long-term memory (owner profile injection or active-memory retrieval), never the chat window.
#
# Usage:
# BASE=http://localhost:8742 AUTH=qlawkus:qlawkus SLEEP=25 ./scripts/memory-benchmark.sh
# BASE=http://localhost:8742 AUTH=qlawkus:<admin-password> SLEEP=25 ./scripts/memory-benchmark.sh
#
# Requires: curl, and `docker compose exec postgres` for window wipes (override WIPE_CMD otherwise).
set -u

BASE="${BASE:-http://localhost:8742}"
AUTH="${AUTH:-qlawkus:qlawkus}"
AUTH="${AUTH:-qlawkus:dev}" # dev-mode credential; for a containerized instance set your configured admin password
SLEEP="${SLEEP:-25}" # throttle between LLM turns (rate-limit friendly)
PSQL="${PSQL:-docker compose exec -T postgres psql -U qlawkus -d qlawkus}"

Expand Down
4 changes: 2 additions & 2 deletions site/content/quickstart.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TIP: The first build takes a few minutes. Subsequent starts are much faster.

[source,bash]
----
curl -X POST http://localhost:8080/api/chat/sync -u qlawkus:qlawkus \
curl -X POST http://localhost:8080/api/chat/sync -u qlawkus:dev \
-H 'Content-Type: application/json' -d '{"message":"Hello, who are you?"}'
----

Expand Down Expand Up @@ -77,7 +77,7 @@ TIP: `./run.sh prod logs` follows the app logs and `./run.sh prod down` stops th

== Authentication

All HTTP endpoints use Basic auth (`quawkus` / `qlawkus` by default, override with `API_USER_PASSWORD`).
All HTTP endpoints require authentication. The bundled `app` verifies HTTP Basic against an *Argon2id* password hash, database-free (see xref:secrets.adoc[Secrets]). In dev mode (`quarkus:dev`) the credentials are **`qlawkus` / `dev`**, from a hash baked into the `%dev` profile. Any non-dev run is fail-closed: the app refuses to boot until you provide an Argon2id hash of your own password, under the keystore alias `qlawkus.admin.password-hash` or the environment variable `QLAWKUS_ADMIN_PASSWORD_HASH`. The username defaults to `qlawkus` (`qlawkus.admin.username`).

== What's next?

Expand Down
Loading