Skip to content

Commit

Permalink
Add ability to disable service account token mount for gateway
Browse files Browse the repository at this point in the history
The Loki gateway acts as a reverse proxy and doesn't require
Kubernetes API access. This change allows users to disable service
account token mounting for better security posture.
  • Loading branch information
marioasabella committed Jan 21, 2025
1 parent 6eecb00 commit ab4ac38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ spec:
{{- end }}
spec:
serviceAccountName: {{ include "loki.serviceAccountName" . }}
automountServiceAccountToken: {{ .Values.gateway.serviceAccount.automountServiceAccountToken }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand Down
1 change: 1 addition & 0 deletions charts/loki-distributed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,7 @@ gateway:
replicas: 1
# -- Enable logging of 2xx and 3xx HTTP requests
verboseLogging: true
automountServiceAccountToken: true # default to true for backward compatibility
autoscaling:
# -- Enable autoscaling for the gateway
enabled: false
Expand Down

0 comments on commit ab4ac38

Please sign in to comment.