Skip to content

Add structs for GPU attestation evidence#664

Open
Sibcgh wants to merge 4 commits intogoogle:mainfrom
Sibcgh:gpu_attestation_evidence_types
Open

Add structs for GPU attestation evidence#664
Sibcgh wants to merge 4 commits intogoogle:mainfrom
Sibcgh:gpu_attestation_evidence_types

Conversation

@Sibcgh
Copy link
Collaborator

@Sibcgh Sibcgh commented Feb 14, 2026

GPU attestation data structures based upon API design

@Sibcgh Sibcgh marked this pull request as ready for review February 17, 2026 18:20
@Sibcgh Sibcgh enabled auto-merge (squash) February 17, 2026 18:20
@Sibcgh Sibcgh requested a review from yawangwang February 17, 2026 18:20
@Sibcgh
Copy link
Collaborator Author

Sibcgh commented Feb 17, 2026

/gcbrun

@Sibcgh
Copy link
Collaborator Author

Sibcgh commented Feb 19, 2026

/gcbrun

1 similar comment
@Sibcgh
Copy link
Collaborator Author

Sibcgh commented Feb 19, 2026

/gcbrun

@Sibcgh Sibcgh requested a review from jkl73 February 23, 2026 21:40

// The following values are based on NVIDIA's GPU architecture generations.
const (
GPU_ARCHITECTURE_UNSPECIFIED GPUArchitectureType = 0 // Unspecified architecture.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you fix all the linter issues

@Sibcgh Sibcgh force-pushed the gpu_attestation_evidence_types branch 4 times, most recently from 2a2d521 to 5623e74 Compare February 24, 2026 19:26
@Sibcgh
Copy link
Collaborator Author

Sibcgh commented Feb 24, 2026

/gcbrun


// The following values are based on NVIDIA's GPU architecture generations.
const (
GpuArchitectureUnspecified GPUArchitectureType = 0 // Unspecified architecture.
Copy link
Collaborator

Choose a reason for hiding this comment

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

GpuArchitectureUnspecified GPUArchitectureType = iota for enum type

GpuArchitectureAmpere GPUArchitectureType = 6 // Ampere architecture.
GpuArchitectureAda GPUArchitectureType = 7 // Ada architecture.
GpuArchitectureHopper GPUArchitectureType = 8 // Hopper architecture.
GpuArchitectureUnknown GPUArchitectureType = 9 // Unknown architecture.
Copy link
Collaborator

Choose a reason for hiding this comment

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

this seems to be duplicate of GpuArchitectureUnspecified, should be renamed to GpuArchitectureUnsupported

Comment on lines 109 to 117
// NvidiaAttestationReportSpt represents the SPT attestation report for NVIDIA GPUs.
type NvidiaAttestationReportSpt struct {
Spt *SinglePassthroughAttestation `json:"spt,omitempty"`
}

// NvidiaAttestationReportMpt represents the MPT attestation report for NVIDIA GPUs, containing multiple GPU quotes.
type NvidiaAttestationReportMpt struct {
Mpt *MultiGpuSecurePassthroughAttestation `json:"mpt,omitempty"`
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove

}

// SinglePassthroughAttestation is a placeholder for the 'spt' field.
type SinglePassthroughAttestation struct{}
Copy link
Collaborator

Choose a reason for hiding this comment

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

this struct should contain single GPUInfo

@Sibcgh
Copy link
Collaborator Author

Sibcgh commented Feb 27, 2026

/gcbrun

@Sibcgh Sibcgh closed this Feb 27, 2026
auto-merge was automatically disabled February 27, 2026 23:07

Pull request was closed

@Sibcgh Sibcgh force-pushed the gpu_attestation_evidence_types branch from 5623e74 to 3ced14c Compare February 27, 2026 23:07
@Sibcgh Sibcgh reopened this Feb 27, 2026
@Sibcgh Sibcgh closed this Feb 27, 2026
@Sibcgh Sibcgh reopened this Feb 27, 2026
@Sibcgh
Copy link
Collaborator Author

Sibcgh commented Feb 27, 2026

/gcbrun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet