-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5975 from oasisprotocol/peternose/trivial/simplif…
…y-create-provisioner go/runtime/registry: Simplify creation of provisioners
- Loading branch information
Showing
14 changed files
with
195 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
go/runtime/config: Support selection of TEE kind | ||
|
||
The node operator can now specify the kind of Trusted Execution Environment | ||
(TEE) in which the runtime component should run. If no TEE is specified, | ||
it is automatically selected, with TDX and SGX taking precedence over ELF. | ||
|
||
The following configuration option has been deprecated: | ||
|
||
- `runtime.environment` | ||
|
||
The following configuration options have been added: | ||
|
||
- `runtime.debug_mock_tee` to enable TEE mocking for testing, | ||
|
||
- `runtime.runtimes.components.tee` to specify the TEE for a component. | ||
|
||
These changes affect the configuration of the client node if the runtime | ||
bundle contains both TEE and non-TEE binaries. In such cases, the node | ||
operator must explicitly configure the runtime to avoid running in a TEE | ||
environment. | ||
|
||
Configuring non-TEE Paratime Client Node: | ||
|
||
``` | ||
mode: client | ||
# ... sections not relevant are omitted ... | ||
runtime: | ||
paths: | ||
- {{ runtime_orc_path }} | ||
runtimes: | ||
- id: {{ runtime_id }} | ||
components: | ||
- id: ronl | ||
tee: none # Don't run in SGX or TDX! | ||
``` | ||
|
||
Configuring TEE Paratime Client Node: | ||
|
||
``` | ||
mode: client | ||
# ... sections not relevant are omitted ... | ||
runtime: | ||
paths: | ||
- {{ runtime_orc_path }} | ||
sgx_loader: /node/bin/oasis-core-runtime-loader | ||
# environment: sgx # Deprecated, can be removed. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
go/oasis-test-runner: Generalize OASIS_UNSAFE_MOCK_SGX flag | ||
|
||
Flag OASIS_UNSAFE_MOCK_SGX was renamed to OASIS_UNSAFE_MOCK_TEE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.