Skip to content

michael-michalski/graphitestatsd-encrypted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Adding encryption & authentication to Graphite

To configure nginx for https add these to the server decleration.

listen 9443 ssl http2;
listen [::]:9443 ssl http2;
ssl_certificate /etc/ssl/certs/nginx-selfsigned-bundle.crt;
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;

To avoid MITM and ensure authentication between graphite and consumers add the following.

ssl_client_certificate /etc/ssl/certs/client.crt;
ssl_verify_client on;

Step 1

Create ssl certificates from a root authority. And put 'graphitestatsd' as the CN, or what you decide to have as hostname.

Step 2

Bundle the server certificate and the root ca certificate into a certificate bundle.

cat server.pem rootCA.pem >> bundle.pem

Step 3

Copy over the new nginx config and copy/mount the certificates into the image.

Step 4

Add the client certificates into grafana.

grafana configuration

About

Showing how to make an encrypted graphite using nginx

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published