-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat: add support for in-memory client certificates #952
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM. One thing that can be improved is
- Add a validation during the push command for public locations and error out since cert paths, key paths wont work on the Service.
revived.cert = parseAsBuffer(item.cert); | ||
} | ||
if (item.key && !Buffer.isBuffer(item.key)) { | ||
revived.key = parseAsBuffer(item.key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to do the same for pfx
option.
const test = { | ||
clientCertificates: [ | ||
{ | ||
key: Buffer.from('This should be revived'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a test for non-buffer values as we discussed.
@emilioalvap Are you planning to do this? |
@vigneshshanmugam Sure, I can add that to the PR |
Co-authored-by: Vignesh Shanmugam <[email protected]>
🎉 This PR is included in version 1.13.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Summary
Add support for clientCertificates from Playwright v1.47.0 by updating.
To note, code generation has been moved in microsoft/playwright#32330. Some changes here adjust for that.