feat: HashiCorp Vault base integration (Token auth, KV v2, Get Secret)#4135
feat: HashiCorp Vault base integration (Token auth, KV v2, Get Secret)#4135marko00djokic wants to merge 8 commits intosuperplanehq:mainfrom
Conversation
|
👋 Commands for maintainers:
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 528a88a. Configure here.
| .idea/ | ||
| .agents/ | ||
| .worktrees/ No newline at end of file | ||
| .worktrees/.worktrees/ |
There was a problem hiding this comment.
Gitignore entry corrupted by accidental path duplication
Medium Severity
The .worktrees/ gitignore entry was accidentally changed to .worktrees/.worktrees/. This means the top-level .worktrees/ directory is no longer ignored by git, which could cause worktree metadata files to be tracked and accidentally committed. This change is unrelated to the HashiCorp Vault integration and appears to be an accidental edit.
Reviewed by Cursor Bugbot for commit 528a88a. Configure here.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Marko Đokić <96503127+kameleon1808@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Marko Đokić <96503127+kameleon1808@users.noreply.github.com>
Signed-off-by: Marko Đokić <96503127+kameleon1808@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Marko Đokić <96503127+kameleon1808@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Marko Đokić <96503127+kameleon1808@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Marko Đokić <96503127+kameleon1808@users.noreply.github.com>
Signed-off-by: Marko Đokić <96503127+kameleon1808@users.noreply.github.com>
Signed-off-by: Marko Đokić <96503127+kameleon1808@users.noreply.github.com>
528a88a to
7ab54dd
Compare
|
Hi @marko00djokic, I've also started working on this integration on my side, since I was the one who requested it. For my part, I added a trigger to detect changes to secrets. |


Closes #3928
Summary
pkg/integrations/hashicorp_vault/— new integration package for HashiCorp VaultX-Vault-Tokenheader); optional Enterprise namespace viaX-Vault-NamespaceSync(): callsGET /v1/auth/token/lookup-selfto verify credentials and mark integration readyGet Secretcomponent: reads a KV v2 secret (GET /v1/<mount>/data/<path>); optionally extracts a single key via thekeyconfig field; emitshashicorp_vault.secretpayload on the default output channelpkg/server/server.go(alphabetically betweenharnessandhetzner)Configuration
baseURLhttps://vault.example.comtokenhvs.…ors.…)namespaceGet Secret component inputs
mountsecretpathmyapp/dbkeyvalueTest plan
vault_test.go—TestSync_Success,TestSync_InvalidToken,TestSync_MissingToken,TestSync_MissingBaseURL,TestSync_WithNamespaceget_secret_test.go—TestGetSecret_Execute_AllData,TestGetSecret_Execute_SpecificKey,TestGetSecret_Execute_KeyNotFound,TestGetSecret_Execute_APIError,TestGetSecret_Setup_MissingPath,TestGetSecret_Execute_DefaultMount