Skip to content

feat(wsl): add enpass-cli package and load-tf-secrets function#108

Merged
wpfleger96 merged 4 commits into
mainfrom
wpfleger/load-tf-secrets
Jun 22, 2026
Merged

feat(wsl): add enpass-cli package and load-tf-secrets function#108
wpfleger96 merged 4 commits into
mainfrom
wpfleger/load-tf-secrets

Conversation

@wpfleger96

@wpfleger96 wpfleger96 commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Adds enpass-cli as a managed WSL package and a load-tf-secrets shell function for loading homelabconfigs Terraform secrets from an Enpass vault into the current shell session.

enpass-cli is installed from upstream GitHub releases (hazcod/enpass-cli) via the script method — downloads the latest linux_amd64 zip, extracts the binary, and places it in ~/.local/bin/enpass-cli. Marked wsl_only since the Enpass vault lives on the Windows filesystem.

  • load-tf-secrets prompts for the master password once, exports MASTERPW, runs all 11 enpass-cli -nonInteractive invocations, then unsets it
  • Covers all 11 root-level TF_VAR_* secrets across homelab/Proxmox (5), AWS (1), GCP (4), and Cloudflare (1) stacks
  • ENPASS_VAULT_PATH exported as WSL default pointing at the primary vault directory
  • Depends on the env command merged in hazcod/enpass-cli#158 (shipped in v1.12.0)

https://claude.ai/code/session_01Lr7gquKQVPezfc8NvN39q8

Loads homelabconfigs Terraform secrets from Enpass vault via enpass-cli
env command. Entry titles and field labels are placeholders pending
user configuration.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>

Claude-Session: https://claude.ai/code/session_01Lr7gquKQVPezfc8NvN39q8
The load-tf-secrets function depends on enpass-cli being available.
Install it from upstream GitHub releases rather than requiring a manual
build from the fork.

Claude-Session: https://claude.ai/code/session_01Lr7gquKQVPezfc8NvN39q8
@wpfleger96 wpfleger96 changed the title feat(wsl): add load-tf-secrets function for Terraform secret injection feat(wsl): add enpass-cli package and load-tf-secrets function Jun 22, 2026
enpass-cli requires all flags (-vault, -nonInteractive, -field) before
the subcommand. The entry-title and field-label arguments were also
swapped.

Claude-Session: https://claude.ai/code/session_01Lr7gquKQVPezfc8NvN39q8
@wpfleger96
wpfleger96 merged commit 6a2aa81 into main Jun 22, 2026
7 checks passed
@wpfleger96
wpfleger96 deleted the wpfleger/load-tf-secrets branch June 22, 2026 22:30
wpfleger96 pushed a commit that referenced this pull request Jun 22, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.57.0](v0.56.0...v0.57.0)
(2026-06-22)


### Features

* **wsl:** add enpass-cli package and load-tf-secrets function
([#108](#108))
([6a2aa81](6a2aa81))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: wpfleger-release-bot[bot] <282999489+wpfleger-release-bot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant