Skip to content

Contributing

github-actions[bot] edited this page Dec 1, 2026 · 1 revision

Contributing

Development setup

JDK 17+ and Maven. mvn -B verify compiles with -Xlint:all -Werror and runs the tests; mvn -B package -DskipTests builds the jar.

Architecture in one minute

Main parses options and starts WebServer (JDK HttpServer). WebServer handles routing, security headers, sign-in and the JSON API. Auth decides who is calling (token, users file/LDAP, trusted-proxy header, OIDC). Targets lists JVMs and caches JMX connections; Metrics and MBeans read and write through JMX. The UI is plain files in src/main/resources/web (no build step, no inline script, no innerHTML). Details and gotchas: CLAUDE.md.

Adding a feature

  1. Add the API in WebServer.vm(...) (reads via GET; anything that changes the JVM goes through requireWrite).
  2. Put JMX logic in Metrics/MBeans, with a test that starts the real server (WebServerTest, AuthTest).
  3. UI in app.js: build DOM with el(...) and textContent.
  4. A security fix gets a regression test that fails without the fix.

Releasing

See RELEASING.md: signed tag, the tag workflow builds the jar and the Docker images (Docker Hub + GHCR) and creates a draft release, then publish it with notes.

Clone this wiki locally