Skip to content

Commit 932ddfe

Browse files
tellieremmatthiesencsc
authored andcommitted
adding configuration references for server and client
1 parent 3e283ce commit 932ddfe

File tree

3 files changed

+100
-0
lines changed

3 files changed

+100
-0
lines changed

docs/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ You can also see sequence diagrams for the [container preparation](https://githu
1010
## CLI
1111

1212
Documentation of the CLI of the server and the client are available under `cli/`. Those documentations are exports of the `python3 code --help` with further explanation if needed.
13+
14+
## Configuration
15+
16+
Configuration is available under `configuration/` directory. Client and server `ini` files configuration references are available.

docs/configuration/client.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 = 31147
11+
trust-domain = hpcs
12+
13+
[hpcs-server]
14+
url = http://localhost:10080
15+
16+
[vault]
17+
url = http://localhost:8200
18+
19+
[supercomputer]
20+
address = lumi.csc.fi
21+
username = etellier
22+
```
23+
24+
## Reference
25+
26+
### `spire-server`
27+
28+
This section describes the connection to the spire-server
29+
- `address` : address of the spire-server
30+
- `port` : port nomber on which spire-server api is exposed
31+
- `trust-domain` : `trust-domain` of the spire-server (from spire-server configuration or hpcs administration can provide it to you)
32+
33+
### `hpcs-server`
34+
35+
This section describes the hpcs-server
36+
- `url` : complete base url to the hpcs server api
37+
38+
### `vault`
39+
40+
This section describes the vault
41+
- `url` : complete base url to the vault
42+
43+
44+
### `supercomputer`
45+
46+
This section describes the supercomputer to run jobs on
47+
- `address` : the address to the supercomputer login-node
48+
- `username` : the user to use to connect to the supercomputer

docs/configuration/server.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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

Comments
 (0)