3 Commits
Author SHA1 Message Date
Paul TalandClaude Opus 5.5 0a1d6a8927 Replace HTTP Basic Auth with a login page and session cookie
- /login form checks DASHBOARD_USER / DASHBOARD_PASSWORD from .env in
  constant time; failed attempts are serialized with a 1s delay
- Sessions are random tokens kept in memory for 30 days, in an HttpOnly,
  SameSite=Lax cookie (Secure behind HTTPS); sign out ends them server-side
- Signed-out requests redirect to /login and return to the page afterwards,
  with redirects limited to local paths
- Dashboard pages send no-store and X-Frame-Options: DENY
- Tests for the login flow and redirect safety; docs updated

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 00:56:39 +02:00
Paul TalandClaude Opus 5.5 f8e851fdb9 Add Docker deployment with deploy.sh
- Dockerfile: static build on alpine, runs as non-root, data on /data
  volume, health check on /healthz
- deploy.sh: builds the image and (re)starts a detached container with
  restart policy, .env as env file and the pocketkv-data volume
- .env.example: PORT for the host port; go-run-only settings commented out
- README: Docker deployment, updates, backups and HTTPS via Caddy

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-22 22:30:29 +02:00
Paul TalandClaude Opus 5.5 cb29d58aa2 Initial pocketkv: dashboard, read-only API, OpenAPI spec
A self-hosted key-value store for serving JSON values to static sites.

- Dashboard behind HTTP Basic Auth (credentials from .env) to manage
  stores, edit JSON values in an Ace editor, and create read-only API keys
- Read-only API authenticated with bearer tokens, CORS enabled
- OpenAPI 3.1 spec served at /openapi.yaml
- Go standard library only; data persisted to a single JSON file

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-22 22:25:23 +02:00