28 lines
756 B
Markdown
28 lines
756 B
Markdown
TODO: Move to boris/keywarden-agent. In main repo for now for development.
|
|
|
|
# keywarden-agent
|
|
|
|
Minimal Go agent for Keywarden.
|
|
|
|
## Build
|
|
|
|
```
|
|
go build -o keywarden-agent ./cmd/keywarden-agent
|
|
```
|
|
|
|
## Run
|
|
|
|
```
|
|
./keywarden-agent -config /etc/keywarden/agent.json -server-url https://keywarden.example.com -enroll-token <token>
|
|
```
|
|
|
|
You can also pass `KEYWARDEN_SERVER_URL` and `KEYWARDEN_ENROLL_TOKEN` as environment variables.
|
|
|
|
## Config
|
|
|
|
On first boot, the agent will create a config file if it does not exist. Only `server_url` is required for bootstrapping.
|
|
|
|
If the Keywarden server uses a private TLS CA, set `server_ca_path` (or `KEYWARDEN_SERVER_CA_PATH`) to the CA PEM file so the agent can verify the server certificate.
|
|
|
|
See `config.example.json`.
|