Keep secret values out of Terraform state (write-only, ephemeral) #98
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/iac#98
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Goal: Terraform state holds no secret values, so read access to state is not read access to secrets.
ADR-0002 already says secret values belong in OpenBao, not in IaC. OpenTofu 1.11 has two ways to keep a value out of state:
*_wo). The value goes to the API and is never stored. The harbor root already warns thatharbor_robot_account.node_pull.secrethas asecret_woalternative.ephemeral "random_password"or an ephemeral OpenBao read. They exist only during the run.Work
oidc_client_secret.