Skip to content

Commit

Permalink
adding configuration references for server and client
Browse files Browse the repository at this point in the history
  • Loading branch information
telliere committed Apr 5, 2024
1 parent d5ba5b0 commit 0b2c8b7
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ You can also see sequence diagrams for the [container preparation](https://githu
## CLI

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.

## Configuration

Configuration is available under `configuration/` directory. Client and server `ini` files configuration references are available.
48 changes: 48 additions & 0 deletions docs/configuration/client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Client

Client's configuration has to respect `ini` configuration format and essentially compiles informations for the client to connect to servers services.

## Example configuration :

```ini
[spire-server]
address = localhost
port = 31147
trust-domain = hpcs

[hpcs-server]
url = http://localhost:10080

[vault]
url = http://localhost:8200

[supercomputer]
address = lumi.csc.fi
username = etellier
```

## Reference

### `spire-server`

This section describes the connection to the spire-server
- `address` : address of the spire-server
- `port` : port nomber on which spire-server api is exposed
- `trust-domain` : `trust-domain` of the spire-server (from spire-server configuration or hpcs administration can provide it to you)

### `hpcs-server`

This section describes the hpcs-server
- `url` : complete base url to the hpcs server api

### `vault`

This section describes the vault
- `url` : complete base url to the vault


### `supercomputer`

This section describes the supercomputer to run jobs on
- `address` : the address to the supercomputer login-node
- `username` : the user to use to connect to the supercomputer
48 changes: 48 additions & 0 deletions docs/configuration/server.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Client

Client's configuration has to respect `ini` configuration format and essentially compiles informations for the client to connect to servers services.

## Example configuration :

```ini
[spire-server]
address = "localhost"
port = 8081
trust-domain = hpcs
pre-command = ""
spire-server-bin = spire-server
socket-path = /var/run/sockets/server/api.sock

[spire-agent]
spire-agent-socket = /tmp/spire-agent/public/api.sock
hpcs-server-spiffeid = spiffe://hpcs/hpcs-server/workload

[vault]
url = http://vault-host:10297
server-role = hpcs-server
```

## Reference

### `spire-server`

This section describes the connection to the spire-server
- `address` : address of the spire-server
- `port` : port nomber on which spire-server api is exposed
- `trust-domain` : `trust-domain` of the spire-server (from spire-server configuration or hpcs administration can provide it to you)
- `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 :
- `pre-command` : text to add before running spire-server cli command
- `spire-server-bin` : path to spire-server binary
- `socket-path` : path to spire-server socket (will be append after `-socketPath`)

### `spire-agent`

This section describes the spire-agent setup to allow hpcs-server to use it to get and validate SVIDs
- `spire-agent-socket` : path to spire agent socket, used to create spire-agent client connecting via the socket
- `hpcs-server-spiffeid` : spiffeID identifying the hpcs-server workload, in general : `spiffe://hpcs/hpcs-server/workload`

### `vault`

This section describes the vault
- `url` : complete base url to the vault
- `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 comments on commit 0b2c8b7

Please sign in to comment.