Move Terraform password from node.tfvars to environment variable #24
Labels
No labels
Monitoring
automation
bug
duplicate
feature
forgejo
help wanted
invalid
k3s
keycloak
ldap
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lab/homelab#24
Loading…
Add table
Add a link
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?
Problem
node.tfvarscontainsproxmox_passworddirectly. While the committed value is not the real password, the pattern is risky — if someone puts a real password here, it gets committed.Solution
Remove
proxmox_passwordfromnode.tfvarsand read it fromTF_VAR_proxmox_passwordenvironment variable instead. The variable is already declared assensitive = trueinvariables.tf.Steps
proxmox_passwordline fromterraform/node.tfvars.env:export TF_VAR_proxmox_password=...terraform/setup.mdthat password must be set via env varterraform planto verify it still works