11.3 Four-eyes approval
Four-eyes approval makes dangerous actions wait for the approval of a second admin. Whoever triggers a protected action changes nothing at first: the server creates a request, and another admin approves or rejects it under Approvals. The feature is off by default.
Turning it on and settings
Under Settings in the Four-eyes authorization section ("dangerous actions wait for a second admin"), an admin sets up the feature:
Option | Effect | Default |
|---|---|---|
Require a second admin for the actions below | Turns the feature on. This works only while at least two enabled admin accounts exist; otherwise the server refuses ( | off |
Protected actions | Selection of the actions that need approval (list below). All are preselected. | all |
Requests expire after (hours) | Validity of an undecided request, 1 to 168 hours. | 24 |
The interface warns if admins have no second factor ("Admins without a second factor: …"). A second factor is strongly recommended for everyone who approves (see section 11.1 Users and roles).
While the feature is on, every weakening itself needs another admin's approval: turning it off, protecting fewer actions, or a longer expiry window. The action "Turn off or weaken four-eyes authorization" is always protected and is added to the selection automatically when missing. If the stored settings cannot be read (damaged or containing unknown fields), the feature counts as on with every action protected until the settings are saved or it is turned off on the server host.
Protected actions
The following table lists all actions that can be protected, with their names in the interface and the operations they intercept.
Action | Intercepted at | Mode |
|---|---|---|
Delete a repository ( | Deleting a repository. | execute |
Release a retention hold ( | Releasing a hold, including a ransomware hold (see section 10.5 Ransomware early warning). | execute |
Reduce the retention of a job or plan ( | Changing a job or plan, a plan assignment, or the defaults for new jobs when the new retention can keep fewer backups (a | execute |
Turn off or weaken four-eyes authorization ( | Turning it off, protecting fewer actions, or a longer expiry window. Always protected while the feature is on. | execute |
Remove an admin (demote, disable) ( | Demoting or disabling an active admin. If fewer than two active admins would remain, the server refuses with | execute |
Add an admin, reset another admin's password ( | Promoting or enabling an admin (execute); creating an account with the role admin and resetting another admin's password (permit). | execute / permit |
Set the DR passphrase (wraps the master key) ( | Setting the DR passphrase. | permit |
Remove or shorten a repository's object lock or hardening ( | Changing a repository so that it removes Object Lock or hardening, shortens their days, or changes Object Lock from | execute |
The mode determines what happens after approval:
execute: The server runs exactly the stored request.
permit: Actions whose input is a secret (DR passphrase, an admin's password) are granted as a one-time permit. The requester repeats the same action (with the same non-secret parameters) exactly once before it expires and then enters the secret personally. The secret never reaches the request.
Approval flow
An admin triggers a protected action. The server answers "approval required" (HTTP 202), changes nothing, and creates a request with a summary, target, requester, and expiry time. If the same admin triggers the same action again while the request is open, the server points to the same request. Each user can have at most 20 open requests.
The request raises the
approval_requestednotification (see section 10.4 Notifications).Under Approvals, admins see the open requests. A different admin chooses Approve… or Reject…. The requester's role is not enough: the requester cannot decide their own requests ("Your own request: another admin decides").
When approving, the Approve request window shows the Parameters of the stored request and asks for Your password and, if set up, the Authenticator code. Someone who signed in through OIDC confirms with the second factor only. Wrong entries are rate limited and recorded in the audit log. Approving and rejecting work only in a session, not with an API token.
When rejecting, a Reason (optional) can be entered.
After approval the server checks the expiry, the seal of the stored request (SHA-256, encrypted with the master key), and the fingerprint of the object taken at request time. Only then does it run exactly the stored operation on behalf of the requester; values sent later are never used. The requester must still be enabled and have the role. If the object has changed or is gone in the meantime, nothing runs (
changed). The server also does not run a stored request that has been altered (integrity).For a permit, the page reports "Approved: … can repeat the action once now". The requester repeats the action once before it expires.
The requester can cancel an open request with Withdraw request, including an approved permit that has not been used yet. A request that was running when the server stopped is marked as failed at the next start and never run again.
The Approvals page
Admins see all requests, other users only their own. The selector Show requests switches between Open, Done, and All. The table shows Requested, By (with the addition API token if the request came through a token), What, Expires, the status, and Decided by. The context menu offers Approve…, Reject…, Withdraw request, Copy request ID, Copy summary, and Copy parameters (JSON).
Status | Meaning |
|---|---|
waiting ( | Waiting for the decision of another admin. |
approved: repeat once ( | Permit granted; the requester repeats the action once. |
running ( | The server is executing the request. |
done ( | Approved and executed. |
failed ( | Approved but not executed: the message gives the reason (for example expired, object changed). |
rejected ( | An admin rejected it. |
withdrawn ( | The requester withdrew it. |
expired ( | Nobody decided within the configured hours. |
Special rules for admin accounts
Additional rules apply to changes to admin accounts so that the approval cannot be bypassed:
The fingerprint of an account change covers role, disabled state, password hash, second factor, and OIDC link. If any of these changes after the request (for example a password), the approval is not executed (
changed).While a request to promote a user to admin is open, the server refuses setting that user's password and resetting their second factor (
promotion_pending).A user whose password an admin set (at creation or by a reset) can become an admin only after changing the password personally (
password_change_required). The admin who last set the password can neither request nor approve the promotion (own_reset); another admin must do that. Accounts from older installations, the first admin, and SSO accounts are exempt.For OIDC accounts the rule for the identity provider also applies (see section 11.2 Sign-in and OIDC).
When only one admin is left
If only one active admin remains, nobody can approve anymore. On the server host, pdc-server four-eyes disable turns the feature off and cancels open requests (with --data-dir if the data directory is not the default). pdc-server four-eyes status shows the state. Both need write access to the data directory (root, or SYSTEM or Administrators) and are recorded in the audit log as local-cli.
Logging
The audit log contains approval.requested, approval.approved, approval.executed, approval.failed, approval.rejected, approval.cancelled, approval.used (permit used), approval.reauth_failed, four_eyes.changed, four_eyes.disabled, four_eyes.disabled_locally, and auth.oidc_role_held. Entries of decided requests name the requester and the approver (see section 11.4 Audit log).