postgres: support for upstream SSL (#23990)
Postgres filter can negotiate upstream SSL connection with Postgres server and enable upstream encryption. Upon receiving the initial postgres request, the filter buffers the received packet (without sending it) and sends to the upstream server a request to establish SSL connection. When the server agrees, the postgres filter enables upstream STARTTLS transport socket and sends the previously buffered initial packet. From now on, the connection to upstream is encrypted and the filter can read the postgres payloads in clear-text. If the server does not agree for SSL or converting STARTTLS transport socket to secure mode fails, depending on the configuration, the filter may continue in clear-text or may tear down the connection. Risk Level: Low Testing: unit, integration and manual tests. Docs Changes: yes. Release Notes: yes Platform Specific Features: No Fixes #19527 Signed-off-by: Christoph Pakulski <christoph@tetrate.io> Mirrored from https://github.com/envoyproxy/envoy @ 0ce6cf5fc3b54185b068ac0b6ec2dd5e461fc3cbpull/626/head
parent
194681eadd
commit
d5767d6b5c
1 changed files with 18 additions and 0 deletions
Loading…
Reference in new issue