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

Add grafana-agent-logging-secret in the chart to store logging write credentials #21

Merged
merged 7 commits into from
Oct 26, 2023

Conversation

marieroque
Copy link
Contributor

towards https://github.com/giantswarm/giantswarm/issues/28486

We need to access secret data in the chart in order to configure the river config.
This river config specifies how we connect to loki and sensitive data must to be encrypted.

@marieroque marieroque requested a review from a team as a code owner October 25, 2023 14:52
Copy link
Contributor

@QuantumEnigmaa QuantumEnigmaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marieroque marieroque merged commit 56e8cf0 into main Oct 26, 2023
4 checks passed
@marieroque marieroque deleted the add-secret branch October 26, 2023 08:34
@@ -0,0 +1,14 @@
{{- if .Values.loggingSecret.enabled }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea of an extra secret but do not like the custom secret parameters. I would have liked to see a more generic approach that could have been proposed upstream as well like https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/templates/prometheus/extrasecret.yaml for the secret and this to read the secret data https://grafana.com/docs/agent/latest/flow/reference/components/remote.kubernetes.secret/#example ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like your idea :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants