gateway: support local root key#109
Merged
Merged
Conversation
Rename class fields to more accurately match the standard Infuse-IoT nomenclature. Signed-off-by: Jordan Yates <jordan@embeint.com>
Extract the common internals from key derivation functions to internal helpers. Signed-off-by: Jordan Yates <jordan@embeint.com>
Enable providing a local root key to the gateway script, which is then passed to the underlying device database for key management. Signed-off-by: Jordan Yates <jordan@embeint.com>
For `VLACompatLittleEndianStruct` subclasses, `vla_counted_by` always exists, but can be `None`. Ensure it is not `None` before attempting to use. Signed-off-by: Jordan Yates <jordan@embeint.com>
Update RPC definitions. Signed-off-by: Jordan Yates <jordan@embeint.com>
Add wrapper for the `security_public_keys` RPC. Signed-off-by: Jordan Yates <jordan@embeint.com>
Add a wrapper for writing a secondary device root key. Signed-off-by: Jordan Yates <jordan@embeint.com>
If a local root identity is provided, query remote devices for secondary public keys and compute shared secrets if the keys match. Signed-off-by: Jordan Yates <jordan@embeint.com>
Add the option to provide the device key ID used for the packet to the key retrieval service. Use this for decrypting data from devices. Signed-off-by: Jordan Yates <jordan@embeint.com>
If we know the shared key from the secondary (local) root key, use that instead of the cloud derived key. Signed-off-by: Jordan Yates <jordan@embeint.com>
Return the key identifier associated with the returned key, as the caller no longer knows the value. Signed-off-by: Jordan Yates <jordan@embeint.com>
Handle observing the secondary device key without raising an exception. Signed-off-by: Jordan Yates <jordan@embeint.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for using a local root device key with the
--rootargument.Depends on the embedded device enabling
CONFIG_INFUSE_SECURITY_SECONDARY_REMOTE_ENABLEand the secondary root being present (can be written withinfuse rpc security_key_update --secondary-root root.pem)