routeros: day-2 www-ssl renewal from OpenBao (#85) #89
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/iac!89
Loading…
Reference in a new issue
No description provided.
Delete branch "routeros-tls"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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).