Settings and policies
Hour Advantage has no config file. What an instance needs before it reaches the database comes from environment variables. Everything else is kept in the database. Every instance shares it, and it is changed while they run. This page tells apart the two kinds of configuration kept there. They are the cluster’s settings and Time and Attendance’s per-person policies.
| Settings and setup | Policies | |
|---|---|---|
| Engine | The platform and Connect. | Time and Attendance. |
| Grain | The cluster: one value for every instance. | The person. Layers run from the whole tenant down to one employee, by workday. |
| Changed by | hourctl settings set, hourctl apply, the admin API. | A new revision of a layer, from a date. |
| History | The audit trail. | Every revision is kept. Past periods keep the policy they were worked out under. |
| Examples | retention_days, trusted_proxies, log.level, listeners, endpoints, sinks, sync groups. | day_starts, pay_periods, decimals, a weekly threshold, rounding. |
Cluster settings and setup
Section titled “Cluster settings and setup”Settings (limits, retention, trusted proxies, the log level) and the setup (listeners, endpoints, sinks, sync groups) are kept in the database. Every instance applies a change while it runs. It also acknowledges the version it applied. See settings, the setup file and config versions and acknowledgement.
Environments
Section titled “Environments”A cluster is one environment, with its own database. What differs between environments is kept as vars and secrets. A cloud’s address and an API key are examples. The setup moves between environments with hourctl diff and hourctl promote. A values file holds what must differ. See environments, vars and secrets.
Policies
Section titled “Policies”Time and Attendance’s configuration is per person and per day. So it is not a cluster setting. It is a policy. A policy is put together from dated layers: the tenant, a jurisdiction, a plant, a group, one employee. Each layer says only what it changes. Its eligibility rule says whom it applies to on each day. Locks cover what must not change below. See policies and policy layers.
Policy layers and setup are kept per tenant in the attendance store. Every change is a new revision. Policy packages are published as versions. A version is either a tenant’s own or shared by the install. Tenants adopt them by following a major version or by pinning one (policy packages).