Skip to content

Commit

Permalink
Filter CNs of client certificates for Prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Jun 2, 2024
1 parent bc4ac7a commit 92b88c0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ansible/host_vars/lovelace/nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ nginx_configs:
ssl_verify_client on;
location / {
if ($reject) { return 403; }
proxy_pass http://localhost:9090;
}
}
map $ssl_client_s_dn $reject {
default 1;
CN=sudo.access.tls.pydis.wtf 0;
CN=prometheus.access.tls.pydis.wtf 0;
}

0 comments on commit 92b88c0

Please sign in to comment.