nvflare.app_opt.confidential_computing.snp_authorizer module
- class SNPAuthorizer(max_nonce_history=1000, amd_certs_dir='/opt/certs', snpguest_binary='snpguest', cpu_model='milan', max_retries=5, retry_interval=10, cmd_timeout=60)[source]
Bases:
CCAuthorizerAMD SEV-SNP Authorizer
Initialize the SNPAuthorizer instance.
- Parameters:
max_nonce_history (int, optional) – Maximum number of nonces to keep in history for replay protection. Defaults to 1000.
amd_certs_dir (str, optional) – Directory path where AMD certificates are stored. Defaults to “/opt/certs”.
snpguest_binary (str, optional) – Path to the snpguest binary used for generating and verifying reports. Defaults to “/host/bin/snpguest”.
cpu_model (str, optional) – CPU model identifier used when fetching certificates. Defaults to “milan”.
max_retries (int) – Max number of retries on transient failures.
retry_interval (int) – Wait time (seconds) between retries.
cmd_timeout (int) – SNPGuest command timeout.