Commit e4be4463 authored by lukas.burgey's avatar lukas.burgey
Browse files

Update the

parent 8a22345e
Pipeline #88097 passed with stages
in 52 seconds
The feudalClient connects to the feudalBackend, in order to receive user deployments.
In order to do so, it needs to be registered at the respective backend instance.
The client is configured using a single config file.
The feudal client execute the deployment and removal of feudal users to and from custom services.
Multiple feudal clients connect to one feudal backend. They clients are meant to be run in proximity of the service, e.g. on the same VM / cluster.
This project is built using go. We make use of go modules which were introduced in go1.11. You can check your go version with ```go version```. We recommend using the latest stable version.
- You need to have a GOPATH setup (see ```go help gopath```). As a start you need the GOPATH enviroment variable set to a directory.
- Have a go version newer than 1.12 installed: ```go version```
- Clone the repository outside of $GOPATH: ```git clone```
- Clone the repository somewhere: ```git clone```
- Switch to the cloned directory and run ```go get```. This fetches dependencies and builds the project. The binary will be located at $GOPATH/bin/feudalClient.
- Switch to the cloned directory and run ```make build``` (or ```make build-static``` for a statically linked build)
Copy the binary and a config file to the target VM.
See example-config for an example configuration.
- Inspect the client version: ```feudalClient --version```
- Additional info: ```feudalClient --help```
- Run the client: ```feudalClient --config ./config/file/path```
- Create a configuration file using json or yaml, see [examples](./example-config).
- The client needs to be registerred using username and password at a [feudalBackend](
- Put the configuration into ```/etc/feudal``` or ```$HOME/.config/feudal```.
- Run the client: ```feudalClient```
- To use a specific config run: ```feudalClient --config <config>```
Provide a service
The feudalClient executes custom adapters to deploy / remove users from your service.
You'll probably need to write your own script. See [feudalScripts]( for instructions and examples how to dothat.
After writing your script, hook it up into your client configuration and restart your client. This will automatically register your service(s) at the feudal backend.
Stop providing a service
In case you want to stop providing a service follow these steps:
- Make sure that no user is still deployed and _no_ feudal user data remains at your service
- Execute the client once using: ```feudalClient deregister```
- This will remove all your services from the backend, so they won't be shown to users anymore.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment