-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding configuration references for server and client
- Loading branch information
Showing
3 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |