Skip to content

Commit b2ebc22

Browse files
fix trivy findings
1 parent 40367ea commit b2ebc22

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

.trivyignore.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ misconfigurations:
2727
- id: "AVD-KSV-0048"
2828
paths:
2929
- "infra/reloader/components/rbac/clusterrole.yaml"
30+
- id: "AVD-KSV-0049"
31+
paths:
32+
- "infra/external-secrets/components/resources/rbac-clusterroles.yaml"
3033
- id: "AVD-KSV-0041"
3134
paths:
35+
- "infra/external-secrets/components/resources/rbac-bindings.yaml"
3236
- "infra/reloader/components/rbac/clusterrole.yaml"
3337
- "apps/monitoring/kube-state-metrics/components/rbac/cluster-role.yaml"
3438
- id: "AVD-KSV-0109"
@@ -37,6 +41,9 @@ misconfigurations:
3741
- id: "AVD-KSV-0113"
3842
paths:
3943
- "apps/monitoring/prometheus-vault-token-syncer/rbac.yaml"
44+
- id: "AVD-KSV-0114"
45+
paths:
46+
- "infra/external-secrets/components/resources/rbac-bindings.yaml"
4047
- id: "AVD-KSV-01010"
4148
paths:
4249
- "**/taskwarrior-configmap.yaml" # false positive

infra/external-secrets/components/resources/deployment-controller.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ spec:
4141
readOnlyRootFilesystem: true
4242
runAsNonRoot: true
4343
runAsUser: 12364
44+
runAsGroup: 12364
4445
seccompProfile:
4546
type: RuntimeDefault
4647
image: ghcr.io/external-secrets/external-secrets:v0.10.5
@@ -64,3 +65,9 @@ spec:
6465
path: /readyz
6566
initialDelaySeconds: 20
6667
periodSeconds: 5
68+
resources:
69+
requests:
70+
memory: 128Mi
71+
cpu: 50Mi
72+
limits:
73+
memory: 1Gi

infra/external-secrets/components/resources/deployment-webhook.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ spec:
4141
readOnlyRootFilesystem: true
4242
runAsNonRoot: true
4343
runAsUser: 12364
44+
runAsGroup: 12364
4445
seccompProfile:
4546
type: RuntimeDefault
4647
image: ghcr.io/external-secrets/external-secrets:v0.10.5
@@ -70,6 +71,12 @@ spec:
7071
- name: certs
7172
mountPath: /tmp/certs
7273
readOnly: true
74+
resources:
75+
requests:
76+
memory: 64Mi
77+
cpu: 50Mi
78+
limits:
79+
memory: 256Mi
7380
volumes:
7481
- name: certs
7582
secret:

infra/external-secrets/components/resources/deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ spec:
4444
readOnlyRootFilesystem: true
4545
runAsNonRoot: true
4646
runAsUser: 12364
47+
runAsGroup: 12364
4748
seccompProfile:
4849
type: RuntimeDefault
4950
image: ghcr.io/external-secrets/external-secrets:v0.10.5
@@ -55,4 +56,10 @@ spec:
5556
- containerPort: 8080
5657
protocol: TCP
5758
name: metrics
59+
resources:
60+
requests:
61+
memory: 128Mi
62+
cpu: 50Mi
63+
limits:
64+
memory: 1Gi
5865
dnsPolicy: ClusterFirst

0 commit comments

Comments
 (0)