GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add SSL support for postgres containers by cristianrgreco · Pull Request #1224 · testcontainers/testcontainers-node

Conversation

@cristianrgreco

@cristianrgreco cristianrgreco commented Feb 17, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Summary

  • add opt-in SSL helpers to PostgreSqlContainer: withSSL(certFile, keyFile, caCertFile?) and withSSLCert(caCertFile, certFile, keyFile)
  • copy SSL material into the container and use a small entrypoint wrapper to fix postgres file ownership before startup
  • enable postgres SSL via -c flags only when SSL is configured
  • add SSL integration coverage for postgres + postgis + pgvector + timescale variants
  • add test cert fixtures plus a test-certs/generate-certs.sh script and docs note/example

Verification

  • npm test -- packages/modules/postgresql/src/postgresql-container.test.ts packages/modules/postgresql/src/postgresql-container-snapshot.test.ts packages/modules/postgresql/src/postgis-container.test.ts packages/modules/postgresql/src/pgvector-container.test.ts packages/modules/postgresql/src/timescale-container.test.ts
  • Coverage includes:
    • PostgreSQL base container
    • Snapshot/restore behavior
    • PostGIS variant
    • PGVector variant
    • Timescale variant

Result

  • Test files: 5 passed
  • Tests: 21 passed

Closes #1113

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cristianrgreco
feat(postgresql): add opt-in SSL support and tests
ebe4c43
@netlify

netlify Bot commented Feb 17, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

✅ Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 7a74927
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-node/deploys/69943a769ab6e40008cc6ea2
😎 Deploy Preview https://deploy-preview-1224--testcontainers-node.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cristianrgreco cristianrgreco added enhancement New feature or request minor Backward compatible functionality labels Feb 17, 2026
@cristianrgreco
style(postgresql): apply formatter import ordering
7a74927
@cristianrgreco cristianrgreco changed the title feat(postgresql): add opt-in SSL support for postgres containers Add opt-in SSL support for postgres containers Feb 17, 2026
@cristianrgreco cristianrgreco changed the title Add opt-in SSL support for postgres containers Add SSL support for postgres containers Feb 17, 2026
@cristianrgreco
cristianrgreco merged commit 0481c58 into main Feb 17, 2026
19 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@cristianrgreco
cristianrgreco deleted the codex/issue-1113-postgres-ssl branch February 17, 2026 20:46
@cristianrgreco cristianrgreco mentioned this pull request Oct 12, 2026
Take named options in PostgreSqlContainer.withSSL #1539
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

enhancement New feature or request minor Backward compatible functionality

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Feature Request: Enable SSL support for postgres

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@cristianrgreco
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.