Choose a production authentication mode
none is for local development only. As a safeguard, the starter refuses to start in none mode unless a development Spring profile (dev, demo, test, or local) is active — so it cannot be silently left enabled in production. For any real deployment, use form, basic, oauth2 or keycloak — on Tomcat and WildFly, form, basic or oauth2.
Never leave the engine REST API unprotected
WebAdmin’s REST security is always on, in every authentication mode and every deployment. It covers the engine REST API and WebAdmin’s own/api/** endpoints of the application WebAdmin runs in, and no property turns it off. What is left for you to protect depends on the deployment:
- Spring Boot and ASEE Flow Run — WebAdmin and the engine REST API are one application. WebAdmin protects
/engine-rest/**: nothing else to do. - Tomcat and WildFly — WebAdmin protects the REST API it serves for its own UI, at
/webadmin/engine-rest. The separate Engine REST WAR at/engine-restis the API for your own programs, and the distributions ship it without authentication: its authentication filter is commented out. WebAdmin’s login does not cover it. Until you protect it, anyone who can reach the server can deploy processes, start and delete instances, and create administrators through it. Turn its authentication on as described in Production hardening, or keep it unreachable with a separate layer (reverse-proxy authentication, mTLS, or network policy). See also Deployment.
aseeflow.webadmin.disable-rest-security was removed in 2.1.0. A leftover disable-rest-security: true is ignored and logged as a warning at startup: REST security stays on.
Also enable the engine’s authorization framework in production so the engine enforces per-user permissions:
Secure the engine REST API (OIDC modes)
Foroauth2 and keycloak, Bearer-token acceptance on /engine-rest is off by default and activates only when you set an issuer:
aud: "account" by default, not your client ID. To validate against the client ID instead, add an Audience mapper on the client in Keycloak (Clients → client → Client scopes → dedicated → Add mapper → Audience), then list that client ID in audiences.
The REST chain always accepts the SSO session cookie; configuring the resource server makes it accept both a session and a Bearer token. There is no token-only/session-free REST surface.
Map identities correctly
Each login bridges the authenticated principal into the engine as a user ID plus resolved groups and tenants. Two misconfigurations cause silent lockouts:- User ID mismatch. The
user-name-attributeclaim (e.g.preferred_username,sub,email) becomes the engine user ID. If authorizations were assigned to a username but the token maps a UUID, the user logs in but resolves to zero groups and zero tenants — every query comes back empty. Make sure the claim matches the IDs the engine knows. - Missing group claim. In
oauth2mode the engine reads groups from a token claim (camunda.bpm.oauth2.identity-provider.group-name-attribute, defaultgroups). If your provider doesn’t emit that claim, add a groups mapper on the provider. Inkeycloakmode the identity provider plugin queries Keycloak directly, so token group claims aren’t used.
Manage secrets
- Never hard-code the OIDC client secret. Inject it via an environment variable (
KEYCLOAK_CLIENT_SECRET) and keep the YAML referencing${KEYCLOAK_CLIENT_SECRET:...}. - The demo’s fallback client secret and the
demo/demouser are public and demo-only. Rotate the secret in your identity provider and create real users before production. - Never commit secrets, database passwords, or TLS keys. If one leaks into git history, rotate it immediately.
Transport security
- Serve WebAdmin over HTTPS. Basic and form modes send credentials or session cookies that must not travel in clear text.
-
disableSSLCertificateValidationis development-only. The demo sets ittruefor a local self-signed Keycloak; in production remove it (or setfalse) and use a CA-trusted certificate on your issuer. -
Behind a reverse proxy / load balancer: terminate HTTPS at the proxy and forward auth headers transparently. Pass
Origin,Sec-Fetch-SiteandHost(orX-Forwarded-Host) through as well: see CSRF and cross-site requests. Register Keycloak redirect URIs against the external HTTPS URL (e.g.https://webadmin.example.com/webadmin/login/oauth2/code/keycloak), not the internal one, or OIDC login redirects break. -
For session-based modes, the session cookie is
HttpOnlyandSameSite=Laxby default, in the WAR too, as a baseline CSRF defense. Keeplaxunless an identity provider posts back across sites (form_post); then setnone, which needs HTTPS, oromitted:
CSRF and cross-site requests
A browser attaches the session cookie, and Basic credentials it saved, to a form that a page on another site posts to WebAdmin. Two checks stop such requests. They cover the state-changing requests (POST, PUT, PATCH, DELETE) to the engine REST API and to WebAdmin’s own api/**.
The CSRF token, in form, oauth2 and keycloak mode. A request that the session authenticates sends the value of the WEBADMIN-XSRF-TOKEN cookie in the X-XSRF-TOKEN header. WebAdmin’s UI does this by itself.
- Since 2.1.0 the token is read from the
X-XSRF-TOKENheader only. A_csrfform field or query parameter is ignored, and the request is refused with403. - A request with its own
Authorization: BasicorBearerheader needs no token, but only without a signed-in session. Since 2.1.0, a request that carries a WebAdmin session cookie needs the token whateverAuthorizationheader it also sends. A script that signs in through the login form and then sends Basic credentials too must sendX-XSRF-TOKEN, or drop the session cookie and use Basic alone.
Origin header with every such request, and WebAdmin decides on it:
In
basic mode there is no session and so no CSRF token. There this check is what stops a page on another site from writing with the browser’s saved credentials.
A page on a sibling subdomain is another origin too. If a front end of your own on another host must write to WebAdmin, list its origin, with scheme, host and port and no trailing slash:
null: browsers send Origin: null from sandboxed frames and data: URLs, so any page can send it. A browser application on another origin that calls the REST API with Bearer tokens needs CORS instead.
Behind a reverse proxy, pass the Origin and Sec-Fetch-Site headers through unchanged, as most proxies do. Keep the Host header, or set X-Forwarded-Host to the host the browser sees. Otherwise WebAdmin’s own UI can be refused with 403 in a browser that sends Origin but not Sec-Fetch-Site.
The login form, logout and the legacy web apps (/aseeflow/app/**, /aseeflow/api/**, which have Camunda’s own CSRF filter) are outside both checks. The MCP server at /mcp has no CSRF token, but the same cross-site check: see AI features.
Restrict CORS
CORS only matters when a cross-origin browser client (not the bundled UI) calls the REST API — relevant inoauth2 mode. The default is open (["*"]); restrict it to your real origins:
Production hardening checklist
-
aseeflow.webadmin.authenticationis nevernone(and no development Spring profile is active). - No removed property is left in the configuration:
disable-rest-security,engine-rest-proxy-enabled,engine-rest-client-url,engine-rest-server-url(the startup log warns about each). - Tomcat / WildFly: the Engine REST WAR at
/engine-restis protected, or not reachable — see Production hardening. -
camunda.bpm.authorization.enabled: true. - OIDC with external clients:
resourceserver.jwt.issuer-uriandaudiencesare set. - OIDC client secret supplied via environment variable; demo secret and demo user removed.
- HTTPS everywhere;
disableSSLCertificateValidationnottrue; issuer certificate trusted. - Keycloak redirect URIs point to the external HTTPS URL.
-
oauth2mode:cors.allowed-originsrestricted to real origins (not*). -
security.allowed-originslists only front ends you trust, and is empty if you have none. - Behind a reverse proxy: WebAdmin’s UI can save and deploy (a
403on every write means the proxy dropsOrigin/Sec-Fetch-Siteor rewritesHostwithoutX-Forwarded-Host). - Scripts that sign in with the login form send
X-XSRF-TOKENon writes, not a_csrfparameter. - Identity mapping tested — groups and tenants resolve (not empty).
Verify your configuration
Confirm endpoints are actually protected. Unauthenticated requests must be rejected:/webadmin/engine-rest, and the Engine REST WAR at /engine-rest. The second answers 200 until you protect it.
Valid credentials succeed, wrong credentials fail (basic mode shown):