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
Implement SDL-0207 RPC Message Protection #1320
Implement SDL-0207 RPC Message Protection #1320
Conversation
Add result code ENCRYPTION_NEEDED
Update SDLOnPermissionsChangeSpec & SDLPermissionItemSpec & SDLResultSpec
Also handles auto-matically encrypting RPCs if sent in the sendRPC method where the permssionManager can check the requireEncryption flag
Check permissions in O(1) time
Properly add new files
Make SDLEncryptionConfiguration.h public
Deprecate initializers in SDLStreamingMediaConfig Add security manager to SDLStreamingMediaConfig after SDLEncryptionConfig has been initialized.
Add flag to SDLAsynchronousRPCRequestOperation
@SatbirTanda can you please advise when this is ready for re-review? It looks like there are still items to be addressed. |
@theresalech ready for review |
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.
Left some comments
A new proposal will be submitted to handle this case for the next release |
@SatbirTanda Please see the powerpoint attached from our alignment meeting on 2019-09-10. |
Fix appId
Expose SDLProtocolConstants.h and SDLServiceEncryptionDelegate.h
Append sdl_ to private methods
Add delegate callback in endservice ACK and NACK methods
Pass in SDLRPCMessage instead of functionID
@theresalech ready for review |
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.
Testing went well. I found one issue that I elaborated on in the comments.
Fix if sdl_appRequiresEncryption checking
@theresalech ready for review |
@theresalech ready for review |
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.
Request changes
@theresalech ready for review |
clear dictionary
Fix setting requireEncryption to nil
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.
Minor SDLPermissionsManagerSpec
test case fixes needed.
@theresalech ready for review |
Implements #1163
This PR is ready for review.
Risk
This PR makes minor API changes.
Testing Plan
Add unit tests
Summary
Add a public payloadProtected property to RPC Messages. Also automatically check the requireEncryption flag of RPC being sent in the sendRPC method on SDLManager for automatically handling encryption if needed.
CLA