Configuration¶
ReadyRoom is a Spring Boot application. Its defaults are in the application.yml packaged in the
image, and you override them with environment variables or JVM options. The application's own settings live under the application. prefix and are bound to
ApplicationProperties and a few related classes. Everything else is a standard Spring Boot
property.
How to supply configuration¶
| Install method | Where | Notes |
|---|---|---|
| Release package | .env in the release directory |
Made from env.template by install.sh. Add any setting below as its environment variable, then run ./compose.sh up -d (Docker or Podman). |
| Helm chart | Your values file | Most settings have a named value (see Installation and the chart's README.md). Any other setting goes in extraEnv as its environment variable. Apply with helm upgrade. |
| Form | Example | Notes |
|---|---|---|
| Environment variables | APPLICATION_USERBASEDN=ou=Users,dc=example,dc=com |
Spring's relaxed binding: upper-case the name, replace . with _, drop -. List items use an index: APPLICATION_SUPERUSERDNS_0_, APPLICATION_GROUPS_0_GROUPSBASEDN. |
| JVM options | JAVA_OPTS="-Dapplication.timezone=America/Chicago" |
The image passes $JAVA_OPTS to java. Keep the default -XX:MaxRAMPercentage=75.0 when you set it. |
Override every secret
The packaged application.yml contains development passwords for the database and the LDAP
bind. Override them in production. No mail server or mail password is packaged. See
Security.
Settings are checked at startup
A setting with an invalid value stops ReadyRoom at startup with a message naming the variable,
for example APPLICATION_USERBASEDN, APPLICATION_BASE_URL, an ENS_SESSION_* duration or
ENS_AUDIT_SYSLOG_PROTOCOL.
In the tables below, Packaged is the value in the packaged application.yml, and Built-in
is the value the code uses when the property is not set anywhere. A dash means there is none.
Server and TLS¶
| Property | Env var | Packaged | Description |
|---|---|---|---|
server.port |
SERVER_PORT |
8181 |
Listener port, for HTTP or, with TLS on, HTTPS. Leave it at 8181: the release package and the Helm chart expect it. The package publishes it on the host as READYROOM_BIND_ADDRESS:READYROOM_PORT (default 0.0.0.0:8181; see Address and port). |
server.ssl.enabled |
SSL_ENABLED |
false |
Serve HTTPS. Client-certificate sign-in, and so the Windows client, needs it. Helm: tls.enabled. |
server.ssl.key-store |
SERVER_SSL_KEYSTORE |
– | Server keystore, for example file:/path/server.p12. Required with TLS on: none is packaged. The release package and the Helm chart set it for you. |
server.ssl.key-store-password |
SERVER_SSL_KEYSTOREPASSWORD |
– | Keystore password. |
server.ssl.key-store-type |
SERVER_SSL_KEYSTORETYPE |
PKCS12 |
|
server.ssl.client-auth |
SERVER_SSL_CLIENTAUTH |
want |
want asks for a client certificate but allows form login without one. need would refuse every connection without a certificate, including the logoff call and browsers that use the login form. none turns certificate sign-in off, and with it the need for a truststore. |
server.ssl.trust-store |
SERVER_SSL_TRUSTSTORE |
– | CAs whose client certificates are accepted. Required with TLS on while client-auth is want or need: none is packaged, and ReadyRoom does not fall back to Java's default CAs. Put only the CAs that issue your users' certificates in it. |
server.ssl.trust-store-password |
SERVER_SSL_TRUSTSTOREPASSWORD |
– | |
server.ssl.trust-store-type |
SERVER_SSL_TRUSTSTORETYPE |
PKCS12 |
|
server.servlet.session.cookie.same-site |
– | lax |
The session cookie is not sent with another site's posts or scripted requests, but is sent when someone follows a link from elsewhere, such as an absence notification email. |
server.servlet.session.cookie.http-only |
– | true |
|
server.servlet.session.cookie.secure |
ENS_COOKIE_SECURE |
the value of SSL_ENABLED |
Mark the session cookie Secure. Set ENS_COOKIE_SECURE=true when a reverse proxy terminates TLS for browsers and ReadyRoom itself serves HTTP. SESSION_COOKIE_SECURE, the older name, still works. |
server.forward-headers-strategy |
SERVER_FORWARD_HEADERS_STRATEGY |
– | framework behind a reverse proxy that terminates TLS: ReadyRoom then reads X-Forwarded-Proto, -Host and -For, so it knows requests are HTTPS (Strict-Transport-Security, redirects) and records the client's address. Only when every request comes through that proxy. |
With TLS on, ReadyRoom refuses to start if no keystore is set, or if no truststore is set while
client-auth is want or need. The error names the settings to add (for example
server.ssl.enabled is true but no key store is configured.).
Database¶
| Property | Packaged | Description |
|---|---|---|
spring.datasource.url |
jdbc:postgresql://${DB_HOST:postgres}:${DB_PORT:5432}/${DB_NAME:appdb}?options=${DB_OPTIONS:-c%20plan_cache_mode%3Dforce_custom_plan} |
JDBC URL. Set DB_HOST, DB_PORT and DB_NAME, or SPRING_DATASOURCE_URL whole. A whole URL of your own should keep the options parameter. |
DB_OPTIONS |
-c%20plan_cache_mode%3Dforce_custom_plan |
PostgreSQL settings for each connection, URL-encoded (Helm: database.options). The default plans every query for its own parameters. PostgreSQL's own default switches a query that runs often over long lists of people to a generic plan, which was up to 240 times slower in a 100,000-person load test. Behind a connection pooler that refuses startup options (PgBouncer without ignore_startup_parameters), set it empty (Helm: -) and run ALTER DATABASE <name> SET plan_cache_mode = force_custom_plan instead. |
spring.datasource.username |
DB_USERNAME, packaged appuser |
|
spring.datasource.password |
DB_PASSWORD, packaged secret123 |
Override it. |
spring.datasource.driver-class-name |
org.postgresql.Driver |
|
spring.jpa.hibernate.ddl-auto |
validate |
Hibernate only checks, at startup, that the tables and columns it maps are there. Flyway creates and changes the schema (see Installation). |
spring.flyway.baseline-on-migrate, spring.flyway.baseline-version |
true, 0 |
A database an earlier ReadyRoom created, with tables but no flyway_schema_history, is recorded at version 0, and V1 then adds what is missing. Leave them as they are. |
spring.flyway.user, spring.flyway.password |
– (DB_USERNAME, DB_PASSWORD) |
SPRING_FLYWAY_USER, SPRING_FLYWAY_PASSWORD: an optional separate account that owns and migrates the schema, so DB_USERNAME only reads and writes rows. Helm: database.migration.* |
spring.jpa.open-in-view |
false |
Keep it off. Otherwise a request holds its database connection while it waits on LDAP, and a slow directory can exhaust the pool. |
spring.jpa.show-sql |
false |
|
spring.jpa.properties.hibernate.dialect |
org.hibernate.dialect.PostgreSQLDialect |
|
spring.jpa.properties.hibernate.jdbc.batch_size |
50 |
Lets the directory refresh write changed rows in batches. |
spring.jpa.properties.hibernate.order_inserts / order_updates |
true |
LDAP connection¶
| Property | Packaged | Built-in | Description |
|---|---|---|---|
spring.ldap.urls |
ldap://${LDAP_HOST:openldap}:${LDAP_PORT:389} |
– | Directory URL(s), SPRING_LDAP_URLS, comma-separated for failover. The release package's .env and the Helm chart default to ldaps://...:636. Password sign-in over ldap:// without StartTLS logs a warning at startup. |
spring.ldap.username |
cn=admin,dc=winllc,dc=com |
– | Bind DN for searches. |
spring.ldap.password |
adminpassword |
– | Bind password. |
spring.ldap.base-environment."[com.sun.jndi.ldap.connect.timeout]" |
5000 |
– | Connect timeout in ms. Without it, an unresponsive directory holds requests indefinitely. |
spring.ldap.base-environment."[com.sun.jndi.ldap.read.timeout]" |
30000 |
– | Read timeout in ms. |
spring.ldap.referral |
– | ignore |
What a referral from the directory does (SPRING_LDAP_REFERRAL): ignore, follow (chase it; the other servers must then be reachable with the same credentials) or throw. The startup log says LDAP referrals: <value>. |
spring.ldap.template.ignore-partial-result-exception |
– | true |
Searches ignore the partial result an ignored referral leaves. So an Active Directory searched from its domain root (DC=corp,DC=com), which ends every subtree search with referrals to ForestDnsZones, DomainDnsZones and Configuration, returns its entries rather than failing. A base DN below the domain root (OU=People,DC=corp,DC=com) avoids the referrals altogether. |
application.ldap.pooled |
true |
true |
Reuse JNDI connections. Password checks on the login form never use the pool. |
application.ldap.read-retries |
1 |
1 |
How many more times a read of a person outside sign-in (reports, exports, absence alerts, a person's manager) is tried when the directory does not answer (a time-out, or no free pooled connection), 200 ms and then 400 ms later (APPLICATION_LDAP_READRETRIES). After that a page or API call is answered 503 with Retry-After: 5, and a background job leaves that person, or its run, for its next run. Never taken for "no such person". Kept short because the request waits for it; 0 turns it off. |
application.ldap.page-size |
500 |
500 |
Entries per page for large searches. Keep it below the server's size limit (Active Directory 1000, OpenLDAP 500). 0 turns paging off for directories without the paged results control. |
application.ldap.max-pages |
– | 1000 |
The most pages one paged search reads before it logs a warning and returns what it has. This protects against a directory or proxy that keeps returning a paging cookie. |
application.ldap.search-max-results |
– | 500 |
The most people a name search (Find a user) lists (APPLICATION_LDAP_SEARCHMAXRESULTS). The directory is asked for one more, so the page can say there are more and ask for more of the name. Keep it below the directory's size limit if paging is off. |
application.ldap.search-max-download |
– | 5000 |
The most people a download of a name search holds (APPLICATION_LDAP_SEARCHMAXDOWNLOAD); a search matching more is refused with 400 (too_many_matches). |
application.ldap.user-cache-size |
– | 150000 |
The most directory users kept in memory for sign-in, reports and alerts (APPLICATION_LDAP_USERCACHESIZE), about 1 KB of heap each. Keep it at or above the number of people who check in. Below that, check-ins and large group reports read the directory for nearly every person. Up to the current release it was fixed at 5,000. |
application.ldap.group-membership-cache-seconds |
300 |
300 |
How long a user's group memberships are cached. Permission checks read them on every request, so a directory change can take this long to show. 0 disables the cache. |
application.ldap.pool-max-size |
0 |
0 |
The most pooled directory connections (APPLICATION_LDAP_POOLMAXSIZE). 0 sizes the pool for the request threads: server.tomcat.threads.max plus spring.task.scheduling.pool.size (208 with the defaults), never fewer than 20. Every sign-in reads the directory, so a pool smaller than the request threads makes a burst of check-ins wait for a connection, and a wait longer than the connect timeout fails the read. Connections are opened only when needed and closed after 5 idle minutes. Lower it if the directory limits connections per client; raise it together with server.tomcat.threads.max. The startup log says LDAP connection pooling enabled for ..., at most <n> connections. |
application.ldap.sign-in-retries |
2 |
2 |
How many more times a sign-in reads the directory when it does not answer (a time-out, or no free pooled connection), 200 ms and then 400 ms later, before the request is answered 503 with Retry-After: 5 (APPLICATION_LDAP_SIGNINRETRIES). A directory that cannot be asked is never taken for "no such user": that is still a 401, at once. |
The JDK connection pool is configured by system properties that ReadyRoom sets at startup, unless
you pass them with -D:
| System property | Default set by ReadyRoom |
|---|---|
com.sun.jndi.ldap.connect.pool.protocol |
plain ssl (pools ldaps:// connections too) |
com.sun.jndi.ldap.connect.pool.maxsize |
application.ldap.pool-max-size, or with that at 0 the request threads plus the job threads (208 with the defaults; it was a fixed 20) |
com.sun.jndi.ldap.connect.pool.timeout |
300000 (5 minutes idle) |
A connection is waited for as long as com.sun.jndi.ldap.connect.timeout (5 s packaged). If the
database pool (spring.datasource.hikari.maximum-pool-size) is raised, raise the directory pool with it:
a larger database pool lets more requests reach the directory at once.
Directory mapping¶
| Property | Packaged | Built-in | Description |
|---|---|---|---|
application.user-base-dn |
dc=winllc,dc=com |
– | Base DN for every user search, the login form's user search and the org chart scan. Required. |
application.user-ldap-filter |
(objectclass=inetOrgPerson) |
(objectclass=inetOrgPerson) |
Identifies user entries. It is used alone to list and count users, and combined into an AND for search, reports, direct reports and Windows sign-in. Parentheses are added if you leave them out, and a blank value falls back to the default. Example: (&(objectclass=inetOrgPerson)(!(employeeType=CONTRACTOR))). |
application.groups[].groups-base-dn |
ou=Groups,dc=winllc,dc=com, ou=Companies,dc=winllc,dc=com |
none | One entry per top-level group tree shown on the Groups page. Groups are groupOfUniqueNames entries. |
application.super-user-dns |
none | none | DNs that always get the ADMIN role (matched without regard to case), APPLICATION_SUPERUSERDNS_0, _1, ... None are packaged: name at least one, or nobody can administer ReadyRoom or reach the license screen (startup logs a warning). The demo profile and the development compose file name their own. |
application.user-ldap-organization-attribute |
o |
organization |
Organization of a user. |
application.user-ldap-employee-type-attribute |
employeeType |
employeeType |
Employee type. Used in metrics and org-chart breakdowns. |
application.user-ldap-location-attribute |
l |
location |
Location. |
application.user-ldap-branch-attribute |
– | branch |
Branch. |
application.user-ldap-email-attribute |
– | mail |
Email address. Absence emails go to the manager's value of this attribute. |
application.user-ldap-phone-attribute |
– | telephoneNumber |
Phone number. |
application.user-ldap-manager-id-attribute |
title |
title |
On a user: the id of the person they report to. |
application.manager-ldap-id-attribute |
street |
Email |
On a manager: their own id. A user reports to the manager whose value here equals the user's user-ldap-manager-id-attribute. |
application.user-ldap-duty-sub-organization-attribute |
departmentNumber |
dutySubOrganization |
The flat attribute the org chart is built from (for example RYS34B). |
application.duty-sub-org-filter |
(departmentNumber=*) |
blank | The only filter on the org-chart scans: the organizations and their directory members are the entries with the duty sub-organization attribute that match it (the user LDAP filter does not apply). |
application.duty-sub-org-groups-base-dn |
ou=Groups,dc=winllc,dc=com |
blank | Bound to the configuration, but not read by any code in the current version. |
application.organization-name |
– | TOP |
Name of the root node of the org chart. |
application.lookup-on-dn-attribute |
– | false |
When true, a user is looked up by searching user-base-dn for user-dn-attribute=<DN> instead of reading the DN directly. Use it when certificate subjects are not directory DNs. |
application.user-dn-attribute |
– | blank | The attribute used when lookup-on-dn-attribute is true. |
Directory caches¶
Users, group trees, the user count and the org chart are kept in Caffeine loading caches (at most 5000 entries each).
| Property | Built-in | Description |
|---|---|---|
application.cache-duration-refresh-minutes |
60 |
An entry older than this is reloaded in the background the next time it is read. The stale value is served until the reload finishes. |
application.cache-duration-expiration-minutes |
120 |
An entry older than this is discarded and loaded again in the foreground. |
application.cache-invalidation-poll-millis |
10000 |
How often each replica reads the group cache evictions another replica recorded, and drops the same entries (APPLICATION_CACHEINVALIDATIONPOLLMILLIS). |
Administrators can evict cached group trees from Settings (see
Administration). An eviction reaches every replica: it is recorded in
the database (table cache_invalidations, rows kept a day) and each other replica applies it within
cache-invalidation-poll-millis. Expiry needs no such step.
Time zone and day start¶
Each person's day is their own. It is in their time zone: the one they chose on their profile,
else their site's (APPLICATION_REPORTS_SITETIMEZONES, by the directory's location attribute; see
Reports, exports and time zones), else the application's
(application.timezone). It starts at their site's day start (application.site-day-starts),
else the application's (application.day-start), midnight unless configured. Day D runs from D
at the day start, in the person's zone, to the same time the next day.
That day decides which day a check-in counts for, the date a person's statuses, weekends and holidays are read on, their expected time and when the absence alert checks them. Pages, reports, downloads, scheduled reports and the public API all follow it. Settings → Days and Time Zones shows what is configured (see Administration).
| Property | Env var | Packaged | Built-in | Helm | Description |
|---|---|---|---|---|---|
application.timezone |
APPLICATION_TIMEZONE |
America/New_York |
UTC |
timezone |
Sets the JVM default time zone at startup. It is the zone of anyone with no zone of their own (none on their profile, none for their site). The Records list, the metrics page's charts by time of day, the public API's from and to, and the retention purge's schedule also use it: they show one clock for everyone. The log prints Default time zone set to <zone> (from application.timezone=...). |
application.day-start |
APPLICATION_DAYSTART |
– | 00:00 |
dayStart |
When days start, HH:mm, in each person's own time zone. |
application.site-day-starts |
APPLICATION_SITEDAYSTARTS |
– | none | siteDayStarts (a list) |
A site's own day start: <location>=HH:mm, comma separated, the location as the directory spells it (any case), for example Plant 2=18:00. A site without one uses application.day-start. |
spring.jackson.time-zone |
SPRING_JACKSON_TIMEZONE |
America/New_York |
– | timezone |
Time zone for JSON serialization. Keep it the same as application.timezone. |
spring.jackson.date-format |
– | yyyy-MM-dd HH:mm a z |
– | – | Default JSON date format. |
A day start that is not a time of day (24:00, 6pm, or Plant 2 without =HH:mm) stops
startup with a message naming the setting. Nothing needs a database change.
Choosing a day start. Leave it at midnight unless a site's shifts cross midnight. For such a
site, pick a time before its earliest shift starts and after its latest shift ends. For example,
use 18:00 for a site whose shifts run 22:00 to 06:00: the whole shift, check-in and check-out, is
then the day it started on. A Login Time earlier than the day start is the next morning of that
day: with a day start of 18:00, 02:00 is the small hours of the same shift.
Always set application.timezone
The same key is also read through ApplicationProperties.timeZone (TimeZoneConfig), whose
built-in default is ETC. That is not a valid zone id, so Java would treat it as GMT. Set the
property explicitly so both start-up paths agree. An unrecognized zone id silently becomes GMT.
Attendance and scheduled jobs¶
| Property | Packaged | Built-in | Description |
|---|---|---|---|
application.check-out-after-minutes (checkOutAfterMinutes) |
240 |
240 |
How long someone's latest event can be a screen lock before they are automatically checked out, also when that runs past midnight (a lock after about 20:00 with 240). On a day of Early Leave with a time of leaving, a lock at or after that time is checked out on the next run instead. |
application.extra-time-before-absent-notification-minutes |
– | 60 |
Grace period after a person's expected login time before an absence alert is raised. The help dialog shows this value. |
application.inactive-cron.fixed-rate |
60000 |
1800000 |
Milliseconds between auto check-out runs. It is used as a fixed delay after each run finishes, so runs never overlap. |
application.inactive-cron.initial-delay |
60000 |
1800000 |
Delay before the first auto check-out run, in ms. |
application.send-absent-notification-cron.fixed-rate |
300000 |
1800000 |
Milliseconds between absence-alert runs (also a fixed delay). |
application.send-absent-notification-cron.initial-delay |
1 |
1800000 |
Delay before the first absence-alert run, in ms. |
application.refresh-user-records-cron.enabled |
true |
true |
Turns the directory-to-database refresh on or off without removing its schedule. |
application.refresh-user-records-cron.fixed-rate |
3600000 |
3600000 |
Milliseconds between refreshes (fixed delay). |
application.refresh-user-records-cron.initial-delay |
300000 |
300000 |
Delay after startup before the first refresh, in ms. |
spring.task.scheduling.pool.size |
3 |
– | One thread per job, so a slow run of one job does not delay the others. |
application.logoff.session-max-age-hours |
168 |
168 |
Env var APPLICATION_LOGOFF_SESSIONMAXAGEHOURS. How long after a check-in its sessionId can identify the Windows client's logout (a week, so a workstation left logged on over a weekend still records its logout). A later logout, or a second one with the same id, is refused. |
application.logoff.refused-per-minute |
30 |
30 |
Env var APPLICATION_LOGOFF_REFUSEDPERMINUTE. Refused logouts without a sign-in (unknown, used or expired sessionId) allowed from one client address per minute. Past it, the next ones get 429 and are no longer audited one by one. A logout with a usable sessionId is never counted. 0 turns the limit off. |
What each job does is described in Operations.
Statuses, requests and privacy¶
| Property | Env var | Built-in | Helm | Description |
|---|---|---|---|---|
application.calendar.employee-type-filters |
APPLICATION_CALENDAR_EMPLOYEETYPEFILTERS_0_LABEL, ..._0_VALUES, _1_LABEL, ... |
Gov: GOV,GOVERNMENT,CIV,CIVILIAN; CTR: CTR,CON,CONTRACTOR; MIL: MIL,MILITARY |
calendar.employeeTypeFilters (empty list: the default) |
The Team Calendar's and Group Calendar's Show choices after All, in order: each a label and the employee types it shows, matched ignoring case against the person's employee type (application.user-ldap-employee-type-attribute, default employeeType). Setting any replaces the defaults. See Mapping your directory's employee types |
application.events.request-statuses |
APPLICATION_EVENTS_REQUESTSTATUSES |
OUT_OF_OFFICE,WORK_FROM_HOME,TDY,TRAINING,SCHEDULED_LEAVE,ABSENT_EXCUSED |
events.requestStatuses (empty list: the default) |
The statuses people request and their manager, a delegate or an administrator approves before they count. Comma-separated status codes (TDY is Temporary Duty (TDY); TRAINING is Training). STANDARD is refused at startup. A deployment that sets this keeps its list on upgrade: add TRAINING for Training to need approval. Leaving an excusing status out lets people set it themselves; startup then warns that it stops absence alerts without approval (the warning also names Late Arrival, which delays them). See Statuses and approvals |
application.events.max-range-days |
APPLICATION_EVENTS_MAXRANGEDAYS |
366 |
events.maxRangeDays |
The most days one call may set a status, a request or an organization calendar event on, 1 to 3660. Longer ranges are refused with range_too_long |
application.events.late-arrival-latest-time |
APPLICATION_EVENTS_LATEARRIVALLATESTTIME |
12:00 |
– | The latest time, HH:mm, a person may give for a late arrival they set for themselves, and for the Login Time on their profile. Either becomes the time their absence alert waits for. Later is refused (late_arrival_too_late); a manager, delegate or administrator recording a late arrival for someone is not limited |
application.events.late-arrival-max-days |
APPLICATION_EVENTS_LATEARRIVALMAXDAYS |
31 |
– | The most days one late arrival a person sets for themselves may cover; more is refused (late_arrival_too_long). Not a limit on a manager, delegate or administrator |
application.events.alert-answer-days |
APPLICATION_EVENTS_ALERTANSWERDAYS |
14 |
– | How many days after an absence alert its manager or delegate may still answer it, or change the answer; after that only an administrator may (the alert page says why). At least 1. An alert whose day an approved request covers takes the request's answer and cannot be answered on its own at any age. See Administration → Absence notifications |
application.privacy.coworker-visibility |
APPLICATION_PRIVACY_COWORKERVISIBILITY |
full |
privacy.coworkerVisibility |
What people see of coworkers whose details they may not see: full (in, away or out, and the day's status), status (IN or OUT only) or none (no status; the org chart shows headcounts without how many are present, except to the ADMIN and MANAGER roles). Any other value stops startup. See Security → Authorization |
application.retention.events-days |
APPLICATION_RETENTION_EVENTSDAYS |
0 (keep forever) |
retention.eventsDays |
Days to keep check-in records, calendar statuses, status requests and absence alerts. 0, or at least 31: the home page, My Reports and the average login time read the last 30 days. Older check-ins and statuses are summarised by month, then deleted. Audit events are not affected. See Operations → Retention |
application.retention.cron |
APPLICATION_RETENTION_CRON |
0 17 2 * * * (02:17 daily) |
retention.schedule |
When the purge runs: a six-field Spring cron, in ReadyRoom's time zone (application.timezone). Checked at startup |
application.calendar-requested-event-color |
– | gray |
– | Calendar colour of the days of a pending request |
A bad value in any of these stops startup with a message naming the setting.
Mapping your directory's employee types¶
Directories spell employee types differently (FT, PT, CON, CONTRACTOR, GS, ...). Look at
the values your employeeType attribute (or the one application.user-ldap-employee-type-attribute
names) holds, then list each calendar choice with every spelling it covers. Labels must be
non-empty, unique ignoring case and not All (always offered first), each with at least one value,
or startup stops naming the setting. Release package (.env):
APPLICATION_CALENDAR_EMPLOYEETYPEFILTERS_0_LABEL=Gov
APPLICATION_CALENDAR_EMPLOYEETYPEFILTERS_0_VALUES=FT,PT,GS
APPLICATION_CALENDAR_EMPLOYEETYPEFILTERS_1_LABEL=CTR
APPLICATION_CALENDAR_EMPLOYEETYPEFILTERS_1_VALUES=CON,CONTRACTOR
APPLICATION_CALENDAR_EMPLOYEETYPEFILTERS_2_LABEL=MIL
APPLICATION_CALENDAR_EMPLOYEETYPEFILTERS_2_VALUES=MIL,USAF,USN
Helm:
calendar:
employeeTypeFilters:
- label: Gov
values: [FT, PT, GS]
- label: CTR
values: [CON, CONTRACTOR]
- label: MIL
values: [MIL, USAF, USN]
A group's members are matched on the employee type ReadyRoom keeps on their user record (from the
directory at sign-in and at each refresh); someone ReadyRoom has never seen has none and shows
under All only. A manager's reports are matched on their directory entries. The API endpoints
behind the calendars take the label as type (/api/event/reports?type=CTR); an unknown one is
400 unknown_type.
Email and notifications¶
| Property | Packaged | Built-in | Description |
|---|---|---|---|
spring.mail.host |
– | – | SMTP host (SPRING_MAIL_HOST). Without it, absence alerts are recorded but not emailed, and startup logs a warning. |
spring.mail.port |
587 |
– | SMTP port. |
spring.mail.username / spring.mail.password |
– | – | SMTP credentials. |
spring.mail.properties.mail.smtp.auth |
true |
– | |
spring.mail.properties.mail.smtp.starttls.enable / .required |
true / true |
– | STARTTLS, and refuse to send (credentials included) when the server does not offer it. For a relay that takes neither TLS nor AUTH, set SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH and ..._STARTTLS_ENABLE to false. |
spring.mail.properties.mail.smtp.connectiontimeout, .timeout, .writetimeout |
30000 each |
– | A server that stops answering fails the send after 30 seconds instead of holding the job. |
spring.mail.properties.mail.smtp.ssl.trust |
– | – | Unset: the mail server's certificate is checked against the JVM's trust store. Earlier releases trusted any certificate. Naming a host here (or *) trusts it without checking: an explicit opt-in, not FIPS- or STIG-appropriate. Helm: smtp.sslTrust |
application.notification-sender-email |
"" |
– | From address of absence emails (APPLICATION_NOTIFICATIONSENDEREMAIL). Must be a valid address; required when SPRING_MAIL_HOST is set, or startup fails. |
application.application-base-url |
http://localhost:8181 |
https://localhost |
Base of the link in absence emails (<base>/app/notifications/id/<id>). Set it to the URL users really use. |
User interface¶
| Property | Packaged | Built-in | Description |
|---|---|---|---|
application.banner-text |
BANNER TEXT |
none, required | Text of the banner at the top and bottom of every page (for example a classification marking). The application does not start without it. |
application.banner-color |
– | darkgreen |
Banner background color (any CSS color). |
application.banner-text-color |
– | white |
Bound, but not applied by the current page layout. |
application.logofile |
– | /images/logos/readyroom_logo_inverse_1.svg |
Image shown in the sidebar. Use light, transparent artwork, ideally SVG. Files in the server's /external-resources/ directory are served at /external/**, so a mounted logo can be referenced as /external/<file>. |
application.update-profile-url |
https://google.com |
https://google.com |
Target of the Help Desk link on My Profile, where users report wrong directory data. |
application.groups-initially-expanded |
– | false |
Expand the group and org-chart trees when the page loads. |
application.calendar-status-event-color |
– | blue |
Calendar color of excusable statuses (for example work from home or leave). |
application.calendar-absent-status-event-color |
– | purple |
Calendar color of non-excusable statuses (for example absent or late arrival). |
application.calendar-activity-event-color |
– | green |
Calendar color of "Online: ..." activity entries. |
application.calendar-global-event-color |
– | orange |
Calendar color of organization calendar events. |
application.attribute-update-request-url-mappings |
– | empty map | Bound, but not read by any code in the current version. |
Windows (Kerberos) sign-in¶
Turned off by default. These settings apply only to POST /api/check/in, /lock and /unlock.
For the setup procedure, see Security.
| Property | Env var | Packaged | Built-in | Description |
|---|---|---|---|---|
application.windows-auth.enabled |
APPLICATION_WINDOWSAUTH_ENABLED |
false |
false |
Turns Windows sign-in on. |
application.windows-auth.service-principal |
APPLICATION_WINDOWSAUTH_SERVICEPRINCIPAL |
– | blank | For example HTTP/readyroom.example.com@EXAMPLE.COM. The app does not start without it when sign-in is enabled. |
application.windows-auth.keytab-location |
APPLICATION_WINDOWSAUTH_KEYTABLOCATION |
– | blank | Path to the keytab. The app does not start if the file is missing or unreadable. |
application.windows-auth.account-attribute |
APPLICATION_WINDOWSAUTH_ACCOUNTATTRIBUTE |
sAMAccountName |
sAMAccountName |
Directory attribute holding the Windows account name. It must match exactly one user under user-base-dn that also matches user-ldap-filter. |
application.windows-auth.strip-realm |
APPLICATION_WINDOWSAUTH_STRIPREALM |
true |
true |
Match jdoe rather than jdoe@EXAMPLE.COM. Set it to false when matching userPrincipalName. |
application.windows-auth.allowed-realms |
APPLICATION_WINDOWSAUTH_ALLOWEDREALMS |
– | the service principal's realm | Realms whose users may sign in. |
application.windows-auth.krb5-config-location |
APPLICATION_WINDOWSAUTH_KRB5CONFIGLOCATION |
– | system /etc/krb5.conf |
Use a different krb5.conf. |
application.windows-auth.debug |
APPLICATION_WINDOWSAUTH_DEBUG |
– | false |
Log the JDK's Kerberos detail while the keytab is loaded. |
Single sign-on¶
OpenID Connect and SAML 2.0, each off until enabled (ENS_SSO_OIDC_ENABLED,
ENS_SSO_SAML_ENABLED). Both need APPLICATION_BASE_URL set to the absolute URL users reach, and a
user filter (ENS_SSO_OIDC_USER_FILTER, ENS_SSO_SAML_USER_FILTER). ENS_SSO_ROLE_MAPPING maps the
provider's groups to MANAGER or ADMIN. Every ENS_SSO_* setting, the addresses to register and
provider walkthroughs are in Single sign-on; with Helm, the sso.*
values. From the next release the issuer and the SAML metadata must be https:// (or a file), SAML
needs an https:// APPLICATION_BASE_URL, and the release package's env.template lists every
ENS_SSO_* setting.
Public API, webhooks and reports¶
| Area | Settings | Details |
|---|---|---|
Public API (application.api.*) |
APPLICATION_API_MAXTOKENDAYS (366), _DEFAULTRATEPERMINUTE (120), _MAXRATEPERMINUTE (1200), _MAXRANGEDAYS (366), _MAXPAGESIZE (500). From the next release rates are counted in the database for all replicas together (up to the current release per replica: with N replicas a token may make up to N times its rate) |
API reference → Settings |
Live account check (application.ldap.account-status.*) |
APPLICATION_LDAP_ACCOUNTSTATUS_FILTER, _LOCKOUTDURATION, _CACHESECONDS (60), _BUILTINCHECKS (true), _ACTIVEDIRECTORY (auto) |
Applies to API token, webhook and scheduled report owners, to certificate and single sign-on sign-ins, and to signed-in browser sessions (there an unreadable directory does not refuse); API reference → Tokens |
Webhooks (application.webhooks.*) |
APPLICATION_WEBHOOKS_SECRETKEY (unset: webhooks off), _ALLOWEDCIDRS, _MAXATTEMPTS (8), _DELIVERYLOGDAYS (30), timeouts and run limits |
Webhooks → Settings |
Reports and time zones (application.reports.*) |
APPLICATION_REPORTS_SITETIMEZONES, _MAXRANGEDAYS (366), _HTMLMAXMEMBERS (200), _MAXATTACHMENTBYTES (10485760), _MAXRECIPIENTS (20), _RETRYHOURS (24) |
Reports, exports and time zones |
Logging, monitoring and diagnostics¶
| Property | Packaged | Description |
|---|---|---|
logging.level.root |
info |
|
logging.level.com.winllc.innoutwork |
info |
At info: records written by jobs, report generation, org-chart rebuilds and job summaries. Set it to debug for per-query detail, timings and authorization decisions. |
management.endpoints.web.exposure.include |
health |
Actuator endpoints exposed under /actuator on the application's port. health needs no authentication and shows the status only; details for ADMIN. Any other endpoint you add needs an ADMIN sign-in; see Security. |
management.server.port (MANAGEMENT_SERVER_PORT) |
– | Spring Boot's own setting. A separate, plain-HTTP port for the actuator: there /actuator/health (with liveness and readiness) and /actuator/prometheus are open without sign-in, and the application's port then has no actuator. Unset: no Prometheus endpoint at all. Never publish this port through an ingress, route or the host. Helm: metrics.enabled (default true), metrics.port (9090) |
management.health.mail.enabled (MANAGEMENT_HEALTH_MAIL_ENABLED) |
Spring Boot's default, true |
Whether the aggregate /actuator/health includes the mail server. Readiness never does. Helm: smtp.healthCheck |
logging.structured.format.console (LOGGING_STRUCTURED_FORMAT_CONSOLE) |
– | ecs writes each log line as one JSON object (Elastic Common Schema). Helm: logFormat: json, the default. The audit lines on stdout are raw ens-audit/1 JSON either way |
application.diagnostics.request-metrics |
false |
When true, every request logs GET /app/home -> 200: <n> SQL statement(s), <n> LDAP operation(s), <n>ms. Use it for measuring, not for normal running. |
Audit trail¶
The audit trail's settings (ENS_AUDIT_*: stdout, file, Splunk, syslog, retention) are the same in every
ENS application; see Audit logging → Settings. ReadyRoom also has:
| Env var | Default | Description |
|---|---|---|
ENS_AUDIT_CHAIN_MILLIS (next release) |
500 |
Each audit event is stored in the same transaction as the action it records, without waiting for its place in the hash chain; a chainer on each replica then adds stored events to the chain in batches, in the order they were recorded. A replica chains its own events as soon as they commit; this is how often, in milliseconds, it also looks for events still to be chained (those another replica recorded, or left by a crash). Until it is chained, an event is in no list, export, verification, pull-API answer or output; Audit log says how many are waiting. Helm: extraEnv |
Security headers, banner and sessions¶
The ENS platform settings: every ENS application has them, with the same names and defaults.
| Env var | Default | Description |
|---|---|---|
ENS_CSP_REPORT_ONLY |
false |
true sends Content-Security-Policy-Report-Only instead of enforcing the policy: an escape hatch for a page the policy breaks. Startup warns while it is on. Helm: csp.reportOnly |
ENS_CONSENT_BANNER_ENABLED |
false |
Show the DoD notice-and-consent banner before sign-in, enforced by the server. Helm: consentBanner.enabled |
ENS_CONSENT_BANNER_TITLE |
empty: U.S. Government (USG) Information System (IS) Notice and Consent |
Its heading |
ENS_CONSENT_BANNER_TEXT |
empty: the standard DoD notice-and-consent text | Plain text, blank lines between paragraphs |
ENS_CONSENT_BANNER_FILE |
– | A file to read the text from; wins over ENS_CONSENT_BANNER_TEXT. Helm: consentBanner.existingConfigMap |
ENS_SESSION_IDLE_TIMEOUT |
30m |
A browser session ends after this long idle. Setting SERVER_SERVLET_SESSION_TIMEOUT no longer changes the timeout of signed-in sessions |
ENS_SESSION_ADMIN_IDLE_TIMEOUT |
empty: the idle timeout | Idle timeout for administrators. DISA STIG suggests 15m |
ENS_SESSION_ABSOLUTE_TIMEOUT |
12h |
A session ends this long after sign-in, whatever its activity |
ENS_SESSION_MAX_PER_USER |
0 (no limit) |
Sessions per user; over the limit the oldest ends. DISA STIG suggests 3 |
ENS_SESSION_ACCOUNT_CHECK_INTERVAL |
5m |
How often a browser session's directory account and ReadyRoom role are checked again. A disabled, locked out, expired or missing account, or a changed role, ends the session (auth.session-expired, reason account); a directory that cannot be read keeps it. Helm: session.accountCheckInterval |
The durations are Spring durations (30m, 12h), each at least one minute. Helm: session.*.
The settings for client certificates (ENS_X509_*) are in
Installation → Client certificates.
Example: production settings¶
A release package .env for a site with LDAPS, TLS and its own job timings. The settings
install.sh writes (database, ports) are left out. With Helm, the same settings go in your values
file (named values where the chart has them, extraEnv for the rest).
# .env in the release directory
COMPOSE_FILE=docker-compose.yml:docker-compose.tls.yml
APPLICATION_BASE_URL=https://readyroom.example.com:8181
# TLS: tls/keystore.p12 and tls/truststore.p12
SSL_ENABLED=true
SERVER_SSL_KEYSTOREPASSWORD=...
SERVER_SSL_TRUSTSTOREPASSWORD=...
SPRING_LDAP_URLS=ldaps://ldap.example.com:636
LDAP_USERNAME=cn=readyroom-svc,ou=Service,dc=example,dc=com
LDAP_PASSWORD=...
SPRING_MAIL_HOST=smtp.example.com
SPRING_MAIL_PORT=587
SPRING_MAIL_USERNAME=readyroom@example.com
SPRING_MAIL_PASSWORD=...
APPLICATION_NOTIFICATIONSENDEREMAIL=readyroom@example.com
ENS_CONSENT_BANNER_ENABLED=true
ENS_SESSION_ADMIN_IDLE_TIMEOUT=15m
ENS_SESSION_MAX_PER_USER=3
ENS_X509_REVOCATION=ocsp-then-crl
LOGGING_STRUCTURED_FORMAT_CONSOLE=ecs
MANAGEMENT_SERVER_PORT=9090
APPLICATION_PRIVACY_COWORKERVISIBILITY=status
APPLICATION_RETENTION_EVENTSDAYS=400
APPLICATION_TIMEZONE=America/Chicago
SPRING_JACKSON_TIMEZONE=America/Chicago
APPLICATION_BANNERTEXT=UNCLASSIFIED
APPLICATION_BANNERCOLOR=green
APPLICATION_USERBASEDN=ou=People,dc=example,dc=com
APPLICATION_GROUPS_0_GROUPSBASEDN=ou=Teams,dc=example,dc=com
APPLICATION_SUPERUSERDNS_0=cn=Jane Admin,ou=People,dc=example,dc=com
APPLICATION_USERLDAPMANAGERIDATTRIBUTE=managerId
APPLICATION_MANAGERLDAPIDATTRIBUTE=employeeNumber
APPLICATION_USERLDAPDUTYSUBORGANIZATIONATTRIBUTE=departmentNumber
APPLICATION_DUTYSUBORGFILTER=(departmentNumber=*)
APPLICATION_CHECKOUTAFTERMINUTES=240
APPLICATION_INACTIVECRON_FIXEDRATE=300000
APPLICATION_INACTIVECRON_INITIALDELAY=60000
APPLICATION_SENDABSENTNOTIFICATIONCRON_FIXEDRATE=900000
APPLICATION_SENDABSENTNOTIFICATIONCRON_INITIALDELAY=60000
APPLICATION_UPDATEPROFILEURL=https://helpdesk.example.com/
The attribute names managerId and employeeNumber above are examples. Use whichever attributes
hold reporting lines in your directory.
Windows client parameters¶
The workstation agent is configured by inoutworker.config.json and command-line parameters. The
file is read from the path given with -ConfigPath, or else from the script's own folder, where the
installer writes it. Explicit parameters win over the file, and the file wins over the script's
built-in defaults. The Logout task also passes -UserSid, the SID of the user whose session ended,
from event 4647. The
full reference, including the installer's parameters, is on the Windows client
page. In summary:
| Setting | Built-in default | Description |
|---|---|---|
BaseUrl |
https://192.168.1.29:8444/api/check (a lab address) |
Server check-in API, for example https://readyroom.example.com:8181/api/check. Always set it. |
Authentication |
Certificate |
Certificate, Windows or Auto. |
CertificateThumbprint |
blank | Use this client certificate. |
CertificateSubjectContains |
blank | Otherwise, use the first certificate whose subject contains this text. |
SkipCertificateCheck |
false |
Turns off server TLS validation. For labs only. |