Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ describe(AttestationEvidenceModal.name, () => {
report: "cpu-report",
tee_platform: "snp-gpu",
gpu_reports: [
{ index: 0, report: "gpu-0-report" },
{ index: 1, report: "gpu-1-report" }
{ device_index: 0, report: "gpu-0-report" },
{ device_index: 1, report: "gpu-1-report" }
]
}
});
expect(screen.getByText("GPU reports (2)")).toBeInTheDocument();
expect(screen.getByText("GPU 0")).toBeInTheDocument();
expect(screen.getByText("GPU 1")).toBeInTheDocument();
expect(screen.getByText("gpu-0-report")).toBeInTheDocument();
expect(screen.getByText("gpu-1-report")).toBeInTheDocument();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export function AttestationEvidenceModal({ provider, lease, onClose, dependencie
<div className="space-y-2">
<ReportLabel>GPU reports ({gpuReports.length})</ReportLabel>
{gpuReports.map(gpu => (
<ReportBlock key={gpu.index} label={`GPU ${gpu.index}`} report={gpu.report} />
<ReportBlock key={gpu.device_index} label={`GPU ${gpu.device_index}`} report={gpu.report} />
))}
</div>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ describe(ProviderProxyService.name, () => {

describe("fetchAttestationQuote", () => {
it("posts a fresh 64-byte nonce to the attestation quote endpoint with jwt credentials", async () => {
const quote = { report: "cpu-report", tee_platform: "snp-gpu", gpu_reports: [{ index: 0, report: "gpu-0" }] };
const quote = { report: "cpu-report", tee_platform: "snp-gpu", gpu_reports: [{ device_index: 0, report: "gpu-0" }] };
const httpClient = mock<HttpClient>({ post: vi.fn().mockResolvedValue({ data: quote }) } as unknown as HttpClient);
const { service } = setup({ httpClient });

Expand Down
2 changes: 1 addition & 1 deletion apps/deploy-web/src/utils/confidentialCompute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export type TeePlatform = "snp" | "tdx" | "snp-gpu" | "tdx-gpu";

export interface GpuAttestationReport {
/** Device index of the GPU this report attests, used to disambiguate multiple GPUs. */
index: number;
device_index: number;
/** Hardware-signed GPU attestation report, base64. */
report: string;
}
Expand Down