Harden seed modules: ignore_changes on rancher/litellm engine seed credentials #107

Open
opened 2026-08-02 16:24:32 +10:00 by unkinben · 0 comments
Owner

Problem
The gitea engine's seed module was fixed to consume the seeded admin credential only at create time (lifecycle ignore_changes), so rotate-root cannot be clobbered by a re-apply. The rancher and litellm seed modules have the same shape but LACK ignore_changes — a re-apply would push the stale seed back over rotated live credentials.

Proposal

  • add lifecycle ignore_changes on the seeded credential attributes of the rancher and litellm secret-engine config resources (mirror the gitea engine fix)

Acceptance

  • a re-apply after rotate-root does not revert the rancher/litellm engine admin credentials; plan shows no drift on the seed.
**Problem** The gitea engine's seed module was fixed to consume the seeded admin credential only at create time (lifecycle ignore_changes), so rotate-root cannot be clobbered by a re-apply. The rancher and litellm seed modules have the same shape but LACK ignore_changes — a re-apply would push the stale seed back over rotated live credentials. **Proposal** - add lifecycle ignore_changes on the seeded credential attributes of the rancher and litellm secret-engine config resources (mirror the gitea engine fix) **Acceptance** - a re-apply after rotate-root does not revert the rancher/litellm engine admin credentials; plan shows no drift on the seed.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/terraform-vault#107