Skip to content

feat: dynamic backends clientCertificate with SecretStore fromBytes, rawbytes #796

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

Merged
merged 10 commits into from
Jun 3, 2024

Conversation

guybedford
Copy link
Contributor

@guybedford guybedford commented Jun 1, 2024

Implements #794. API as per types/backend.d.ts.

SecretStore is extended to support SecretStore.fromBytes and SecretStoreEntry.prototype.rawbytes() to get the raw buffer for a secret instead of the UTF8 encoding.

The new client cert option is then implemented for dynamic backends taking an object with a certificate string and key SecretStoreEntry properties, with error handling.

This PR also updates to the latest wit-bindgen, regenerating the world, and reenables the secret store tests which got dropped in the refactoring PR in #673.

@guybedford guybedford requested a review from elliottt June 1, 2024 00:00
Copy link
Contributor

@elliottt elliottt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good to me! Just a few questions before merging.

@guybedford guybedford merged commit 7d2b7b7 into main Jun 3, 2024
20 checks passed
@guybedford guybedford deleted the dynamic-backend-client-cert branch June 3, 2024 22:25
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