Introducing a new way to review your PRs.

Read the announcement

rajnandan1 / kener

Stunning status pages, batteries included!

View on GitHub

19 documents · Updated Nov 23, 2026

docs / administration

Administration and workspace management

Administration is Kener's authenticated management surface. It lets trusted operators shape the public status site, run monitoring and event work, connect outside services, and govern workspace access. The management console covers resource and site operations; identity and access controls covers sign-in, users, roles, and permissions.

Management surface

The management surface turns an authenticated session into controlled access to site operations. Setup state, the session, and the permission for each area determine whether a user can open a page or perform a change.

The main access flow connects deployment settings to shared site state:

flowchart TD
    A[Configured site] --> B[Sign in]
    B --> C[Authenticated session]
    C --> D[Management request]
    D --> E{Active user with permission?}
    E -->|No| F[Redirect or deny]
    E -->|Yes| G[Read or change workspace state]
    G --> H[Public site and operations reflect the state]

The v4 API is a separate programmatic management surface. It uses a Bearer API key for every /api/v4 request. Each key has full API access, has no expiry or per-key permission set, and is shown only when it is created. Treat a key as an administrator credential. See API authentication for the supported contract.

References: src/…/api-reference.md• L6-25 src/…/authentication.md• L6-33

Site configuration

Site configuration defines the identity and shared behavior of the public status site. Operators set the site name, origin, images, public navigation, page visibility, retention, event display, sitemap behavior, and maintenance notices.

These settings are shared inputs for public pages and outbound messages. A site URL must be a protocol and domain without a path, query, or fragment so that generated links point to the intended site.

References: src/…/configuration.md• L44-83 src/…/environment-variables.md• L49-79

Appearance and language

Appearance and language settings make the public site fit its audience. The management surface provides theme colors, logos, fonts, custom style, footer content, announcements, page order, languages, timezone display, and date and time formats.

These choices change how visitors read status, event, and navigation data. They do not change the underlying monitor or event state.

Operational resources

Operational resources connect service checks to the information shown to visitors. Operators define monitors, review their results, publish them through pages, record incidents and maintenance, and configure alerts, triggers, subscriptions, and message templates.

This creates one operating loop:

  1. Monitors measure service state.
  2. Incidents and maintenance explain impact and planned work.
  3. Pages publish the selected status view.
  4. Alerts and subscriptions carry changes to people outside the site.

The management console is the detailed guide for these workflows. See management console.

References: src/…/docs.json• L73-255 src/…/api-reference.md• L56-68

Integrations and sharing

Integrations extend the status site to other systems and audiences. Operators can configure analytics, one CAPTCHA provider, API keys, and public sharing features such as embeds and badges.

API keys provide automation access rather than a narrow workspace role. They can be deactivated or deleted, but their secret cannot be recovered after creation. The public API supports monitor and incident management plus status retrieval, so protect every key as a high-impact secret.

Email is a shared service for invitations, verification, subscriptions, and other messages. Kener uses SMTP when it is configured and uses Resend when SMTP is not configured; if neither is available, email-based management actions cannot work.

References: src/…/api-reference.md• L14-25 src/…/authentication.md• L8-33 src/…/email-setup.md• L6-10 src/…/email-setup.md• L69-77

Runtime configuration

Deployment configuration supplies the services that the management surface depends on. Environment values define the session and API signing secret, public origin, database, background-job queue, email provider, reverse-proxy path, and outbound network behavior.

The secret key is a security boundary for sessions, reset and invitation links, verification links, and API keys. Kener has no safe fallback: without a valid secret, sign-in and API keys stay off. Changing the key signs out all users and stops all existing API keys.

The public origin is also part of the management contract. In production, form actions such as sign-in and administration changes are rejected when the origin is missing or does not match the URL used by the browser.

References: src/…/environment-variables.md• L8-79 src/…/environment-variables.md• L81-95 src/…/environment-variables.md• L259-346 src/…/v4.1.10.md• L8-34

Identity provider integration

OpenID Connect (OIDC) connects workspace sign-in to an external identity provider. Administrators set the provider contract, test the connection, choose whether local sign-in remains available, and define how first-time provider users enter the workspace.

Group-to-role mapping links provider groups to Kener roles. The identity provider must use Kener's callback URL, and local login can be restored through the emergency KENER_FORCE_LOCAL_LOGIN setting when the provider is unavailable.

References: src/…/environment-variables.md• L122-138 src/…/docs.json• L233-239

Workspace governance

Workspace governance controls who can operate the site and which changes each person can make. Users receive one or more roles, and each role grants permissions for domains such as monitors, incidents, pages, alerts, settings, subscribers, users, API keys, templates, images, and roles.

The built-in roles provide broad patterns: admin has full access, editor supports day-to-day work without api_keys.delete, and member has read-only access. Built-in roles cannot be edited or deleted. Custom roles let authorized users create narrower access, change their permissions, deactivate or delete them, and move their user assignments when needed.

Permissions apply both to page access and to management actions, so hidden navigation is not a security boundary. Role assignment and role changes also require the matching role-management permissions.

The monitors.write permission can save custom evaluation code that runs on the Kener server. Give it only to people trusted with server-level impact.

References: src/…/user-management.md• L8-22 src/…/user-management.md• L24-70

Account lifecycle

Account lifecycle controls connect invitations, verification, activation, and session access. An administrator invites a user through email; the user accepts a time-limited link, sets a password, and then signs in. Email must be configured before invitations or verification messages can work.

An invitation creates an inactive account with no password, and its token expires after seven days. Accepting a valid link sets the password, activates the account, and marks it verified. Deactivating a user invalidates existing sessions. The owner keeps the administrator role and cannot be deactivated.

Users with users.write can manage invitations, roles, account status, and verification for other users. Any user can request verification for their own account.

References: src/…/user-management.md• L72-139 src/…/email-setup.md• L152-162

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep API-key docs aligned with the actual full-access, no-expiry contract and the one-time secret display.
  • Keep secret-key changes aligned across sessions, invitation links, reset links, verification links, and API-key validation.
  • Keep the public origin contract aligned with production form protection and generated site links.
  • Keep email-provider priority aligned with invitations, verification, subscriptions, and other message flows.
  • Keep built-in and custom role descriptions aligned with permission enforcement, role assignment, API-key deletion, and monitors.write server access.
  • Keep invitation expiry, account activation, session invalidation, and owner restrictions aligned with user-management behavior.
  • Keep OIDC recovery settings aligned with local-login availability and the provider callback contract.
  • Keep documentation navigation aligned with the child pages for the management console and identity and access controls.

Important failure modes

TriggerConsequenceGuard
KENER_SECRET_KEY is missing, empty, or publicSign-in and API keys stay off; a public example value can allow session forgerySet a new random secret and replace public example values
KENER_SECRET_KEY changesAll users are signed out and existing API keys stop workingCreate replacement API keys and plan a new sign-in
ORIGIN is missing or does not match the browser URLProduction form submissions fail, including sign-in and management actionsSet the exact public origin without a trailing slash
An API key is lost after creationThe secret cannot be recovered from the management surfaceStore it in a secret store when it is first shown
SMTP or Resend is not configuredInvitations and verification emails cannot be sentConfigure one supported email service before using those flows
A role lacks the required permissionThe page or management action is deniedGrant the matching role permission; do not rely on hidden navigation
An untrusted user receives monitors.writeCustom evaluation code can run on the Kener serverLimit the permission to trusted operators
OIDC is unreachable while local login is disabledUsers cannot sign in through the management surfaceTest the provider and use the emergency local-login override only for recovery
An invitation link is expired or already usedThe invited user cannot activate the account from that linkResend the invitation before the seven-day token window ends

Key files

FileWhy to read it
src/…/docs.jsonMaps the v4 product areas that administration brings together.
src/…/authentication.mdDefines API-key creation, use, scope, and revocation.
src/…/environment-variables.mdDefines deployment values that protect and enable the management surface.
src/…/email-setup.mdDefines the email services used by account and workspace flows.
src/…/user-management.mdDefines roles, permissions, invitations, verification, and account state.
src/…/v4.1.9.mdRecords the API authentication boundary and the security response for older releases.
src/…/v4.1.10.mdRecords the secret-key security boundary and its operational recovery steps.
management-consoleChild page for site, monitor, event, integration, and sharing workflows.
identity-accessChild page for sign-in, users, roles, permissions, and identity providers.