Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deployment: remove root privilege and add configfs permission for ccnp #62

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions deployment/kubernetes/manifests/ccnp-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ spec:
containers:
- name: ccnp-server
image: docker.io/library/ccnp-server:latest
env:
- name: TSM_REPORT
value: /run/ccnp/tsm/
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
runAsGroup: 0
runAsUser: 0
volumeMounts:
- name: proc
mountPath: /proc
Expand All @@ -43,8 +42,8 @@ spec:
mountPath: /run/kernel/security/
- name: vsock-port
mountPath: /etc/tdx-attest.conf
- name: configfs
mountPath: /sys/kernel/config/
- name: tsm-report
mountPath: /run/ccnp/tsm/
volumes:
- name: proc
hostPath:
Expand All @@ -66,9 +65,9 @@ spec:
hostPath:
path: /etc/tdx-attest.conf
type: File
- name: configfs
- name: tsm-report
hostPath:
path: /sys/kernel/config/
path: /sys/kernel/config/tsm/report/ccnp/
type: Directory
nodeSelector:
intel.feature.node.kubernetes.io/tdx-guest: "enabled"
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ D /run/ccnp/uds 0757 - - -
f /sys/kernel/security/ima/ascii_runtime_measurements 0444 - - - -
f /sys/firmware/acpi/tables/data/CCEL 0444 - - - -
f /sys/firmware/acpi/tables/CCEL 0444 - - - -
D /sys/kernel/config/tsm/report/ccnp 0757 - - -
f /sys/kernel/config/tsm/report/ccnp/inblob 0666 - - - -
Comment on lines +5 to +6
Copy link
Member Author

Choose a reason for hiding this comment

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

@ruomengh I have added permission here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good. Thanks!

Loading