Skip to content

Commit f900520

Browse files
committed
fix(tdxctl): allowed_app_id comparation for gateway should be case insensitive.
1 parent 4ec8371 commit f900520

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tdxctl/src/tboot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl AppIdValidator {
6161
bail!("Missing app id");
6262
};
6363
let app_id = hex::encode(app_id);
64-
if !self.allowed_app_id.contains(&app_id) {
64+
if !self.allowed_app_id.to_lowercase().contains(&app_id.to_lowercase()) {
6565
bail!("Invalid dstack-gateway app id: {app_id}");
6666
}
6767
Ok(())

0 commit comments

Comments
 (0)