Skip to content

Commit

Permalink
Merge pull request #1994 from oasisprotocol/matevz/docs/rofl-policy-e…
Browse files Browse the repository at this point in the history
…nclaves

docs: Fix ROFL policy file
  • Loading branch information
matevz authored Sep 20, 2024
2 parents 2dd7e57 + 14cde4e commit efa11c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/rofl/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ successfully authenticate under our app ID. To do so, update the previously
generated `policy.yml` as follows (using your own app identity):

<!-- markdownlint-disable line-length -->
![code yaml {11-12}](../../examples/runtime-sdk/rofl-oracle/policy2.yml "policy.yml")
![code yaml {10-12}](../../examples/runtime-sdk/rofl-oracle/policy2.yml "policy.yml")
<!-- markdownlint-enable line-length -->

Then to update the on-chain policy, run (using _your own app identifier_ instead
Expand Down
2 changes: 2 additions & 0 deletions examples/runtime-sdk/rofl-oracle/policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ quotes:
# Minimum acceptable TCB evaluation data number. This ensures that TCB information
# provided by the TEE vendor is recent enough and includes relevant TCB recoveries.
min_tcb_evaluation_data_number: 17
# Acceptable enclave cryptographic identities.
enclaves:
# Acceptable nodes that can endorse the enclaves.
endorsements:
- any: {} # Any node can endorse.
Expand Down
5 changes: 4 additions & 1 deletion examples/runtime-sdk/rofl-oracle/policy2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ quotes:
# Minimum acceptable TCB evaluation data number. This ensures that TCB information
# provided by the TEE vendor is recent enough and includes relevant TCB recoveries.
min_tcb_evaluation_data_number: 17
# Acceptable enclave cryptographic identities.
enclaves:
- "0+tTmlVjUvP0eIHXH7Dld3svPppCUdKDwYxnzplndLea/8+uR7hI7CyvHEm0soNTHhzEJfk1grNoBuUqQ9eNGg=="
# Acceptable nodes that can endorse the enclaves.
endorsements:
- "0+tTmlVjUvP0eIHXH7Dld3svPppCUdKDwYxnzplndLea/8+uR7hI7CyvHEm0soNTHhzEJfk1grNoBuUqQ9eNGg=="
- any: {} # Any node can endorse.
# Who is paying the transaction fees on behalf of the enclaves.
fees: endorsing_node # The endorsing node is paying via a fee proxy.
# How often (in epochs) do the registrations need to be refreshed.
Expand Down

0 comments on commit efa11c1

Please sign in to comment.