nixos: comin deploys only signed commits
All checks were successful
nixos / nixos (push) Successful in 20s

The head of main must carry the admin's GPG signature or Renovate's SSH
signature (nixos/keys), so write access to the repository alone, such
as renovate-bot's API token, no longer reaches root on the hosts.

comin skips an unsigned head without a metric of its own, so a timer
exports whether the head is signed and whether it still waits for
evaluation; both alert.

Assisted-by: Claude:opus-5-5
This commit is contained in:
Sergei Poljanski 2026-11-17 11:54:15 +04:00
commit 0137dec4fb
Signed by: asxpi
GPG key ID: 4F8851660FA4121B

View file

@ -198,6 +198,38 @@ groups:
for: 15m
labels: { severity: warning }
annotations: { summary: "{{ $labels.host }}: {{ $labels.__name__ }} (comin status on the host)" }
- uid: deploy-unsigned
title: "Deploy waiting: main not signed"
condition: C
data:
- refId: A
relativeTimeRange: { from: 900, to: 0 }
datasourceUid: prometheus
model: { refId: A, expr: "comin_main_signed", instant: true, intervalMs: 30000, maxDataPoints: 43200 }
- refId: C
datasourceUid: __expr__
model: { refId: C, type: threshold, expression: A, conditions: [ { evaluator: { type: lt, params: [1] } } ] }
noDataState: OK
execErrState: Error
for: 5m
labels: { severity: warning }
annotations: { summary: "{{ $labels.host }}: the head of main is not signed by a trusted key; comin skips it. Push a signed commit on top (or fast-forward merge Renovate's)." }
- uid: deploy-pending
title: "Deploy waiting"
condition: C
data:
- refId: A
relativeTimeRange: { from: 900, to: 0 }
datasourceUid: prometheus
model: { refId: A, expr: "comin_main_pending", instant: true, intervalMs: 30000, maxDataPoints: 43200 }
- refId: C
datasourceUid: __expr__
model: { refId: C, type: threshold, expression: A, conditions: [ { evaluator: { type: gt, params: [0] } } ] }
noDataState: OK
execErrState: Error
for: 30m
labels: { severity: warning }
annotations: { summary: "{{ $labels.host }}: main has a commit comin has not evaluated for 30 minutes (comin status on the host)" }
- uid: replica-stale
title: "Bucket replica stale"
condition: C