diff --git a/bin/tee-self-attestation-test/README.md b/bin/tee-self-attestation-test/README.md index f7612a3..55d273a 100644 --- a/bin/tee-self-attestation-test/README.md +++ b/bin/tee-self-attestation-test/README.md @@ -14,7 +14,7 @@ $ nix build -L .#container-self-attestation-test-sgx-azure && docker load -i res ❯ docker run -i --init --rm --privileged --device /dev/sgx_enclave \ matterlabsrobot/teepot-self-attestation-test-sgx-azure:latest \ | base64 -d --ignore-garbage \ - | docker run -i --rm matterlabsrobot/verify-attestation-sgx:latest + | docker run -i --rm matterlabsrobot/verify-attestation-sgx:latest - aesm_service: warning: Turn to daemon. Use "--no-daemon" option to execute in foreground. Gramine is starting. Parsing TOML manifest file, this may take some time... @@ -33,7 +33,7 @@ reportdata: 00000000000000000000000000000000000000000000000000000000000000000000 ❯ docker run -i --init --rm --privileged --device /dev/sgx_enclave \ matterlabsrobot/teepot-self-attestation-test-sgx-dcap:latest \ | base64 -d --ignore-garbage \ - | docker run -i --rm matterlabsrobot/verify-attestation-sgx:latest + | docker run -i --rm matterlabsrobot/verify-attestation-sgx:latest - aesm_service: warning: Turn to daemon. Use "--no-daemon" option to execute in foreground. Gramine is starting. Parsing TOML manifest file, this may take some time... @@ -50,7 +50,7 @@ On an outdated machine, this might look like this: ❯ docker run -i --init --rm --privileged --device /dev/sgx_enclave \ matterlabsrobot/teepot-self-attestation-test-sgx-dcap:latest \ | base64 -d --ignore-garbage \ - | docker run -i --rm matterlabsrobot/verify-attestation-sgx:latest + | docker run -i --rm matterlabsrobot/verify-attestation-sgx:latest - aesm_service: warning: Turn to daemon. Use "--no-daemon" option to execute in foreground. Gramine is starting. Parsing TOML manifest file, this may take some time... diff --git a/bin/verify-attestation/src/main.rs b/bin/verify-attestation/src/main.rs index 3b8ffc1..bf8acaf 100644 --- a/bin/verify-attestation/src/main.rs +++ b/bin/verify-attestation/src/main.rs @@ -17,7 +17,7 @@ use teepot::{ #[command(author = "Matter Labs", version, about = "SGX attestation and batch signature verifier", long_about = None)] struct Arguments { /// Attestation quote proving the signature originated from a TEE enclave. - #[clap(value_parser)] + #[clap(name = "attestation_file", value_parser)] attestation: ArgSource, /// An optional subcommand, for instance, for optional signature verification. #[clap(subcommand)] diff --git a/packages/container-verify-attestation-sgx/default.nix b/packages/container-verify-attestation-sgx/default.nix index 3d88a1a..d01e540 100644 --- a/packages/container-verify-attestation-sgx/default.nix +++ b/packages/container-verify-attestation-sgx/default.nix @@ -10,7 +10,7 @@ dockerTools.buildLayeredImage { name = "verify-attestation-sgx"; - config.Cmd = [ "${teepot.teepot.verify_attestation}/bin/verify-attestation" ]; + config.Entrypoint = [ "${teepot.teepot.verify_attestation}/bin/verify-attestation" ]; config.Env = [ "LD_LIBRARY_PATH=/lib" ]; contents = buildEnv { name = "image-root";