Omit empty tune block on JWT auth backends #176

Merged
benvin merged 1 commits from benvin/fix-jwt-backend-tune into master 2026-11-10 23:36:34 +11:00
Member

The GitHub Actions JWT mount sets no tune values, so the module rendered an all-null tune {} that crashes hashicorp/vault 5.6.0 in expandAuthMethodTune after the mount is enabled, leaving jwt/github/iuclabs live but outside state.

  • Render the tune block on JWT auth backends only when a tune value is set
  • Import jwt/github/iuclabs into state so the next apply converges instead of hitting "path is already in use"
  • Add a tofu test for tune rendering and run it in make test and pre-commit
The GitHub Actions JWT mount sets no tune values, so the module rendered an all-null `tune {}` that crashes hashicorp/vault 5.6.0 in `expandAuthMethodTune` after the mount is enabled, leaving `jwt/github/iuclabs` live but outside state. - Render the `tune` block on JWT auth backends only when a tune value is set - Import `jwt/github/iuclabs` into state so the next apply converges instead of hitting "path is already in use" - Add a tofu test for tune rendering and run it in `make test` and pre-commit
unkin-agent added 1 commit 2026-11-10 23:32:47 +11:00
Omit empty tune block on JWT auth backends and import the orphaned mount
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
a7dc1e9d25
Author
Member

No findings.

No findings.
benvin merged commit fbd161ccf0 into master 2026-11-10 23:36:34 +11:00
benvin deleted branch benvin/fix-jwt-backend-tune 2026-11-10 23:36:34 +11:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/terraform-vault#176