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

support AWS secret manager #689

Open
fabiiw05 opened this issue Apr 26, 2024 · 3 comments · May be fixed by #718
Open

support AWS secret manager #689

fabiiw05 opened this issue Apr 26, 2024 · 3 comments · May be fixed by #718
Labels
enhancement New feature or request

Comments

@fabiiw05
Copy link

Request

I want to be able to retrieve values from AWS Secret Manager in Grafana Alloy and make them available for use in Alloy's configuration.

Use case

The following is used in scenarios that require sensitive information:

metrics.remote_write "prod" {
  remote_write {
    url = "https://mimir:9009/api/v1/push"
    basic_auth {
      username = remote.awssecretsmanager.remote_write.data.username
      password = remote.awssecretsmanager.remote_write.data.password
    }
  }
}
@fabiiw05 fabiiw05 added the enhancement New feature or request label Apr 26, 2024
@hainenber
Copy link
Contributor

I think its a good enhancement to add into Alloy's AWS components. I'll draft up something this weekend 🥸

@fabiiw05
Copy link
Author

In the case of Kubernetes, using External Secrets to store secret information in environment variables can avoid this issue. For EC2, it was necessary to have a mechanism to retrieve secrets using systemd's ExecStartPre

Thank you for taking an interest in this feature enhancement😊

@fabiiw05
Copy link
Author

fabiiw05 commented May 2, 2024

@hainenber
Thank you for responding promptly! 😄
I've been interested and have done a bit of coding.

main...fabiiw05:alloy:add_component_aws_secretsmanager

Lately, I haven't had much time, so it doesn't seem like I'll be able to finish it. I'm not confident in my programming skills, but I thought I'd share it in case it's useful to someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants