Skip to content

feat(secretstores.vault): Add plugin - #17844

Merged
skartikey merged 12 commits into
influxdata:masterfrom
mstrandboge:feat/vault-secret-store
Nov 28, 2025
Merged

feat(secretstores.vault): Add plugin#17844
skartikey merged 12 commits into
influxdata:masterfrom
mstrandboge:feat/vault-secret-store

Conversation

@mstrandboge

@mstrandboge mstrandboge commented Oct 17, 2025

Copy link
Copy Markdown
Contributor

Summary

Adds a new secret store plugin for HashiCorp Vault.

Currently supports the KV v1 and v2 secret engines.

Currently supports the AppRole authentication method, including from ID, from env var, from file, and response wrapping for the secret ID.

I hope to expand support for both engines and authentication methods in the future, though I felt like this was a good starting point for the plugin.

Checklist

  • No AI generated code was used in this PR

Related issues

resolves #17479

@mstrandboge mstrandboge self-assigned this Oct 17, 2025
@telegraf-tiger telegraf-tiger Bot added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Oct 17, 2025
@mstrandboge
mstrandboge force-pushed the feat/vault-secret-store branch from 401e9d9 to 1d8d87c Compare October 17, 2025 17:39
@mstrandboge
mstrandboge marked this pull request as ready for review October 17, 2025 17:40
Comment thread plugins/secretstores/vault/sample.conf Outdated
Comment thread plugins/secretstores/vault/sample.conf Outdated
@mstrandboge
mstrandboge force-pushed the feat/vault-secret-store branch from 17f4cee to 1c9de1f Compare November 25, 2025 20:18
@mstrandboge mstrandboge assigned skartikey and srebhan and unassigned mstrandboge Nov 25, 2025

@srebhan srebhan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the plugin @mstrandboge! I do have some comments and we need a bit of setting cleanup I guess...

Comment thread plugins/secretstores/vault/README.md Outdated
Comment thread plugins/secretstores/vault/sample.conf Outdated
Comment thread plugins/secretstores/vault/sample.conf Outdated
Comment thread plugins/secretstores/vault/sample.conf Outdated
Comment thread plugins/secretstores/vault/vault.go
Comment thread plugins/secretstores/vault/vault.go Outdated
Comment thread plugins/secretstores/vault/vault_test.go Outdated
Comment thread plugins/secretstores/vault/vault_test.go
Comment thread plugins/secretstores/vault/sample.conf Outdated
return resp[startIndex : endIndex+1]
}

func TestIntegrationKVv1(t *testing.T) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If looks like we can make this a table based test and merge all other tests below, can't we?

Comment thread plugins/secretstores/vault/vault.go Outdated
Co-authored-by: skartikey <s.kartikey@gmail.com>
Comment thread plugins/secretstores/vault/README.md Outdated
Comment thread plugins/secretstores/vault/sample.conf Outdated
srebhan and others added 2 commits November 28, 2025 08:38
Co-authored-by: skartikey <s.kartikey@gmail.com>
Co-authored-by: skartikey <s.kartikey@gmail.com>
@telegraf-tiger

Copy link
Copy Markdown
Contributor

@srebhan srebhan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mstrandboge and @skartikey for your contributions!

@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Nov 28, 2025
@srebhan srebhan assigned skartikey and unassigned srebhan Nov 28, 2025

@skartikey skartikey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@skartikey
skartikey merged commit 35e0a92 into influxdata:master Nov 28, 2025
26 of 27 checks passed
@github-actions github-actions Bot added this to the v1.37.0 milestone Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin new plugin plugin/secretstores ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.

4 participants