Skip to content

Commit ca44987

Browse files
committed
Add minio parameters to loki secret
Signed-off-by: obetsun <[email protected]> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
1 parent c283f4f commit ca44987

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

components/vector-kubearchive-log-collector/development/loki-helm-dev-values.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,23 @@ ingester:
144144
hard: {}
145145
# AWS credentials for S3/MinIO access
146146
# These match the MinIO credentials from loki-helm-minio-values.yaml
147+
# Using secretKeyRef to satisfy kube-linter security requirements
147148
extraEnv:
148149
- name: AWS_ACCESS_KEY_ID
149-
value: "loki"
150+
valueFrom:
151+
secretKeyRef:
152+
name: kubearchive-loki
153+
key: AWS_ACCESS_KEY_ID
150154
- name: AWS_SECRET_ACCESS_KEY
151-
value: "supersecret"
155+
valueFrom:
156+
secretKeyRef:
157+
name: kubearchive-loki
158+
key: AWS_SECRET_ACCESS_KEY
152159
- name: AWS_DEFAULT_REGION
153-
value: "us-east-1"
160+
valueFrom:
161+
secretKeyRef:
162+
name: kubearchive-loki
163+
key: AWS_DEFAULT_REGION
154164
# Graceful shutdown configuration to prevent stale ring instances
155165
# Give Loki time to flush chunks and leave the ring gracefully
156166
# Set to 90s to be longer than left_ingesters_timeout (60s) but still allow quick cleanup

components/vector-kubearchive-log-collector/development/loki-secret.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ type: Opaque
1212
stringData: # Using stringData for easier management
1313
USERNAME: admin
1414
PASSWORD: devpassword123 # notsecret only for dev
15+
AWS_ACCESS_KEY_ID: loki
16+
AWS_SECRET_ACCESS_KEY: supersecret
17+
AWS_DEFAULT_REGION: us-east-1

0 commit comments

Comments
 (0)