Skip to content

Conversation

@dsykes16
Copy link

@dsykes16 dsykes16 commented Sep 4, 2025

This repo seems abandoned, nevertheless I wanted to perform my due diligence in offering this PR to backport the fixes from https://github.com/khorsolutions/tokio-postgres-rustls-improved/

  • Incorporate @conradludgate's fixes for channel binding make tests pass.
  • Add comprehensive integration test suite. Only prerequisite is having a docker host running (can be remote/lima/etc.; just ensure DOCKER_HOST env var is set appropriately if running a non-standard config).
  • Refactor channel binding code
  • Remove hard dependency on ring
  • Default to aws-lc-rs feature (same as rustls default for some time)
  • Add optional ring feature
  • Add test run w/ ring feature to CI pipeline

conradludgate and others added 11 commits November 3, 2024 13:57
Add integration test suite that uses `bollard` to create postgres
containers. Includes SCRAM/SASL (i.e. channel_binding) tests and
mTLS tests.
Remove original test from upstream. It used zero cert verification,
no client auth, and no channel binding. The new integration test
suite supersedes this test.
The main `lib.rs` uses imports (e.g. `MakeTlsConnect`) that are
behind the `runtime` feature gate in `tokio-postgres` so it is NOT
a development-only dependency.
Bump version from `0.13.0` to `0.14.0` and add all contributors
with two or more commits to `authors` list (in-order of number of
commits).
- Refactor channel binding code
- Remove hard dependency on `ring`
- Default to `aws-lc-rs` feature
- Add optional `ring` feature
- Add test run w/ `ring` feature to CI pipeline
@jbg
Copy link
Owner

jbg commented Oct 31, 2025

Thanks for this! I merged the channel binding fix & the pin projection improvement before I saw this. Can you rebase this against master and drop those two commits and that should resolve the conflicts. (I can also do this if you adjust the PR settings to allow me to push to the PR branch.)

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.

3 participants