Skip to content

Ownership ACLs, Multi-Approval Quorums, and Verified Identity

Faber enforces per-policy and per-action ownership access control lists (OwnerACLConfig), two-person separation of duties (requireDistinctApprover), multi-approver quorums (minApprovals), and opt-in Kubernetes admission protection (ValidatingAdmissionPolicy) so only authorized owners can trigger, cancel, approve, or reject sensitive remediation runs.

Ownership ACLs evaluate against a verified caller identity (username or email plus group memberships). Configure one of three identity sources:

Source Configuration Verified Principal
OIDC JWT --auth-mode=oidc (auth.mode=oidc) Claim from --oidc-username-claim (default email, fallback sub) and groups claim.
Kubernetes Token --auth-mode=k8s (auth.mode=k8s) TokenReview username and groups, paired with SubjectAccessReview on mutations.
Trusted Reverse Proxy --auth-mode=none plus --trusted-proxy-user-header (auth.trustedProxy.*) HTTP request headers injected by an upstream authenticating proxy such as Authelia, Authentik, Pomerium, or Tailscale.

If you terminate authentication at an upstream reverse proxy instead of using native OIDC or Kubernetes bearer tokens, keep auth.mode=none and tell Faber which headers carry the authenticated user and comma-separated groups:

Terminal window
helm upgrade --install faber oci://ghcr.io/faberops/charts/faber \
--version 2.0.0 \
--namespace faber \
--set auth.trustedProxy.userHeader=Remote-User \
--set auth.trustedProxy.groupsHeader=Remote-Groups
  • When auth.trustedProxy.userHeader is set, Faber extracts the caller’s subject (and sets email if it contains @) plus comma-separated groups from auth.trustedProxy.groupsHeader.
  • GET /api/v1/whoami reports "authMode": "trusted-proxy", "authenticated": true, "trustedProxy": true, subject, and groups.
  • Mutating HTTP requests (POST, PUT, PATCH, DELETE) on authenticated routes fail with HTTP 401 (missing trusted proxy user header) if the user header is absent.
  • Network isolation requirement: Only enable auth.trustedProxy.* when the controller HTTP port (controller.apiPort) is reachable exclusively through your trusted ingress proxy. Never expose the controller Service directly to untrusted pods or networks that could forge proxy headers.

OwnerACLConfig is supported in three places:

  • PolicyTemplate.spec.owners: organization-wide default owners for policies using that template.
  • MaintenancePolicy.spec.owners: policy-level owners governing manual trigger, run cancellation, approval, and rejection.
  • ActionProfile.spec.approvers: approver rules and quorum requirements for WaitingApproval runs using that ActionProfile.
apiVersion: faberops.dev/v1alpha1
kind: ActionProfile
metadata:
name: production-quorum-approvers
namespace: faber
spec:
trustMode: HITL
openPR:
draft: false
autoMerge: false
commentOnPR: true
approvers:
users:
groups:
- platform-oncall
- sre-leads
requireDistinctApprover: true
minApprovals: 2

See the runnable sample manifest at config/samples/trustpolicy-default.yaml.

Field Default Description
users [] Authorized usernames or email addresses (up to 50 entries). Matched against the verified principal’s subject or email.
groups [] Authorized group or team names (up to 50 entries). Matched against the verified principal’s groups.
requireDistinctApprover false Rejects approval if the approving actor matches the user who triggered the run (triggeredBy).
minApprovals 1 (at runtime) Minimum number of distinct verified approvals required (1 to 5) before a WaitingApproval run resumes execution.

When a MaintenancePolicy references a PolicyTemplate and one or more ActionProfile resources, Faber merges OwnerACLConfig deterministically:

  1. Template and Policy: PolicyTemplate.spec.owners and MaintenancePolicy.spec.owners union their users and groups. requireDistinctApprover is combined with logical OR. A positive minApprovals on MaintenancePolicy.spec.owners overrides the template’s minApprovals.
  2. ActionProfile narrowing: If an effective ActionProfile.spec.approvers lists non-empty users or groups, those subjects replace the policy subject list for approval decisions so high-risk actions can narrow approvers to a smaller team. requireDistinctApprover is combined with logical OR, and minApprovals takes the maximum across the resolved layers so an ActionProfile can raise the quorum floor without lowering it.
  3. Fail-closed unauthenticated check: Whenever an effective ACL declares at least one user or group, unauthenticated requests (or missing trusted proxy headers) are denied with HTTP 403 (unauthenticated). Policies with no users and no groups keep backward-compatible open behavior unless restricted by --auth-mode.

Separation of Duties and Multi-Approval Quorums

Section titled “Separation of Duties and Multi-Approval Quorums”

Distinct Approver (requireDistinctApprover: true)

Section titled “Distinct Approver (requireDistinctApprover: true)”

When requireDistinctApprover is enabled, Faber compares the approving principal (subject, email, and resolved actor) case-insensitively against the identity that triggered the run (triggeredBy). Self-approval fails with HTTP 403 and logs an authz.denied audit event with reason distinct_approver_required.

Multi-Approval Quorum (minApprovals: 2..5)

Section titled “Multi-Approval Quorum (minApprovals: 2..5)”

When minApprovals is greater than 1:

  1. Atomic vote recording: Each verified POST /api/v1/runs/{id}/approve call (or faberctl runs approve or kubectl annotate) records one vote through an atomic compare-and-swap (RecordApprovalVote) in SQLite or PostgreSQL.
  2. Duplicate vote rejection: If the same actor attempts to approve twice, Faber returns HTTP 409 Conflict with "alreadyVoted": true and leaves the vote count unchanged.
  3. Pending quorum progress: While collected votes are below requiredApprovals, the run stays in WaitingApproval, updates RemediationRun.status.approval.requiredApprovals and status.approval.approvals[] (actor, decidedAt, comment), and streams a pendingQuorum update over SSE to the Web UI.
  4. Quorum met: The winning vote that reaches requiredApprovals transitions the checkpoint to Approved, writes the approval.decided audit event, and wakes RemediationRunReconciler to resume execution without extra LLM calls.
  5. Single rejection stops the run: Any authorized owner rejecting a WaitingApproval run immediately transitions the checkpoint to Rejected and closes the run as Skipped.

Protecting kubectl annotate with ValidatingAdmissionPolicy

Section titled “Protecting kubectl annotate with ValidatingAdmissionPolicy”

Operators can approve a paused run by annotating the RemediationRun CR directly (faberops.dev/approval-decision and faberops.dev/approval-actor). On Kubernetes 1.30+ clusters with admissionregistration.k8s.io/v1 enabled, enable the chart’s opt-in ValidatingAdmissionPolicy so no cluster user can spoof another user’s identity in faberops.dev/approval-actor:

Terminal window
helm upgrade --install faber oci://ghcr.io/faberops/charts/faber \
--version 2.0.0 \
--namespace faber \
--set acl.validatingAdmissionPolicy.enabled=true

What the rendered policy (<fullname>-approval-ownership, validationActions: [Deny]) enforces:

  • Intercepts UPDATE operations on faberops.dev/v1alpha1 remediationruns.
  • Exempts the Faber controller ServiceAccount via matchConditions (request.userInfo.username != "system:serviceaccount:<namespace>:<serviceAccountName>", customizable via acl.validatingAdmissionPolicy.controllerServiceAccount).
  • Whenever a user adds or modifies faberops.dev/approval-decision or faberops.dev/approval-actor, requires faberops.dev/approval-actor to equal the authenticated Kubernetes API username (request.userInfo.username).

Example valid kubectl approval when the policy is enabled:

Terminal window
kubectl -n faber annotate remediationrun fix-ingress-abc12 \
faberops.dev/approval-decision=approved \
faberops.dev/approval-actor="[email protected]" \
faberops.dev/approval-comment="verified diff and rollback plan"

If another user tries to pass faberops.dev/[email protected], kube-apiserver rejects the annotation update with Forbidden before the controller ever sees it.

Every ownership ACL denial writes an immutable authz.denied audit record and increments faber_authz_denied_total{action,reason}:

  • Audit reasons: unauthenticated, not_owner, distinct_approver_required.
  • Tracked actions: trigger, cancel, approve, reject.

Export recent authorization denials with faberctl:

Terminal window
faberctl audit export --type authz.denied --since 24h --format table