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.
In order to provide the ability authenticate data provided by respondd, this pr introduces ed25519 signatures into the responses.
secure_nodeid
This commit introduces the concept of a
secure_nodeid
:secure_nodeid
is technically an ed25519 public key.secure_nodeid
.nodeid
in gluon:nodeid
does not change, when users reflash their device, thesecure_nodeid
will be different.All data returned by respondd is signed using that
secure_nodeid
.Calculation of Signature
The signature is built in the following way:
Verification of Signature
To verify the signature, the following steps have to be done:
auth
,signature
andsecure_nodeid
keys from the json.secure_node_id
).Policies for Data Collection Services
"auth"
json key."auth"
key, can be processed without checking any signature."secure_nodeid"
MUST be forwarded to the nodes.json.secure_nodeid
in the nodes.json that the data has been validated using thatsecure_nodeid
.secure_nodeid
.secure_nodeid
changes its value if the user flashes its device without keeping the config, this policy makes sense.Example Output
The json result looks like this: