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.
Verified Caller Identity
Section titled “Verified Caller Identity”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. |
Configuring Trusted Reverse-Proxy Headers
Section titled “Configuring Trusted Reverse-Proxy Headers”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:
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.userHeaderis set, Faber extracts the caller’ssubject(and setsemailif it contains@) plus comma-separatedgroupsfromauth.trustedProxy.groupsHeader. GET /api/v1/whoamireports"authMode": "trusted-proxy","authenticated": true,"trustedProxy": true,subject, andgroups.- Mutating HTTP requests (
POST,PUT,PATCH,DELETE) on authenticated routes fail with HTTP401(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.
Configuring OwnerACLConfig
Section titled “Configuring OwnerACLConfig”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 forWaitingApprovalruns using thatActionProfile.
apiVersion: faberops.dev/v1alpha1kind: ActionProfilemetadata: name: production-quorum-approvers namespace: faberspec: trustMode: HITL openPR: draft: false autoMerge: false commentOnPR: true approvers: users: groups: - platform-oncall - sre-leads requireDistinctApprover: true minApprovals: 2See the runnable sample manifest at config/samples/trustpolicy-default.yaml.
Fields
Section titled “Fields”| 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. |
Resolution and Inheritance Precedence
Section titled “Resolution and Inheritance Precedence”When a MaintenancePolicy references a PolicyTemplate and one or more ActionProfile resources, Faber merges OwnerACLConfig deterministically:
- Template and Policy:
PolicyTemplate.spec.ownersandMaintenancePolicy.spec.ownersunion theirusersandgroups.requireDistinctApproveris combined with logical OR. A positiveminApprovalsonMaintenancePolicy.spec.ownersoverrides the template’sminApprovals. - ActionProfile narrowing: If an effective
ActionProfile.spec.approverslists non-emptyusersorgroups, those subjects replace the policy subject list for approval decisions so high-risk actions can narrow approvers to a smaller team.requireDistinctApproveris combined with logical OR, andminApprovalstakes the maximum across the resolved layers so anActionProfilecan raise the quorum floor without lowering it. - Fail-closed unauthenticated check: Whenever an effective ACL declares at least one
userorgroup, unauthenticated requests (or missing trusted proxy headers) are denied with HTTP403(unauthenticated). Policies with nousersand nogroupskeep 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:
- Atomic vote recording: Each verified
POST /api/v1/runs/{id}/approvecall (orfaberctl runs approveorkubectl annotate) records one vote through an atomic compare-and-swap (RecordApprovalVote) in SQLite or PostgreSQL. - Duplicate vote rejection: If the same actor attempts to approve twice, Faber returns HTTP
409 Conflictwith"alreadyVoted": trueand leaves the vote count unchanged. - Pending quorum progress: While collected votes are below
requiredApprovals, the run stays inWaitingApproval, updatesRemediationRun.status.approval.requiredApprovalsandstatus.approval.approvals[](actor,decidedAt,comment), and streams apendingQuorumupdate over SSE to the Web UI. - Quorum met: The winning vote that reaches
requiredApprovalstransitions the checkpoint toApproved, writes theapproval.decidedaudit event, and wakesRemediationRunReconcilerto resume execution without extra LLM calls. - Single rejection stops the run: Any authorized owner rejecting a
WaitingApprovalrun immediately transitions the checkpoint toRejectedand closes the run asSkipped.
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:
helm upgrade --install faber oci://ghcr.io/faberops/charts/faber \ --version 2.0.0 \ --namespace faber \ --set acl.validatingAdmissionPolicy.enabled=trueWhat the rendered policy (<fullname>-approval-ownership, validationActions: [Deny]) enforces:
- Intercepts
UPDATEoperations onfaberops.dev/v1alpha1remediationruns. - Exempts the Faber controller ServiceAccount via
matchConditions(request.userInfo.username != "system:serviceaccount:<namespace>:<serviceAccountName>", customizable viaacl.validatingAdmissionPolicy.controllerServiceAccount). - Whenever a user adds or modifies
faberops.dev/approval-decisionorfaberops.dev/approval-actor, requiresfaberops.dev/approval-actorto equal the authenticated Kubernetes API username (request.userInfo.username).
Example valid kubectl approval when the policy is enabled:
kubectl -n faber annotate remediationrun fix-ingress-abc12 \ faberops.dev/approval-decision=approved \ 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.
Audit Trail and Metrics
Section titled “Audit Trail and Metrics”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:
faberctl audit export --type authz.denied --since 24h --format table