Skip to content

Commit

Permalink
Update GPU attestation support
Browse files Browse the repository at this point in the history
Signed-off-by: Jiale Zhang <[email protected]>
  • Loading branch information
jialez0 authored and 訫剑 committed Jan 20, 2025
1 parent fc2e160 commit 4319292
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion attestation-service/docker/as-grpc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ RUN python3.11 -m pip install /usr/verifier-1.3.0-py3-none-any.whl
RUN python3.11 -m pip install /usr/nv_attestation_sdk-1.3.0-py3-none-any.whl

# Install NV Attestation Default Token validation policy
COPY --from=builder /usr/src/attestation-service/deps/verifier/test_data/NVGPULocalPolicyDefault.json /opt/confidential-containers/attestation-service
COPY --from=builder /usr/src/attestation-service/deps/verifier/test_data/NVGPULocalPolicyDefault.json /usr/

RUN if [ "${ARCH}" = "x86_64" ]; then curl -L https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | tee intel-sgx-deb.key | apt-key add - && \
echo 'deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu jammy main' | tee /etc/apt/sources.list.d/intel-sgx.list && \
Expand Down
2 changes: 1 addition & 1 deletion attestation-service/docker/as-restful/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RUN python3.11 -m pip install /usr/verifier-1.3.0-py3-none-any.whl
RUN python3.11 -m pip install /usr/nv_attestation_sdk-1.3.0-py3-none-any.whl

# Install NV Attestation Default Token validation policy
COPY --from=builder /usr/src/attestation-service/deps/verifier/test_data/NVGPULocalPolicyDefault.json /opt/confidential-containers/attestation-service
COPY --from=builder /usr/src/attestation-service/deps/verifier/test_data/NVGPULocalPolicyDefault.json /usr/

RUN if [ "${ARCH}" = "x86_64" ]; then curl -L https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | tee intel-sgx-deb.key | apt-key add - && \
echo 'deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu jammy main' | tee /etc/apt/sources.list.d/intel-sgx.list && \
Expand Down
2 changes: 1 addition & 1 deletion deps/verifier/src/tdx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub(crate) mod claims;
pub mod eventlog;
pub(crate) mod quote;

const GPU_POLICY_FILE_PATH: &str = "/opt/confidential-containers/attestation-service/NVGPULocalPolicyDefault.json";
const GPU_POLICY_FILE_PATH: &str = "/usr/NVGPULocalPolicyDefault.json";

#[derive(Serialize, Deserialize, Debug)]
struct TdxEvidence {
Expand Down

0 comments on commit 4319292

Please sign in to comment.