The synchronisation of service configurations are stored in git repositories with Zookeeper nodes is implemented in siembol in config editor rest service.
Find a hostname of siembol config editor rest and prepare URL.
serviceNames
: Comma-separated list of service names orall
if the hook is for all servicessyncType
: Type of synchronisation that should be triggered by the hook. One of:ALL
RELEASE
ADMIN_CONFIG
Example URL:
For a git repository you should recognise:
- services which configurations are stored in a git repository
- type of configurations that are stored in the git repository
You can prepare a URL using the above example or by using Swagger.
Example Swagger URL:
Ensure that the prepared URL is accessible form the GitHub server.
To set up a webhook:
- Go to the settings page of your repository or organization in GitHub
- Click Webhooks
- Click Add Webhook
- Add a Payload URL
- Select 'Just the push event.'
- Click Add webhook
Set the content type as application/json
Setting a webhook secret allows you to ensure that POST requests sent to siembol are from GitHub.
The verification of webhook signature is computed only if is set the secret in the application properties of config editor rest. Otherwise this check is skipped.
config-editor.gitWebhookSecret=your_secret_provided_in_GitHub