Skip to content

Commit

Permalink
token: allow KBS to verify Azure VTPM token
Browse files Browse the repository at this point in the history
Added new entry in default extra tee token paths for Azure VTPM ITA

Signed-off-by: Pawel Proskurnicki <[email protected]>
  • Loading branch information
pawelpros authored and Xynnn007 committed Dec 16, 2024
1 parent c3e1d5c commit 5eb7a0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kbs/src/token/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub(crate) mod jwk;
pub use error::*;

pub const TOKEN_TEE_PUBKEY_PATH_ITA: &str = "/attester_runtime_data/tee-pubkey";
pub const TOKEN_TEE_PUBKEY_PATH_ITA_VTPM: &str = "/attester_user_data/tee-pubkey";
pub const TOKEN_TEE_PUBKEY_PATH_COCO: &str = "/customized_claims/runtime_data/tee-pubkey";
pub const TOKEN_TEE_PUBKEY_PATH_EAR: &str =
"/submods/cpu/ear.veraison.annotated-evidence/runtime_data_claims/tee-pubkey";
Expand Down Expand Up @@ -77,6 +78,7 @@ impl TokenVerifier {

let mut extra_teekey_paths = config.extra_teekey_paths;
extra_teekey_paths.push(TOKEN_TEE_PUBKEY_PATH_ITA.into());
extra_teekey_paths.push(TOKEN_TEE_PUBKEY_PATH_ITA_VTPM.into());
extra_teekey_paths.push(TOKEN_TEE_PUBKEY_PATH_COCO.into());
extra_teekey_paths.push(TOKEN_TEE_PUBKEY_PATH_EAR.into());

Expand Down

0 comments on commit 5eb7a0d

Please sign in to comment.