Skip to content

Commit b08735f

Browse files
Doc for cchost (#7090)
Co-authored-by: Eddy Ashton <[email protected]>
1 parent 34f475a commit b08735f

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

doc/operations/cli.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Command-Line Interface
2+
======================
3+
4+
The cchost executable exposes the following command-line interface (CLI) options:
5+
6+
.. code-block:: bash
7+
8+
$ cchost --help
9+
10+
CCF Host launcher. Runs a single CCF node, based on the given configuration file.
11+
Some parameters are marked "(security critical)" - these must be passed on the CLI rather than within a configuration file, so that (on relevant platforms) their value is captured in an attestation even if the configuration file itself is unattested.
12+
13+
Usage: ./cchost [OPTIONS]
14+
15+
Options:
16+
-h,--help Print this help message and exit
17+
-c,--config TEXT REQUIRED Path to JSON configuration file
18+
--config-timeout TEXT Configuration file read timeout, for example 5s or 1min
19+
--check Verify configuration file and exit
20+
-v,--version Display CCF host version and exit
21+
--enclave-log-level ENUM:value in {debug->1,fail->3,fatal->4,info->2,trace->0} OR {1,3,4,2,0}
22+
Logging level for the enclave code (security critical)
23+
--enclave-file TEXT Path to enclave application (security critical)
24+
25+
Note that the ``--enclave-file`` and ``--enclave-log-level`` options are security critical.
26+
They must be passed on the command line rather than in a configuration file, so that their values are captured in an attestation even if the configuration file itself is not attested, for example because it is mounted from an external, un-attested, filesystem.
27+
28+
The ``--config-timeout`` option specifies how long to wait for the configuration file to be available before giving up. This is useful when running CCF in a container, where the configuration file may not be immediately available.

doc/operations/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ This section describes how :term:`Operators` manage the different nodes constitu
2626

2727
---
2828

29+
:fa:`laptop-code` :doc:`cli`
30+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31+
32+
Command-Line Interface for the `cchost` executable.
33+
34+
---
35+
2936
:fa:`upload` :doc:`ledger_snapshot`
3037
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3138

@@ -100,6 +107,7 @@ This section describes how :term:`Operators` manage the different nodes constitu
100107
run_setup
101108
start_network
102109
configuration
110+
cli
103111
ledger_snapshot
104112
data_persistence
105113
code_upgrade

0 commit comments

Comments
 (0)