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

Option for dev env to enable ssl for postgres #15151

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

fosterseth
Copy link
Member

@fosterseth fosterseth commented Apr 26, 2024

SUMMARY

PG_TLS=true make docker-compose

This will add some extra startup commands for the postgres container to generate a key and
cert to use for postgres connections.

It will also mount in pgssl.conf which has ssl configuration.

This can be useful for debugging issues that only surface when using ssl postgres connections.

I'd also be okay with just writing up some docs on how to do this manually if we don't want to add more code to our bloated docker-compose.yml.j2 file

ISSUE TYPE
  • New or Enhanced Feature
COMPONENT NAME
  • API

PG_TLS=true make docker-compose

This will add some extra startup commands
for the postgres container to generate a key and
cert to use for postgres connections.
It will also mount in pgssl.conf which has ssl configuration.

This can be useful for debugging issues that only surface
when using ssl postgres connections.
@fosterseth fosterseth merged commit d43c91e into ansible:devel Jun 5, 2024
25 checks passed
djyasin pushed a commit to djyasin/awx that referenced this pull request Sep 16, 2024
PG_TLS=true make docker-compose

This will add some extra startup commands
for the postgres container to generate a key and
cert to use for postgres connections.
It will also mount in pgssl.conf which has ssl configuration.

This can be useful for debugging issues that only surface
when using ssl postgres connections.
djyasin pushed a commit to djyasin/awx that referenced this pull request Nov 11, 2024
PG_TLS=true make docker-compose

This will add some extra startup commands
for the postgres container to generate a key and
cert to use for postgres connections.
It will also mount in pgssl.conf which has ssl configuration.

This can be useful for debugging issues that only surface
when using ssl postgres connections.
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