Skip to content

Conversation

@MarkOtter
Copy link
Contributor

@MarkOtter MarkOtter commented Jul 15, 2024

Checklist

  • I have read the Contributing Guide
  • I have checked to ensure this does not introduce an unintended breaking changes
  • I have considered appropriate testing for my change

Description

Our use case I'm trying to solve with this PR is that we need to implement custom Server Certificate validation in our code base.

We already do this succesfully on all outgoing connections (both http and npgsql), but weren't able to with DbUp because the package only allows use to supply a connection string. We need to attach a handler on the created NpgsqlConnection object.

This PR adds an optional options object two the Extension methods with which you can supply a validation callback handler. Also, the existing option to supply a client certificate is supported. Existing APIs won't break, I've only added new methods.

Please let me know what you think.

(Linking issue #23)

@droyad
Copy link
Member

droyad commented Dec 10, 2024

Resolves #23

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