Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

feat: forward rawBody & hmacSignature on emit #6

Merged
merged 1 commit into from
Aug 4, 2020
Merged

feat: forward rawBody & hmacSignature on emit #6

merged 1 commit into from
Aug 4, 2020

Conversation

nihalgonsalves
Copy link
Contributor

@nihalgonsalves nihalgonsalves commented Aug 3, 2020

The idea here is to allow user-controlled code to perform the validation. The rawBody and HMAC signature can be verified by the homebridge-nello plugin. This backend does not need to know the pre-shared key and therefore, by design, cannot tamper with the data.

The parsed body is retained to maintain backwards-compatibility, but could be eventually removed.

Proposed handling: lukasroegner/homebridge-nello#56

The idea here is to allow user-controlled code to perform the validation. The rawBody and HMAC signature can be verified by the homebridge-nello plugin. This backend does not need to know the pre-shared key and therefore, by design, cannot tamper with the data.
@AlexanderBabel AlexanderBabel merged commit 8d2c2c3 into AlexanderBabel:master Aug 4, 2020
@nihalgonsalves
Copy link
Contributor Author

nihalgonsalves commented Aug 4, 2020

@AlexanderBabel Thanks! Looks like there's a rights issue with the deployment:

https://github.com/AlexanderBabel/nello-backend/runs/944953937?check_suite_focus=true

@AlexanderBabel
Copy link
Owner

No problem.

That's fortunately not an issue, because that was the old deployment way. The new way uses the image from GitHub Packages.

It should be deployed in a few minutes.

@AlexanderBabel
Copy link
Owner

AlexanderBabel commented Aug 4, 2020

Also I added an info page, so that everyone can see if the backend uses the lastest version.

When the deployment has been finished you can find it under: https://nello.alexdev.de

@nihalgonsalves
Copy link
Contributor Author

Nice, thanks! I'll test out lukasroegner/homebridge-nello#56 later today

@nihalgonsalves
Copy link
Contributor Author

Regarding your package.json version issue, you need this: https://github.com/semantic-release/npm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants