Skip to content

Commit

Permalink
fix(alloy): convert non-sensitive secret values to strings
Browse files Browse the repository at this point in the history
We're using `Secret` data in places where Alloy expects strings, not secrets.
  • Loading branch information
sid-maddy committed Sep 14, 2024
1 parent f604b2d commit e1f6ca0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kubernetes/chart/values/prod/vipyrsec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ alloy:
}
prometheus.scrape "postgres_do" {
targets = [{"__address__" = remote.kubernetes.secret.postgres.data.metrics_url}]
targets = [{"__address__" = nonsensitive(remote.kubernetes.secret.postgres.data.metrics_url)}]
forward_to = [prometheus.relabel.tagged.receiver]
basic_auth {
username = remote.kubernetes.secret.postgres.data.metrics_username
username = nonsensitive(remote.kubernetes.secret.postgres.data.metrics_username)
password = remote.kubernetes.secret.postgres.data.metrics_password
}
}
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/chart/values/staging/vipyrsec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ alloy:
}
prometheus.scrape "postgres_do" {
targets = [{"__address__" = remote.kubernetes.secret.postgres.data.metrics_url}]
targets = [{"__address__" = nonsensitive(remote.kubernetes.secret.postgres.data.metrics_url)}]
forward_to = [prometheus.relabel.tagged.receiver]
basic_auth {
username = remote.kubernetes.secret.postgres.data.metrics_username
username = nonsensitive(remote.kubernetes.secret.postgres.data.metrics_username)
password = remote.kubernetes.secret.postgres.data.metrics_password
}
}
Expand Down

0 comments on commit e1f6ca0

Please sign in to comment.