Skip to content

Commit

Permalink
Remove enclave type usage in sandbox (#6626)
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou authored Nov 11, 2024
1 parent 99b0b10 commit 728d5df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion doc/build_apps/run_app.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ For example, deploying the generic JS application:
.. note::

- ``sandbox.sh`` defaults to using CCF's `virtual` mode, which does not require or make use of SGX. To load debug or release enclaves and make use of SGX, ``--enclave-type`` must be set to the right value, for example: ``sandbox.sh --enclave-type release -p ./libjs.enclave.so.signed``
- ``sandbox.sh`` automatically uses the platform which either the local build or install of CCF targeted, i.e. either Virtual or SNP.
- The ``--verbose`` argument can be used to display all commands issued by operators and members to start the network.

The command output shows the addresses of the CCF nodes where commands may be submitted (ie, via ``curl https://127.0.0.1:8000/...``).
Expand Down
6 changes: 0 additions & 6 deletions tests/sandbox/sandbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ if [ ! -f "${VERSION_FILE}" ]; then
PLATFORM_FILE=PLATFORM
fi
platform=$(<"${PLATFORM_FILE}")
if [ "${platform}" == "sgx" ]; then
enclave_type="release"
else
enclave_type="debug"
fi

extra_args=()
while [ "$1" != "" ]; do
Expand Down Expand Up @@ -119,7 +114,6 @@ export CURL_CLIENT=ON
export INITIAL_MEMBER_COUNT=1
exec python "${START_NETWORK_SCRIPT}" \
--binary-dir "${BINARY_DIR}" \
--enclave-type "${enclave_type}" \
--enclave-platform "${platform}" \
--constitution "${CONSTITUTION_DIR}"/actions.js \
--constitution "${CONSTITUTION_DIR}"/validate.js \
Expand Down

0 comments on commit 728d5df

Please sign in to comment.