ff85bec45b
* Add TLS option to gossip cluster Co-authored-by: Sharad Gaur <sharadgaur@gmail.com> Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * generate new certs that expire in 100 years Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * Fix tls_connection attributes Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * Improve error message Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * Fix tls client config docs Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * Add capacity arg to message buffer Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * fix formatting Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * Update version; add version validation Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * use lru cache for connection pool Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * lock reading from the connection Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * when extracting net.Conn from tlsConn, lock and throw away wrapper Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * Add mutex to connection pool to protect cache Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * fix linting Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> Co-authored-by: Sharad Gaur <sharadgaur@gmail.com> |
||
---|---|---|
.. | ||
certs | ||
Makefile | ||
Procfile | ||
README.md | ||
tls_config_node1.yml | ||
tls_config_node2.yml |
README.md
TLS Transport Config Example
Usage
- Install dependencies:
go install github.com/cloudflare/cfssl/cmd/cfssl
go install github.com/mattn/goreman
- Build Alertmanager (root of repository):
go mod download
make build
.
make start
(inside this directory).
Testing
- Start the cluster (as explained above)
- Navigate to one of the Alertmanager instances at
localhost:9093
. - Create a silence.
- Navigate to the other Alertmanager instance at
localhost:9094
. - Observe that the silence created in the other Alertmanager instance has been synchronized over to this instance.
- Repeat.