Skip to content

Installation

The distribution

The console needs Java 21 or later. Download the archive of a release from the releases page and unpack it:

VERSION=0.9.0
curl -LO https://github.com/lolaf-org/staffix-admin/releases/download/v$VERSION/staffix-admin-$VERSION.tar.gz
tar xzf staffix-admin-$VERSION.tar.gz
cd staffix-admin
Path Content
bin/staffix-admin.sh Starts the console from the distribution's root, with JAVA_OPTS and the java of JAVA_HOME when set
staffix-admin.jar The console, with the UI inside
plugins/ The YAML store, the audit log, and the Prometheus, Loki, Elasticsearch and ClickHouse connectors: see Plugins
config/ application.yml, jaas.conf, users.properties, and the schemas an editor checks the YAML files with: see Editing the YAML files

users.properties ships two users whose password is their name: admin (WRITER) for the UI, and engine (ENGINE) for engines to announce themselves; a reader (READER) is there commented out. Change both passwords before anyone else can reach the console: hash a password, replace the user's, then start the console:

java -Dloader.main=org.lolaf.staffix.admin.server.security.jaas.PasswordHasher -jar staffix-admin.jar 'secret'
# replace admin's password in config/users.properties with that hash: admin = {bcrypt}..., WRITER
bin/staffix-admin.sh

Open http://localhost:8080. Every setting is listed in Configuration; to log in against your own directory instead of the users file, see Security. The connectors you declare are kept under data/.

Connecting engines

Engines appear once they announce themselves. Add staffix's HTTP admin API connector to each engine (staffix-admin-api-http-impl, see staffix's runtime administration guide), with its announcement URL pointing at the console and the credentials of a console user with the ENGINE role. The console then calls each engine with the token it announced.

To see metrics and logs, point the engines' OpenTelemetry exports at a backend and declare it to the console as a connector.

Docker image

Each release is also an image, ghcr.io/lolaf-org/staffix-admin:<version> (and :latest), running the distribution as a non-root user:

docker run -p 8080:8080 \
    -v /etc/staffix-admin:/opt/staffix-admin/config:ro \
    -v staffix-admin-data:/data \
    -e STAFFIX_ADMIN_SECRETS_MASTERKEY=... \
    ghcr.io/lolaf-org/staffix-admin:0.9.0
  • config/ holds the image's copy of the distribution's, with the admin and engine users whose password is their name. Mount your own in its place, starting from the archive's config/: application.yml, jaas.conf and your users or JAAS module, and the two *.schema.json if you edit the YAML files. Hash a password with the image itself: docker run --rm --entrypoint java ghcr.io/lolaf-org/staffix-admin:0.9.0 -Dloader.main=org.lolaf.staffix.admin.server.security.jaas.PasswordHasher -jar staffix-admin.jar 'secret'.
  • /data is the data directory: console.yaml lives there, so keep it on a volume.
  • JAVA_OPTS passes JVM options; any setting can also come from the environment (staffix.admin.engine-request-timeout as STAFFIX_ADMIN_ENGINEREQUESTTIMEOUT).
  • Plugins of your own: build on the image, FROM ghcr.io/lolaf-org/staffix-admin:0.9.0 then COPY my-plugin.jar plugins/, rather than mounting over plugins/, which would hide the store and audit log the console needs.
  • The console serves plain HTTP until told otherwise: see TLS.