teepot/bin
Patryk Bęza 4fcaaa7398
feat(verify-era-proof-attestation): continuous mode with attestation policies
This PR introduces TEE Prover continuous mode with attestation policies.

Attestation policies are a set of criteria that determine whether an SGX
attestation should be considered valid or invalid. In practice, this
means checking against a specified set of mrsigners, mrenclaves, and TCB
levels. If the attestation’s mrenclave/mrsigner/TCB levels matches those
in the provided --sgx-mrenclaves/--sgx-mrsigners/--sgx-allowed-tcb-levels,
we treat the attestation as successfully verified. Otherwise, the
attestation is considered invalid.

The --continuous mode for the TEE Prover allows it to run continuously,
verifying new batches exposed by the node's RPC API in real-time.

To try it out, run the following commands:

    $ nix build -L .#container-verify-era-proof-attestation-sgx
    $ export IMAGE_TAG=$(docker load -i result | grep -Po 'Loaded image.*: \K.*')
    $ docker run  -i --init --rm $IMAGE_TAG --continuous 11505 --rpc https://sepolia.era.zksync.dev --sgx-allowed-tcb-levels Ok,SwHardeningNeeded --log-level debug
    $ docker run  -i --init --rm $IMAGE_TAG --batch 11509 --rpc https://sepolia.era.zksync.dev --sgx-allowed-tcb-levels Ok,SwHardeningNeeded --log-level debug
2024-09-13 19:34:37 +02:00
..
tee-key-preexec feat(tee-key-preexec): add cmdline arg for env prefix 2024-09-03 10:42:42 +02:00
tee-ratls-preexec chore: cargo update + taplo fmt 2024-06-20 14:00:18 +02:00
tee-self-attestation-test Use Docker's entrypoint instead of command 2024-07-11 17:49:37 +02:00
tee-stress-client chore: remove obsolete Dockerfiles 2024-06-21 11:23:41 +02:00
tee-vault-admin chore: remove obsolete Dockerfiles 2024-06-21 11:23:41 +02:00
tee-vault-unseal fix(tee-vault-unseal): pick either VAULT_AUTH_TEE_SHA256 string or file 2024-07-03 14:42:06 +02:00
teepot-read chore: cargo update + taplo fmt 2024-06-20 14:00:18 +02:00
teepot-write chore: cargo update + taplo fmt 2024-06-20 14:00:18 +02:00
vault-admin chore: cargo update + taplo fmt 2024-06-20 14:00:18 +02:00
vault-unseal chore: cargo update + taplo fmt 2024-06-20 14:00:18 +02:00
verify-attestation chore: cargo update 2024-08-07 15:26:20 +02:00
verify-era-proof-attestation feat(verify-era-proof-attestation): continuous mode with attestation policies 2024-09-13 19:34:37 +02:00