routeros: day-2 www-ssl renewal from OpenBao (#85) #89

Merged
ginjiruu merged 1 commit from routeros-tls into master 2026-11-14 20:50:02 +00:00
Owner

Refs #85

routeros/modules/router/tls.tf: optional var.tls. vault_pki_secret_backend_cert (pki-net-caosh/routeros, auto_renew, min_seconds_remaining) -> routeros_system_certificate import (name from cert hash, create_before_destroy) -> routeros_ip_service www-ssl. Sim root wires it to the harness OpenBao.

Tested on the lab (routeros/sim/renewal-test.sh): 10-minute certs; plan clean right after; ~75s later an unedited plan shows the renewal; apply rotates (new serial served, verified against the lab root, old cert removed, provider connection uninterrupted); plan clean after; restored 90-day certs, plan clean.

Findings: RouterOS silently skips importing an already-installed cert, so the intermediates stay bootstrap-owned (documented in tls.tf). A ttl change alone does not re-issue (in-place state update).

Refs #85 routeros/modules/router/tls.tf: optional var.tls. vault_pki_secret_backend_cert (pki-net-caosh/routeros, auto_renew, min_seconds_remaining) -> routeros_system_certificate import (name from cert hash, create_before_destroy) -> routeros_ip_service www-ssl. Sim root wires it to the harness OpenBao. Tested on the lab (routeros/sim/renewal-test.sh): 10-minute certs; plan clean right after; ~75s later an unedited plan shows the renewal; apply rotates (new serial served, verified against the lab root, old cert removed, provider connection uninterrupted); plan clean after; restored 90-day certs, plan clean. Findings: RouterOS silently skips importing an already-installed cert, so the intermediates stay bootstrap-owned (documented in tls.tf). A ttl change alone does not re-issue (in-place state update).
ginjiruu merged commit 257b5b675e into master 2026-11-14 20:50:02 +00:00
ginjiruu deleted branch routeros-tls 2026-11-14 20:50:02 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/iac!89
No description provided.