|
| 1 | +# Client |
| 2 | + |
| 3 | +Client's configuration has to respect `ini` configuration format and essentially compiles informations for the client to connect to servers services. |
| 4 | + |
| 5 | +## Example configuration : |
| 6 | + |
| 7 | +```ini |
| 8 | +[spire-server] |
| 9 | +address = "localhost" |
| 10 | +port = 8081 |
| 11 | +trust-domain = hpcs |
| 12 | +pre-command = "" |
| 13 | +spire-server-bin = spire-server |
| 14 | +socket-path = /var/run/sockets/server/api.sock |
| 15 | + |
| 16 | +[spire-agent] |
| 17 | +spire-agent-socket = /tmp/spire-agent/public/api.sock |
| 18 | +hpcs-server-spiffeid = spiffe://hpcs/hpcs-server/workload |
| 19 | + |
| 20 | +[vault] |
| 21 | +url = http://vault-host:10297 |
| 22 | +server-role = hpcs-server |
| 23 | +``` |
| 24 | + |
| 25 | +## Reference |
| 26 | + |
| 27 | +### `spire-server` |
| 28 | + |
| 29 | +This section describes the connection to the spire-server |
| 30 | +- `address` : address of the spire-server |
| 31 | +- `port` : port nomber on which spire-server api is exposed |
| 32 | +- `trust-domain` : `trust-domain` of the spire-server (from spire-server configuration or hpcs administration can provide it to you) |
| 33 | +- `spire-server` commands are executed directly in a subshell in order to cover various type of setups, these configs allow user to change the final command : |
| 34 | + - `pre-command` : text to add before running spire-server cli command |
| 35 | + - `spire-server-bin` : path to spire-server binary |
| 36 | + - `socket-path` : path to spire-server socket (will be append after `-socketPath`) |
| 37 | + |
| 38 | +### `spire-agent` |
| 39 | + |
| 40 | +This section describes the spire-agent setup to allow hpcs-server to use it to get and validate SVIDs |
| 41 | +- `spire-agent-socket` : path to spire agent socket, used to create spire-agent client connecting via the socket |
| 42 | +- `hpcs-server-spiffeid` : spiffeID identifying the hpcs-server workload, in general : `spiffe://hpcs/hpcs-server/workload` |
| 43 | + |
| 44 | +### `vault` |
| 45 | + |
| 46 | +This section describes the vault |
| 47 | +- `url` : complete base url to the vault |
| 48 | +- `server-role` : name of the role registered into the vault to create and update vault policies/roles and bound to the `hpcs-server-spiffeid` |
0 commit comments