Mini-SIEM uses PostgreSQL TLS with hostname verification. My guide rn adds a local HTTPS entry point for the browser and the Spring Boot API, using Docker Compose and Caddy!~ It can serve the React build as frontend pages are completed!
Plz start in the repository root. For the full from-zero laptop walkthrough, use First-Time Setup first. Follow Database Quickstart to create ur .env and database certificates in local-certs/. Start Docker Desktop (or the Docker daemon on Linux but i think we're all on Windows now, prev thought otherwise). Stop any host Java/Vite process if you're switching to the HTTPS Docker workflow.
bash scripts/generate-app-certs.sh
(cd frontend && npm ci && npm run build)
docker compose -f compose.yaml -f compose.https.yaml config --quiet
docker compose -f compose.yaml -f compose.https.yaml up --build -d db backend web
bash scripts/https-smoke-test.shOne-time commands: Run generate-app-certs.sh only if local-certs/app-server.crt and .key do not already exist. It will refuse to overwrite existing files on purpose. config --quiet validates Compose without printing your expanded .env passwords in the terminal. Run npm ci once per new clone (or when dependencies change), but rebuild frontend/dist whenever React code changes.
Open https://localhost:8443 in your browser. Caddy will serve frontend/dist and send /api/* requests to Spring Boot for us. The backend container connects to PostgreSQL over verified TLS. We are so freaking secure mhm (ignore the fact that it's all local and not networked)
The proxy exposes port 8443 on localhost. Spring Boot stays inside the Docker network, so browser requests use the HTTPS address. After updating React, rebuild the frontend with (cd frontend && npm run build) from the repo root and refresh the page. The frontend/dist directory is mounted in the proxy container.
The app certificate is signed by the project CA and includes localhost and 127.0.0.1 as valid names. Import local-certs/ca.crt into the trusted certificate store on the demonstration computer. Keep ca.key private ideally
Check that the browser shows a trusted connection. The smoke script verifies the certificate and hostname using the CA file. If a certificate check fails, inspect the hostname and trust settings before continuing (just dm me if that doesnt make sense, ill help). On another computer, issue a certificate for that computer's actual hostname.
Always avoid committing .env, database dumps, passwords, and anything from local-certs/. These are in the gitignore but ill keep putting these disclaimers everywhere lol
The smoke test checks the session API over HTTPS. For the complete security review, run through these actions on the demonstration machine:
- Sign in as an Admin and as an Analyst. Check logout and expired/anonymous sessions.
- Confirm the session cookie is
SecureandHttpOnly. Confirm the CSRF cookie has the requiredSecureattribute while remaining readable by the client if the current CSRF flow needs it. - Try an Admin-only API action while signed in as an Analyst. The server should return 403.
- Send a write request with an incorrect or missing CSRF token and check that it is rejected.
- Confirm passwords remain hashed and sensitive values do not appear in audit responses.
- Check an unknown API route (404), rate limiting (429), and the safe display of untrusted event text.
These checks cover the browser-side requirements in SEC-01 through SEC-06 and AC-09.
docker compose -f compose.yaml -f compose.https.yaml downThis stops the services and preserves the database volume. down -v would remove its volume, so use that option only when you intentionally want to delete disposable data plz!