Allow unconfigured computed metadata in Terraform bundle plans #125
No reviewers
Labels
No labels
app-migration
bug
ci-cd
cluster
Documentation
duplicate
enhancement
gpu
invalid
networking
question
security
Storage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Homelab/workflows!125
Loading…
Reference in a new issue
No description provided.
Delete branch "kiyi/terraform-computed-kv-metadata"
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?
Terraform run 105 rejects Core record adoption because Vault 5.12 plans omitted
custom_metadataas unknown. That block is Optional+Computed in the pinned provider source. The existing module supplies no metadata block.Allow the exact computed
truemarker only for declared bundle KV records when their owned record resource has nocustom_metadataexpression in the exported configuration. Missing or malformed configuration fails closed. Concrete metadata blocks, configured expressions, all other unknown control fields, deletion/replacement, secret persistence and imports remain rejected. Plan hashing retains the metadata marker and full configuration. No caller, status name, OpenBao permission or secret is changed.Validation: all 58 Terraform delivery/OpenBao/catalog/bootstrap tests pass. An isolated Terraform 1.16.5 test with the actual Vault 5.12 provider and synthetic data reproduced
custom_metadata: truewithout contacting a live API or applying resources; its exported resource change passes the corrected validator. Regression tests reject configured metadata and other unknown fields and prove the marker stays bound to the plan fingerprint. Native Gitleaks 8.30.1 and git diff --check pass. Hosted acceptance requires a reviewed workflow release promoted to stable-v1, followed by the same owning plan operation.Reviewed the exact head's Terraform plan validator and regression cases. The exception is restricted to declared bundle KV records, the exact
custom_metadata: trueunknown marker, and a single managed owned resource whose exported configuration omits the metadata expression; absent/malformed configuration fails closed. Existing guards still reject concrete metadata, other unknown control fields, imports, deletions/replacements, and persisted secret data; the complete plan including this marker remains fingerprinted. Verified Vault provider v5.12.0 declares custom_metadata Optional+Computed. This change is Terraform/OpenBao bundle-plan validation, not a UDS deployment, policy/admission, or routing-resource change. Source approval only: Workflow acceptance, Repository security, and Library checks were pending when reviewed; they must pass for merge, and a released stable-v1 workflow plus the owning plan operation remains separately unverified. I did not run tests locally or perform a live plan/apply.CI at submission: pending. This is a source-review approval, not a scan verdict; required checks still block merge.