Skip to content

Admins and passkeys

This page covers accounts and security in the console: who can sign in, how identity is verified, which operations need a further verification or a second person’s approval, and the related audit log, alert notifications, API keys and master key.

The first admin account is created on the server from the command line. The password must be at least 12 characters:

Terminal window
FLOWPAY_ADMIN_PASSWORD='…' flowpayra-lite admin create --username ops --role admin

Further accounts can be added in the console under Security & access → Team.

Role Permissions
Admin (admin) Everything, including configuration, payees, keys and accounts
Operator (operator) Day-to-day work: tickets, refunds, booking payments manually, resending webhooks and emails, pausing / resuming / cancelling subscriptions and changing their plans, emergency token pause. Can read configuration
Finance (finance) Read-only, with report export. Email addresses are masked

The console hides or disables what a role may not do, and the server enforces the same rules.

The sign-in flow is described in Overview and orders. An account can register these factors:

Factor Description
Passkey Recommended. Based on WebAuthn and bound to this site’s domain, so it resists phishing. Use requires user verification (fingerprint, face or device password)
Security key A FIDO2 hardware key such as Google Titan or YubiKey. Recommended as a second, backup key. Insert the key and enter its PIN to use it
Authenticator app Google Authenticator or similar, producing 6-digit codes. Available only while the account has no passkey or security key registered
Recovery codes Ten single-use codes, for when every key has been lost

On first sign-in the account has no second factor. Setup must be completed before the console can be used.

  1. Enter a name for the key (for example “Office laptop” or “YubiKey 5”).
  2. Select Add passkey or Add security key and follow the browser’s prompts. Alternatively, expand Use Google Authenticator to set up an authenticator app instead.
  3. Save the ten recovery codes the system generates. They are shown once.

First sign-in: setting up a second factor with a passkey, a security key or Google Authenticator

  • Once a key is registered, entering the username and selecting Continue opens the browser’s key verification. When it passes, the administrator is signed in without a password.
  • A passkey stored on the device or in a password manager can also be used through Sign in with a passkey, without entering a username.
  • Use the password instead remains available: enter the password, then complete the second step with a key or a recovery code.

An authenticator app is available only while the account has no passkey or security key. In that state it is used to sign in and to verify sensitive operations. As soon as a key is registered, the authenticator app is switched off and can no longer be used for sign-in or verification.

When an authenticator app is set up again, the new one stays pending until its code is entered to confirm it; the current one remains in use until then.

  • Each recovery code works once.
  • A sign-in with a recovery code is limited to the Account security page, for setting up a new factor. Sign in again once that is done.
  • Regenerate under Account security issues new codes; the page shows how many are left.

When every key and recovery code is lost, another admin uses Reset factors on the Team page. If no other admin is available, run this on the server to clear all of the account’s factors and force a new setup:

Terminal window
flowpayra-lite admin reset --username ops --new-password

With --new-password the password is reset as well. This needs server access and is the last resort.

An account that is only locked (its factors intact) needs no reset: wait 15 minutes, or sign in with a passkey or security key. With server access, the lock alone can be lifted, keeping factors, sessions and the password:

Terminal window
flowpayra-lite admin unlock --username ops

Select the avatar in the top bar, then Account security, to manage your own:

Item Description
Passkeys and security keys Add or remove keys. Removing a key is verified with another key; at least one factor always remains
Recovery codes See how many are left; regenerate
Password Change the password (at least 12 characters). Changing it signs out the account’s other sessions
Notification email Receives notices when other admins carry out sensitive operations
Sessions The account’s sessions and their sign-in method; other sessions can be signed out
Rule Description
Lockout Five consecutive failures during or after sign-in, across second factor, recovery code and the current password when changing it, lock the account for 15 minutes. While locked, passwords, authenticator codes and recovery codes are refused; passkeys and security keys still sign in and verify. With server access, flowpayra-lite admin unlock --username NAME lifts the lock
Wrong passwords Never lock the account: five wrong passwords for one account name from one IP within 15 minutes pause password sign-in for that name from that IP; 50 from all IPs together pause password sign-in for the name, while passkeys keep working
Rate limit Sign-in requests are refused for a while when one IP has too many unfinished sign-ins or too many recent failures
Session Lasts 12 hours and ends after 30 minutes of inactivity

Step-up verification for sensitive operations

Section titled “Step-up verification for sensitive operations”

For a sensitive operation the system asks the administrator to verify again, with a key or, when no key is registered, with an authenticator code. With a key, the verification is bound to the content of that one operation and can be used only once; it cannot be applied to a different operation.

Operation Verification
Adding or changing a payee address, the split whitelist switch, changing the primary payee, hot wallet withdrawals, approving a request Every time; a payee address also requires typing the last 4 characters of the new address
Creating, editing or archiving a split rule; making one the default Every time
Creating or revoking an API key Every time
Adding or removing a factor, regenerating recovery codes, team changes, the dual approval switch, changing the password or notification email Every time
Exporting or erasing personal data by email Every time
Generating, activating or retiring a quote signer key and related actions; KMS signing backend settings Every time
Deleting all test data Every time
Master key re-encryption Every time
Other configuration: gas modes and sponsorship budgets, webhooks, chain settings, RPC endpoints, adding a chain, contract verification, listing tokens, plans, risk lists and policy, alert channels, mail and receipt settings, manual booking, manual refund confirmation and similar Once; valid for 5 minutes

Every sensitive operation is written to the audit log with the values before and after.

When payee addresses or split rules, the split whitelist switch, API keys, security settings or team membership change, when an approval is requested or handled, on a hot wallet withdrawal, on quote signer key or KMS operations, and on master key re-encryption, the system emails the other enabled admins who have a notification email. The email is sent in the recipient’s language and includes the operation, who performed it, the time, the IP address, the values before and after, and a link to the audit log.

Every admin should set a notification email under Account security.

With dual approval, certain sensitive operations are requested by one admin and take effect only after another admin approves them. It is turned on under Security & access → Approvals and needs at least two enabled admins.

Approvals page: dual approval is on and a payee address change is waiting for approval

  • Changing a payee address
  • Changing the primary payee
  • Turning the split whitelist off (turning it back on takes effect immediately)
  • Hot wallet withdrawals
  • Adding a member, resetting a member’s factors, re-enabling a member and changing a role (disabling a member takes effect immediately)
  • Master key re-encryption
  • Turning dual approval off

Quote signer key rotation does not go through dual approval.

  1. The requester carries out the operation as usual and verifies with their own key. The request then shows as Waiting.
  2. Another admin reviews the change on the Approvals page and selects Approve, verifying with their own key, or Reject.
  3. On approval the change is checked again: addresses are screened again, and a withdrawal’s destination is confirmed to be unchanged.
  4. The audit log records both the requester and the approver.

Rules:

  • A request expires after 24 hours. The requester can cancel it.
  • An approver must have been an enabled admin with a security key since before the request was submitted.
  • An admin cannot approve a request that concerns their own account.

Security & access → Team lists the accounts that can sign in, with their role, second factor, last sign-in and status. Only admins can manage accounts, and every change requires step-up verification.

Team page: accounts, roles, second factor, last sign-in and status, with actions to disable an account or reset its factors

Action Description
Add admin Enter a username and a role. The system generates a temporary password, shown once, to be handed over through a separate channel
Change role Choose the new role in the role column
Disable Ends all of the account’s sessions at once
Enable Re-enables a disabled account
Reset factors Removes every key, authenticator and session of the account and sets a new temporary password
  • At first sign-in a new member sets up a second factor, then changes the password under Account security.
  • Admins cannot change their own account here.
  • At least one enabled admin always remains.

With dual approval on, the temporary password produced when adding a member or resetting factors is split in two. The requester sees part 1 on submitting, and the approver sees part 2 on approving; each is shown once and neither is stored. The member signs in with part 1 followed by part 2, with no space in between. Neither admin can sign in to the new account alone.

Security & access → Audit log records sign-ins and every sensitive operation with the time, actor, action, target and IP address. Expanding an entry shows the values before and after. Entries can be filtered by actor, action and date range, or searched by action, target or admin.

Audit log: time, actor, action, target and IP address

Writes made through the business API (for example to risk lists) and report exports are recorded in the audit log as well.

System alerts appear on the overview page and are managed in one place under Risk → Alert center. The page holds recent alerts, the delivery log, channels, and routing with thresholds.

Channel Configuration
Email A set of recipient addresses, up to 20
Telegram Bot token and chat ID; optionally a self-hosted Bot API server
Slack Incoming webhook URL
Webhook Endpoint URL and signing secret. The system sends a JSON POST signed in the FlowPay-Signature header, using the same scheme as business webhooks. If the secret is left blank, one is generated and shown once
Merchant notice address (built-in) The ticket notification email, or the support email when that is not set
  • Channel credentials are stored encrypted and shown only as hints. Adding or changing a channel requires step-up verification and is written to the audit log.
  • Send test checks that a channel can be reached.
  • The email channel depends on the mail server settings on the Receipts & email page.

Routing decides which channels each type of alert goes to:

  • One or more channels can be ticked per event type.
  • Events set to Follow default use the default row’s settings, as do event types added in future.
  • The default route delivers to the merchant notice address only.
  • Events with no channel ticked are only recorded in the console.

Alert center routing: the channels for each alert type, and the threshold for the subscription charge failure rate

Category Alerts
Infrastructure All RPC endpoints of a chain unavailable, hot wallet balance low, WalletConnect relay unavailable, reconciliation recovered missing events
Payments and splits Payee address blocked, on-chain splits differ from the quote, duplicate payment
Tokens Stablecoin price off its peg, price feed stale or unreadable, token under emergency pause, implementation of a custom token changed
Risk Payer address refused by risk screening, risky payment booked and flagged for review, risky payment frozen, OFAC import failed, feed import failed, third-party provider unavailable
Subscriptions Charge failure rate above the threshold, subscription charging stalled, on-chain charge after cancellation, charge on a replaced payment method, on-chain cancellation failed
Keys and approvals Quote signer key rotated, signer address in the contracts differs from the record, unquoted payment received by a retired key’s contracts, quote signer key unable to sign, an operation waiting for another admin’s approval
Email Address suppressed after repeated bounces

Thresholds sets the failure rate, window and minimum number of charges for the subscription charge failure rate alert.

  • A lasting alert notifies once when it opens and once when it resolves. Repeated events for the same subject notify once a day.
  • Failed deliveries are retried with backoff for about a day. Those that finally fail can be resent from the delivery log.
  • Every alert is also sent to the business webhook as a system.<kind> event, independent of channels and routing; see Webhooks.
  • Alerts that concern test data or testnets are labelled as test data and go to the test webhook only, not to the alert channels.

The business system calls the business API with an API key. Keys are managed under Developers → API keys. Creating and revoking a key requires the admin role and step-up verification.

  1. Select Create API key.
  2. Enter a name that tells keys apart, such as “Website” or “ERP”.
  3. Choose the mode:
    • Live: creates real orders that collect real funds. The key starts with fpk_live_.
    • Test: creates test data only; payments use testnets. The key starts with fpk_test_.
  4. Tick the scopes.
  5. Create the key and complete step-up verification. The full key is shown once: copy it immediately and keep it safe.
Scope Description
orders:write Create orders through the API
orders:read Read orders, payments and splits
subscriptions:write Create, pause, resume and cancel subscriptions
subscriptions:read Read subscriptions and their charges
events:read Fetch events (GET /v1/events) to catch up on missed webhooks
risk:read Read the risk address list
risk:write Add and remove addresses on the risk list

A request that lacks the required scope returns 403 insufficient_scope.

The business system calls the API with this header:

Authorization: Bearer <API key>

Select the revoke action in the list and confirm. Systems using the key lose API access at once, and this cannot be undone. The list is divided into Active and Revoked and shows each key’s prefix, scopes, last use and creation time.

For integration steps see the Integration guide; for test keys see Test mode (Sandbox).

The master key encrypts sensitive content in the database: RPC endpoint URLs, webhook signing secrets, authenticator seeds, payer and admin email addresses, mail provider and SMTP credentials, the bounce notification URL’s secret, third-party provider credentials, alert channel configuration, KMS connection credentials and quote signer private keys. The master key lives only in the server configuration (secrets.master_key) and is never written to the database.

Security & access → Master key shows the loaded master keys with their fingerprints, how many values each location holds under each key, and the progress of re-encryption. A fingerprint is a 16-character hexadecimal identifier of a master key, used to check the configuration; the key cannot be recovered from it.

Master key page: loaded keys and fingerprints, re-encryption, and the distribution of encrypted data

  1. Under Rotate the master key, select Generate a new master key. The key is generated in the browser, is never sent to the server, and is shown once: save it immediately. It can also be generated on the server with flowpayra-lite secrets keygen.
  2. Change the server configuration: set the new key as secrets.master_key and move the previous key into secrets.previous_master_keys. From then on the previous key only decrypts.
  3. Restart every instance with the new configuration.
  4. Return to the Master key page, confirm that the current fingerprint is the new key’s, select Re-encrypt under the current key and complete step-up verification. With dual approval on, it runs after another admin approves.
  5. Re-encryption runs in batches in the background and continues after a restart. The system keeps operating normally meanwhile.
  6. When the page reports that the previous key is no longer used, remove it from secrets.previous_master_keys and restart.
[secrets]
master_key = "<new master key>"
previous_master_keys = ["<previous master key>"]
  • Re-encryption requires the admin role, is written to the audit log, and notifies other admins.
  • Back up a new master key offline as soon as it is generated. Keep the offline copy of a previous key until the oldest database backup that might still be restored has expired.
  • If the page reports values encrypted under a key that is not configured, add the key with that fingerprint to secrets.previous_master_keys and restart to make them readable.
  • Command-line equivalents: flowpayra-lite secrets status, secrets keygen and secrets reencrypt.

For rotating quote signer keys, see Chains, tokens and merchant contracts.