Skip to content

Commit efa11c1

Browse files
authored
Merge pull request #1994 from oasisprotocol/matevz/docs/rofl-policy-enclaves
docs: Fix ROFL policy file
2 parents 2dd7e57 + 14cde4e commit efa11c1

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

docs/rofl/deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ successfully authenticate under our app ID. To do so, update the previously
196196
generated `policy.yml` as follows (using your own app identity):
197197

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

202202
Then to update the on-chain policy, run (using _your own app identifier_ instead

examples/runtime-sdk/rofl-oracle/policy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ quotes:
77
# Minimum acceptable TCB evaluation data number. This ensures that TCB information
88
# provided by the TEE vendor is recent enough and includes relevant TCB recoveries.
99
min_tcb_evaluation_data_number: 17
10+
# Acceptable enclave cryptographic identities.
11+
enclaves:
1012
# Acceptable nodes that can endorse the enclaves.
1113
endorsements:
1214
- any: {} # Any node can endorse.

examples/runtime-sdk/rofl-oracle/policy2.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ quotes:
77
# Minimum acceptable TCB evaluation data number. This ensures that TCB information
88
# provided by the TEE vendor is recent enough and includes relevant TCB recoveries.
99
min_tcb_evaluation_data_number: 17
10+
# Acceptable enclave cryptographic identities.
11+
enclaves:
12+
- "0+tTmlVjUvP0eIHXH7Dld3svPppCUdKDwYxnzplndLea/8+uR7hI7CyvHEm0soNTHhzEJfk1grNoBuUqQ9eNGg=="
1013
# Acceptable nodes that can endorse the enclaves.
1114
endorsements:
12-
- "0+tTmlVjUvP0eIHXH7Dld3svPppCUdKDwYxnzplndLea/8+uR7hI7CyvHEm0soNTHhzEJfk1grNoBuUqQ9eNGg=="
15+
- any: {} # Any node can endorse.
1316
# Who is paying the transaction fees on behalf of the enclaves.
1417
fees: endorsing_node # The endorsing node is paying via a fee proxy.
1518
# How often (in epochs) do the registrations need to be refreshed.

0 commit comments

Comments
 (0)