Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support PG Notify for event streams using credentials #1176

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mkanoor
Copy link
Contributor

@mkanoor mkanoor commented Jan 7, 2025

Create a Postgres credential that can store certificates and keys or userid/password at server startup and attach it to Activations that use EventStream.

This allows us to test mTLS for Postgres, a sample pg_hba file is attached to this PR.

To test this you need to create certificates and keys for

  • Postgres Server called (server.crt and server.key)
  • EDA Server called (client.crt and client.key)
  • You also need to create the CA certificate (ca.crt)

These files have to be present in
tools/docker/postgres_ssl_config/certs

The docker-compose file tools/docker/docker-compose-mac-pg-mtls.yml can be used to test mTLS

The docker-compose file tools/docker/docker-compose-mac.yml can be used to test userid/password auth

https://issues.redhat.com/browse/AAP-38315

@mkanoor mkanoor requested a review from a team as a code owner January 7, 2025 19:25
@mkanoor mkanoor marked this pull request as draft January 7, 2025 19:26
@mkanoor mkanoor force-pushed the pg_notify_with_credential branch 2 times, most recently from 0d6fc17 to 28ea7af Compare January 7, 2025 23:05
@mkanoor mkanoor added run-e2e and removed run-e2e labels Jan 7, 2025
@mkanoor mkanoor force-pushed the pg_notify_with_credential branch 2 times, most recently from c429d87 to 3fa5f37 Compare January 14, 2025 18:00
@mkanoor mkanoor marked this pull request as ready for review January 14, 2025 18:01
@mkanoor mkanoor force-pushed the pg_notify_with_credential branch 3 times, most recently from f77b4af to bda4178 Compare January 15, 2025 17:16
@codecov-commenter
Copy link

codecov-commenter commented Jan 15, 2025

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

Create a Postgres credential that can store certificates
and keys or userid/password at server startup and attach it to
Activations that use EventStream.

This allows us to test mTLS for Postgres, a sample pg_hba file
is attached to this PR.

To test this you need to create certificates and keys for
 * Postgres Server called (server.crt and server.key)
 * EDA Server called (client.crt and client.key)
 * You also need to create the CA certificate

These files have to be present in
  tools/docker/postgres_ssl_config/certs

The docker-compose file tools/docker/docker-compose-mac-pg-mtls.yml
can be used to test mTLS

The docker-compose file tools/docker/docker-compose-mac.yml can
be used to test userid/password auth

chore: rebase
@mkanoor mkanoor force-pushed the pg_notify_with_credential branch from bda4178 to 10d904a Compare January 15, 2025 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants