Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

A helper tool for Vector to retrieve secrets from AWS SSM Parameter Store and AWS Secrets Manager using the exec backend

License

Notifications You must be signed in to change notification settings

smolse/vector-aws-secrets-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vector-aws-secrets-helper

Note

This tool was created for securely retrieving secrets from AWS via the exec backend added in Vector v0.23. In Vector v0.38, the native aws_secrets_manager secrets backend was introduced, which is now the recommended way to retrieve secrets from AWS Secrets Manager.

A helper tool for Vector to securely retrieve secrets from AWS SSM Parameter Store and AWS Secrets Manager using the exec backend.

Installation

Download an executable for the target platform from the releases page or clone the repo and build it with the cargo build command. Place the executable in a directory that is in your (or, actually, in the Vector user's) PATH environment variable, e.g. /usr/local/bin.

Usage

Once the executable is installed, it can be used as described in the Vector documentation. The tool uses the default credential provider chain to authenticate to AWS.

Here is an example configuration for the exec secrets backend in Vector:

[secret.aws_ssm]
type = "exec"
command = ["/usr/local/bin/vector-aws-secrets-helper", "ssm"]

[secret.aws_secrets_manager]
type = "exec"
command = ["/usr/local/bin/vector-aws-secrets-helper", "secretsmanager"]

Limitations

While it's idiomatic to use / in the names of SSM Parameter Store parameters and Secrets Manager secrets to create a hierarchy, Vector currently does not support slashes in the secret names. The only supported characters are alphanumeric, underscores and dots. Here are some examples of valid secret references (for both SSM Parameter Store and Secrets Manager):

  • SECRET[aws_ssm.secret]
  • SECRET[aws_ssm.another_one]
  • SECRET[aws_ssm.one.more]
  • SECRET[aws_ssm..secret.with.a.leading.comma]

About

A helper tool for Vector to retrieve secrets from AWS SSM Parameter Store and AWS Secrets Manager using the exec backend

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages