monitoring (Update): mktxp reads the active monitoring slot from OpenBao (lab/iac#139) #1720

Merged
ginjiruu merged 2 commits from routeros-monitoring-password into main 2026-11-17 21:32:47 +00:00
Owner

The cluster half of lab/iac#139, reworked to the two-slot design from lab/iac ADR-0011. The earlier ESO generator + PushSecret + runner env version is dropped: it had a login-failure window on every rotation and needed the repos merged in a fixed order.

Changes

  • mktxp-exporter/credentials.yaml: for each device, reads OpenBao secret/routeros-monitoring/<device>/{active,a,b} (read-only for ESO) and renders the active slot's user and password into mktxp's credentials_file. The lab/iac routeros roots write those paths, and only point active at a slot after the router accepts it. The previous slot stays valid for a full period, so mktxp's refresh or restart lag never holds a dead password.
  • mktxp-exporter/deployment.yaml: .started marker and a liveness probe that restarts the container after the credentials Secret changes. mktxp reads its credentials file only at connect. Reloader is scaled to 0 on mini.

Merge order

None. Until the iac roots have applied, the ExternalSecret reports SecretSyncedError and the pod waits, the same as today.

Checks

  • server-side dry run of the monitoring kustomize build passes
  • liveness probe tested earlier against a kubelet-style ..data swap: exits 0 before, 1 after, 0 after the restart
  • not verified live: the ESO template's slot selection, which needs real OpenBao data after the iac apply
The cluster half of lab/iac#139, reworked to the two-slot design from lab/iac ADR-0011. The earlier ESO generator + PushSecret + runner env version is dropped: it had a login-failure window on every rotation and needed the repos merged in a fixed order. ## Changes - `mktxp-exporter/credentials.yaml`: for each device, reads OpenBao `secret/routeros-monitoring/<device>/{active,a,b}` (read-only for ESO) and renders the active slot's user and password into mktxp's `credentials_file`. The lab/iac routeros roots write those paths, and only point `active` at a slot after the router accepts it. The previous slot stays valid for a full period, so mktxp's refresh or restart lag never holds a dead password. - `mktxp-exporter/deployment.yaml`: `.started` marker and a liveness probe that restarts the container after the credentials Secret changes. mktxp reads its credentials file only at connect. Reloader is scaled to 0 on mini. ## Merge order None. Until the iac roots have applied, the ExternalSecret reports SecretSyncedError and the pod waits, the same as today. ## Checks - server-side dry run of the monitoring kustomize build passes - liveness probe tested earlier against a kubelet-style `..data` swap: exits 0 before, 1 after, 0 after the restart - not verified live: the ESO template's slot selection, which needs real OpenBao data after the iac apply
ginjiruu changed title from WIP: routeros (Add): ESO-generated, rotated monitoring passwords (lab/iac#139) to WIP: monitoring (Update): mktxp reads the active monitoring slot from OpenBao (lab/iac#139) 2026-11-17 21:10:20 +00:00
ginjiruu force-pushed routeros-monitoring-password from 3a628ff26a to f9cab0e3b8 2026-11-17 21:10:21 +00:00 Compare
ginjiruu changed title from WIP: monitoring (Update): mktxp reads the active monitoring slot from OpenBao (lab/iac#139) to monitoring (Update): mktxp reads the active monitoring slot from OpenBao (lab/iac#139) 2026-11-17 21:32:46 +00:00
ginjiruu deleted branch routeros-monitoring-password 2026-11-17 21:32:47 +00:00
Sign in to join this conversation.
No description provided.