Skip to content

Commit 76b699b

Browse files
lsubashpchand20
andauthored
AM: Run attestation manager as TC user (#195)
Signed-off-by: Subash Lakkimsetti <subash.lakkimsetti@intel.com> Co-authored-by: pchandra <prakash1.chandra@intel.com>
1 parent baee2aa commit 76b699b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

helm/attestation-manager/templates/cleanup-job.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ spec:
1414
containers:
1515
- name: cleanup-am
1616
image: debian:bullseye-slim
17-
command: ["sh", "-c", "rm -rf /tmp/attestation-manager/*"]
17+
command: ["sh", "-c", "rm -rf /tmp/attestation-manager/flavor_update"]
1818
volumeMounts:
1919
- name: host-volume
2020
mountPath: /tmp/attestation-manager
2121
restartPolicy: Never
2222
volumes:
2323
- name: host-volume
2424
hostPath:
25-
path: /tmp/attestation-manager
25+
path: /tmp/

helm/attestation-manager/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ spec:
113113
path: /etc/intel_edge_node/orch-ca-cert/orch-ca.crt
114114
- name: flavor-addition-check
115115
hostPath:
116-
path: /tmp/attestation-manager/
116+
path: /tmp/
117117
type: DirectoryOrCreate
118118
- name: cms-crt
119119
emptyDir: {}

helm/attestation-manager/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ podSecurityContext:
4343
drop:
4444
- ALL
4545
runAsUser: 503
46+
runAsGroup: 500
4647

4748
securityContext:
48-
runAsUser: 0
49+
runAsUser: 503
50+
runAsGroup: 500
4951
capabilities:
5052
drop:
5153
- ALL

0 commit comments

Comments
 (0)