This repository was archived by the owner on Oct 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 165
Configuration
Tony Cai edited this page May 19, 2017
·
17 revisions
There are two types of configurations to goldfish.
- Deploy-time configurations (NOT changeable after launching goldfish)
- Run-time configurations (hot-reloaded every minute from a specific vault generic endpoint)
- Set by arg
config_pathwhen launching the server
- Set by arg
-
dev: if set to true, goldfish will listen from localhost only, will not enforce https, and ignore many deploy-time settings in favor of a default value -
goldfish_addr: the listening address & port of goldfish.- If you're deploying for production, this should just be the https port ":443"
-
cert_file: the certificate for the goldfish web server to use to run in https -
key_file: the private key for the matching certificate -
vault_addr: self-explanatory -
vault_token: the wrapping token for the generated secret_id from approle See Here -
approle_path: the approle path in which vault will use to login- If you didn't mount approle at some funky location, this can be left empty, and it will default to
auth/approle/login
- If you didn't mount approle at some funky location, this can be left empty, and it will default to
-
role_id: the role_id for approle. I would highly recommend leaving asgoldfishto avoid confusion -
config_path: a generic backend endpoint where values will be read every minute and hot-reloaded
Goldfish will read the provided config_path every minute, and if the changes are well-formed, goldfish will hot-reload the settings.
See the online demo for examples of the following:
-
DefaultSecretPath: the path that is loaded by default on Secrets page -
TransitBackend: the transit backend that goldfish will use for encryption/decryption -
ServerTransitKey: the key in TransitBackend used to encrypt/decrypt user credentials.- Control this tightly (preferably, only allow goldfish to access this)
-
UserTransitKey: the key in TransitBackend used by Transit page.- Individual users must be granted access to this in order to use the tool.
-
BulletinPath: the vault generic backend path that stores bulletins to be displayed. Check the demo for an example -
SlackWebhook: if a well-formed slack incoming webhook is placed here, new policy change requests will trigger the change ID to be sent to a specified channel. No secret details from the policy will be sent this way. -
SlackChannel: a singular channel or user to notify. E.g.@tonycor#teamA