Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(config): support loading secrets from files and directories #21282

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tie
Copy link

@tie tie commented Sep 12, 2024

This change adds a secrets backend that retrieves secrets from files and directories. For example, this is useful for loading secrets from systemd credentials directory and similar mechanisms.
E.g.

[secret.systemd_credentials]
type = "directory"
path = "$CREDENTIALS_DIRECTORY"
remove_trailing_whitespace = true

SECRET[systemd_credentials.password.txt]$CREDENTIALS_DIRECTORY/password.txt

Closes #20747

References:

@bits-bot
Copy link

bits-bot commented Sep 12, 2024

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the domain: external docs Anything related to Vector's external, public documentation label Sep 12, 2024
@tie tie force-pushed the master branch 2 times, most recently from fc34ad1 to e293fce Compare September 12, 2024 14:22
@tie tie marked this pull request as ready for review September 12, 2024 14:34
@tie tie requested review from a team as code owners September 12, 2024 14:34
This change allows loading secrets from files in directories. In
particular, this is useful for loading secrets from systemd credentials
directory (see https://systemd.io/CREDENTIALS) and similar mechanisms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: external docs Anything related to Vector's external, public documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support reading auth token from file
3 participants