Skip to content

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

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vector-aws-secrets-helper

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