rune/attest.go: drop the product option of the rune attest command.
Automatically detect enclave type according to the reportBody of the rune
attest command.
@@ -8,7 +8,6 @@ import (
"unsafe"
"github.com/inclavare-containers/rune/libenclave"
- "github.com/inclavare-containers/rune/libenclave/attestation/sgx"
_ "github.com/inclavare-containers/rune/libenclave/attestation/sgx/ias"
"github.com/inclavare-containers/rune/libenclave/intelsgx"
"github.com/opencontainers/runc/libcontainer"
@@ -31,10 +30,6 @@ Where "<container-id>" is the name for the instance of the container`,
Name: "isRA",
Usage: "specify whether to get the remote or local report",
},
- cli.BoolFlag{
- Name: "product",
- Usage: "specify whether using production attestation service",
- },
cli.StringFlag{
Name: "spid",
Usage: "specify SPID",
@@ -155,12 +150,6 @@ func getAttestProcess(context *cli.Context, bundle string) (*specs.Process, erro
p.Env = append(p.Env, "SUBSCRIPTION_KEY"+envSeparator+context.String("subscription-key"))
p.Env = append(p.Env, "REPORT_FILE"+envSeparator+context.String("reportFile"))
- isProductEnclave := strconv.Itoa(int(sgx.DebugEnclave))
- if context.Bool("product") {
- isProductEnclave = strconv.Itoa(int(sgx.ProductEnclave))
- }
- p.Env = append(p.Env, "PRODUCT"+envSeparator+isProductEnclave)
-
quoteType := strconv.Itoa(int(intelsgx.QuoteSignatureTypeUnlinkable))
if context.Bool("linkable") {
quoteType = strconv.Itoa(int(intelsgx.QuoteSignatureTypeLinkable))
