-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[improve] [pip] PIP-290 Provide a way to implement WSS E2E encryption and not need to expose the private key to the WebSocket Proxy #20923
Conversation
pip/pip-290.md
Outdated
| `encryptionKeyValues` | Base64 encoded and URL encoded secret key | | ||
| `encryptionKeyMetadata` | Base64 encoded and URL encoded and JSON formatted key-value metadata list of encryption 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.
Why not add the key metadata to the encryptionKeyValues JSON structure? So that it will align with the returned data structure to consumers.
And could you please also provide an example of what is the original data looks like? without base64 and URL encoding.
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.
Why not add the key metadata to the encryptionKeyValues JSON structure? So that it will align with the returned data structure to consumers.
I added a new mode for the parameter encryptionKeys
: If a producer registered with a JSON parameter encryptionKeys
, and the encryptionKeys[{key_name}].keyValue
is not empty, Web Socket Proxy Server will mark this Producer as Client-Side Encryption Producer, then discard server-side batch messages, server-side compression, and server-side encryption.
And could you please also provide an example of what is the original data looks like? without base64 and URL encoding.
Done.
Accidently clicked the approve button
See PIP: apache#20923 (cherry picked from commit 07eef59)
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: x