caddy-l4 icon indicating copy to clipboard operation
caddy-l4 copied to clipboard

L4 module for Postgres: matchers

Open metafeather opened this issue 1 year ago • 5 comments

This PR adds additional matchers for the Postgres module:

  1. Postgres Matcher can now match on the combination of user and database parameters when SSL is disabled
  2. New PostgresClient Matcher that checks the application_name parameter when SSL is disabled
  3. 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

metafeather avatar May 04 '24 22:05 metafeather

/cc @coolaj86 in case you'd be interested in this

mholt avatar May 05 '24 00:05 mholt

Thanks for updating this. Will probably give it another review soon.

mholt avatar Jun 04 '24 05:06 mholt