-
Notifications
You must be signed in to change notification settings - Fork 4
Sink key management parameters for SetConfigRequest #33
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
Conversation
Add new functions for write only config fields(similar to read only fields) and move key parameters there.
Using a nested dictionary under new_config parameter doesn't follow the existing convention (such as the app_config and earlier key related entries), but it should make it easier to maintain the new_config dictionary in the long run if we have a structure which is more similar to the SinkNewConfig structure in protobuf.
| "app_config_seq": 300, | ||
| "app_config_data": bytes.fromhex("90807060"), | ||
| "channel_map": 120, | ||
| "cipher_key": bytes.fromhex("102030"), |
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.
There is some zero padding in the gw for the keys?
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.
No, the gateway would just return an error if the key size is incorrect. This library doesn't do any checks as long as the protobuf messages are valid. It helps with testing, we can generate "bad" messages using this library.
|
|
||
|
|
||
| def parse_config_keys(message_obj, dic): | ||
| def parse_config_wo(message_obj, dic): |
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.
Or wo_fields?
Adds support for network_keys and management_keys fields under SinkNewConfig, as well as the SINK_KEY_MANAGEMENT_V1 feature flag.