caddy-l4
caddy-l4 copied to clipboard
L4 module for Postgres: matchers
This PR adds additional matchers for the Postgres module:
- Postgres Matcher can now match on the combination of
useranddatabaseparameters when SSL is disabled - New PostgresClient Matcher that checks the
application_nameparameter when SSL is disabled - New PostgresSSL Matcher that can enforce/reject the use of SSL connections, but cannot match on their content
More tests and docs are in progress, but given the discussion in https://github.com/mholt/caddy-l4/issues/187 I'd like to share the non-SSL matchers, and discuss further enhancements to the PostgresSSL Matcher
/cc @coolaj86 in case you'd be interested in this
Thanks for updating this. Will probably give it another review soon.