Skip to content

Commit

Permalink
Moves tdx issuer to its own package and adds a default measurements.j…
Browse files Browse the repository at this point in the history
…son file
  • Loading branch information
Ruteri committed Sep 2, 2024
1 parent c786847 commit 64e1792
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/proxy-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (

"github.com/konvera/geth-sev/constellation/atls"
azure_tdx "github.com/konvera/geth-sev/constellation/attestation/azure/tdx"
cvm_tdx "github.com/konvera/geth-sev/constellation/attestation/azure/tdx"

"cvm-reverse-proxy/common"
"cvm-reverse-proxy/proxy"
Expand Down Expand Up @@ -84,7 +85,7 @@ func server_side_tls_termination(cCtx *cli.Context) error {
case "azure-tdx":
issuer = azure_tdx.NewIssuer(log)
case "baremetal-tdx":
issuer = NewIssuer(log)
issuer = cvm_tdx.NewIssuer(log)
default:
log.With("attestation-type", attestationType).Error("invalid attestation-type passed, must be one of [azure-tdx, baremetal-tdx]")
return errors.New("invalid attestation-type passed in")
Expand Down
23 changes: 23 additions & 0 deletions measurements.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"11": {
"expected": "efa43e0beff151b0f251c4abf48152382b1452b4414dbd737b4127de05ca31f7"
},
"12": {
"expected": "0000000000000000000000000000000000000000000000000000000000000000"
},
"13": {
"expected": "0000000000000000000000000000000000000000000000000000000000000000"
},
"15": {
"expected": "0000000000000000000000000000000000000000000000000000000000000000"
},
"4": {
"expected": "ea92ff762767eae6316794f1641c485d4846bc2b9df2eab6ba7f630ce6f4d66f"
},
"8": {
"expected": "0000000000000000000000000000000000000000000000000000000000000000"
},
"9": {
"expected": "c9f429296634072d1063a03fb287bed0b2d177b0a504755ad9194cffd90b2489"
}
}
File renamed without changes.

0 comments on commit 64e1792

Please sign in to comment.