Omit empty tune block on remaining auth backends #178

Merged
benvin merged 1 commits from benvin/auth-tune-conditional into master 2026-11-14 19:02:10 +11:00
Member

terraform-provider-vault 5.6.0 panics in expandAuthMethodTune when an auth backend gets a tune block whose values are all null. #176 fixed the JWT backend; the approle, kubernetes, ldap and oidc backends still render tune unconditionally, so any mount of theirs without tune values crashes plan.

  • Render tune via a dynamic block only when at least one tune value is set; values pass through unchanged
  • Add tofu tests per module covering the unset and set cases
  • Run the new module tests from make test and the tofu-module-tests hook
terraform-provider-vault 5.6.0 panics in expandAuthMethodTune when an auth backend gets a tune block whose values are all null. #176 fixed the JWT backend; the approle, kubernetes, ldap and oidc backends still render tune unconditionally, so any mount of theirs without tune values crashes plan. - Render tune via a dynamic block only when at least one tune value is set; values pass through unchanged - Add tofu tests per module covering the unset and set cases - Run the new module tests from make test and the tofu-module-tests hook
unkin-agent added 1 commit 2026-11-14 18:20:01 +11:00
Omit empty tune block on remaining auth backends
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
e8b03298a0
Author
Member

No findings.

No findings.
benvin merged commit 5245bcdc29 into master 2026-11-14 19:02:10 +11:00
benvin deleted branch benvin/auth-tune-conditional 2026-11-14 19:02:10 +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#178