Skip to content

Access lists and maintenance mode

Access Lists and maintenance mode answer two management questions: who may reach the service, and whether the service should accept customer traffic during planned work. Use them as explicit, auditable controls instead of temporary DNS changes, deleted Routes, or undocumented firewall exceptions.

Done right, allowed clients keep access, denied clients are blocked every time, and maintenance returns a deliberate 503 while the hostname, TLS, and Route configuration stay in place.

An Access List decides who may open the Routes and Pages previews it is attached to, in the style of Cloudflare Access: visitors sign in on the protected Route itself, scripts send a service token, and listed addresses can skip sign-in or be turned away. Apply the narrowest list that meets the requirement and test both an allowed and a denied client. Treat stored passwords as credentials and rotate them when membership changes. Deleting a list, or turning its basic authentication off, removes its password file from every connected Ingress Node, and a Node’s full sync after it reconnects removes password files that no configuration uses any more.

Access Lists are on the Routes page, in the Access Lists tab, and can be kept in folders. Sign-in settings in the same tab holds the identity providers, the default session length, and the service tokens.

Maintenance mode is available for enabled managed Routes that are not using raw configuration. It preserves the HTTP/HTTPS virtual host, returns HTTP 503, pauses managed health checks, and exposes maintenance state to alerts and status pages.

Use maintenance mode for deliberate customer-visible work. Do not simulate maintenance by deleting a Route, disabling TLS, or pointing to a dummy upstream; those actions destroy useful state and make recovery harder.

Before leaving maintenance mode, confirm the upstream is healthy, migrations completed, and dependent databases or Secure Links are ready.

  1. An address in an Exclude rule of the type IP range is denied.
  2. An address under Skip sign-in gets in without signing in. 0.0.0.0/0 and ::/0 let everyone in.
  3. Anyone else needs an identity: a service token, HTTP basic credentials of a list user when basic authentication is a method, or a sign-in.
  4. The identity must match no Exclude rule, every Require rule, and at least one Include rule.

Without an identity, a list without sign-in methods denies, a list whose only method is basic authentication asks for basic credentials, and any other list sends the browser to the sign-in page. A signed-in visitor the rules turn away sees “You don’t have access to this site” and can switch to another account; a service token or basic credentials that do not pass get 403.

A list with no sign-in methods, no skip addresses, and no service token rule lets nobody in, and the console says so. To open a Route to everyone, detach the list or skip 0.0.0.0/0 and ::/0.

Method Value in the API How the visitor gets in
Opfield account opfield An account of this Opfield. The console asks its user before continuing to the Route
Identity provider idp:<id> Google or an OIDC provider from Sign-in settings
Username and password password A user of the list, on the sign-in page
Basic authentication basic HTTP basic credentials of the same users, for scripts and old clients
Shared password shared One password for every visitor

Visitors sign in at https://<route host>/_opfield/access/sign-in, a page of the protected Route served by its Ingress Node, which asks Opfield over its own connection. A visitor never reaches or sees Opfield. Each Route signs visitors in on its own, so a visitor signs in once per site. Sign-in is rate limited per visitor address, says when to try again, and does not lock other visitors out.

A session lasts as long as the list sets, or the default of Sign-in settings: 24 hours unless you change it, from 5 minutes to 30 days. After a sign-in the upstream receives Opfield-Access-Jwt-Assertion, Opfield-Access-Email, and Opfield-Access-User. The token is signed with Ed25519; Opfield rotates the key every 30 days and publishes the public keys at /.well-known/opfield-access/jwks of its own address.

A rule matches when any of its values matches. Rules can name Everyone, an IP range, an Email, an Email domain, an Opfield user, an Opfield group, an SSO group from the provider’s groups claim, a Sign-in method, or a Service token. A list with sign-in methods needs at least one Include rule; Everyone lets every signed-in visitor in.

Add Google or an OIDC provider in Sign-in settings; this needs admin:system. Register https://<route host>/_opfield/access/provider-callback at the provider for every Route whose list offers it. Groups claim names the claim that SSO group rules read.

A provider’s email counts for email rules when the provider marks it verified or, with Trust the provider’s email address (on by default), when it sends no email_verified claim, as Microsoft Entra ID does. email_verified: false never counts. Turn the option off for a provider that lets users set an unverified email without saying so. A provider cannot be removed while a list offers it.

Scripts and CI pass a list with a service token, created in Sign-in settings with acl:edit. Its client ID and secret are shown once; send them as the headers Opfield-Access-Client-Id and Opfield-Access-Client-Secret. A list admits a token only through an Include rule of the type Service token that names it. A token can have an expiry date.

GET /api/access-sessions lists signed-in visitors, and POST /api/access-sessions/{id}/revoke or manage_access_sign_in over MCP ends one: its tokens stop working on every Ingress Node within seconds. Both need acl:edit. Blocking or deleting an Opfield account, or changing its password, ends its sessions too.

Ingress Nodes check every request themselves, so access keeps working while Opfield is unreachable; a new sign-in needs Opfield. A list of IP rules and basic authentication only is rendered as nginx allow, deny, and auth_basic, so it also works while the Node’s nginx daemon is down, including on custom templates. Every other list is checked by the nginx daemon. Until a Node’s nginx daemon is updated to 2.13.1, it refuses Routes and Pages previews with such lists.

REST: /api/access-lists, /api/access-settings, /api/access-identity-providers, /api/access-service-tokens, and /api/access-sessions. MCP and the assistant: list_access_lists, create_access_list, manage_access_list, delete_access_list, and manage_access_sign_in. The earlier fields ipRules, basicAuthEnabled, and basicAuthUsers are still accepted on their own, are converted, and are still present in responses. A body that mixes them with the sign-in fields is refused.

  1. Define the smallest audience: who signs in and how, which addresses skip sign-in, and who is excluded.
  2. Use basic authentication or a service token for scripts, and only when the client can protect and rotate the credential.
  3. Attach the list to a test Route or a low-risk hostname first.
  4. Verify one allowed and one denied client from outside the nginx host.
  5. Review nginx access logs to confirm the decision came from the intended policy.
  6. Attach the policy to additional Routes only after the test is conclusive.

Changing a reusable Access List affects every attached Route. Before editing shared policy, inspect its relationships and create a separate list when one application needs a different boundary.

Before enabling maintenance mode:

  • confirm that the Route is managed and enabled;
  • record the current health state and active deployment;
  • publish a status-page incident when customers are expected to notice;
  • ensure operators retain an administrative path that is not blocked by the application Route;
  • decide which verification proves the maintenance task is complete.

A Route that belongs to an app can also be put into maintenance by its environment or by the whole app. That maintenance is added on top of the Route’s own switch, which keeps its value and applies again when the environment or app maintenance ends; the Route’s page shows where its maintenance comes from. A maintenance access code issued for an environment or the app opens each of its Routes in maintenance once.

Opfield keeps the virtual host and TLS behavior in place while returning 503. This makes monitoring and customer communication explicit and avoids DNS or certificate churn.

  1. Verify the upstream directly or through its managed health check.
  2. Confirm database bindings, migrations, and dependent services are ready.
  3. Disable maintenance mode.
  4. Make an external request over the canonical hostname.
  5. Verify status code, expected body, TLS, redirects, and WebSocket behavior where applicable.
  6. Resolve the status-page incident only after the external check succeeds.

If the Route remains unavailable, re-enable maintenance rather than repeatedly toggling unrelated settings. Use Ingress troubleshooting to identify the failed layer.

Document whether the list is intended to restrict an administrative surface, a private customer endpoint, or an entire public application. Mixed allow and deny rules are easy to misread during an incident, so keep the policy small and name it for the audience it protects. Test the effective client address seen by nginx, especially when requests arrive through a CDN or another trusted proxy, and set the Route’s Client IP accordingly; testing only the apparent browser address can validate the wrong rule.

Basic authentication supplements network policy but does not replace TLS. Use it only on HTTPS Routes, store the generated credential through the supported secret path, and deliver it outside application logs or tickets. Removing a user from a shared credential requires rotating that credential for every remaining user; use separate lists when independent revocation is important.

Before editing a shared Access List, record every attached Route and the current behavior for an allowed and denied request. Make the change once, wait for nginx acknowledgement, and repeat both tests. If validation or apply fails, retain the last acknowledged policy and correct the new revision rather than detaching access control from production Routes.

An Access List can lock operators out of an application, but it should not block the Opfield administration path unless that path was deliberately placed behind the same policy. If all expected clients are denied, verify the source address observed in access logs and the trusted-proxy configuration before broadening the allow range.

When immediate service restoration is required, restore the previous known-good list or attach a narrowly scoped emergency list with a short operational lifetime. Do not replace it with unrestricted public access unless the incident owner explicitly accepts that exposure. After recovery, remove temporary rules, rotate emergency credentials, and verify every Route that shared the original list.