-
Notifications
You must be signed in to change notification settings - Fork 69
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
Device Shared Secret Authentication #1139
Conversation
c986666
to
c91fd09
Compare
ff1a94e
to
93f55db
Compare
0f8941d
to
7ccb6c6
Compare
118bb0b
to
b8060e1
Compare
All least from my level of review, this looks great, and I think it's really going to help people get started. Thank you so much for all of the effort to push this feature through. |
Thanks @fhunleth, its been my pleasure to get involved. More to come soon! |
86f2dc3
to
9ee83c8
Compare
this is based upon 0d44fc2 with the addition of Product Auth Tokens (needs some naming love)
we seem to be missing a lot of these
4a1d5cb
to
518d87c
Compare
faebc83
to
b220a04
Compare
b220a04
to
bf435e7
Compare
this is based upon 0d44fc2 with the addition of Product Shared Secrets * device token auth strategy requires opt in during runtime * add an `Experimental` badge * improvements to the shared secrets UI * add authorization to the Product Settings LiveView --------- Co-authored-by: Jon Carstens <[email protected]>
This adds support for Shared Secret authentication, which allows Devices to connect to Nerves Hub using a shared key and secret. This is similar to the AWS HMAC signatures used for S3.
This is based on #1136
Some key highlights:
This feature is opt-in, on the server level, using the environment variable
DEVICE_SHARED_SECRET_AUTH
.Some tech bits
I've added a series of useful mounts which are used by a
live_session
. As we expand LiveView usage we can reuse a lot of this structure.And I've added a centralized permissions checking module, abstracting away from checking for
:admin
,:manage
, and:view
.Not included in this PR, but to be added in a future PR...
Screenshots
Updated Product Settings page (now using LiveView)
One active Shared Secret
Two active Shared Secrets, one deactivated
Feature not enabled for the server