Giter VIP home page Giter VIP logo

Comments (7)

ronniesa avatar ronniesa commented on July 26, 2024 1

AppKey, NtwSKey, AppSKey are stored as twin through the normal IoT Hub device twin support. They are stored by IoT Hub itself. We don't store it somewhere else. So no DBs are involved.

from iotedge-lorawan-starterkit.

Ellerbach avatar Ellerbach commented on July 26, 2024

Hi, I guess this part of the documentation (to be merged further) should help you understand the full mechanism:
https://github.com/Azure/iotedge-lorawan-starterkit/blob/dev-0.2-LoRent/LoRaEngine/README.md
Let me know if you still have questions

from iotedge-lorawan-starterkit.

ronniesa avatar ronniesa commented on July 26, 2024

The above doc is outdated, The attached sequence diagram is the correct one.
We have re-architected the use of twins for the authentication / decryption part in the dev-02 (will be soon published as next preview). Edge NtwSrv queries the IoT Hub registry to get the identity after that everything is done in the NtwSrv itself, gets the twins (AppKey, AppEUI, etcc), generate the LoRa keys (NtwSKey, AppSKey) and saves it back to the twins and send the join accept. So yes it the Edge module is responsible to auth, decrypt etc.. at uses the twin as DB. Currently we still need an Azure function for multi gateway support and for getting the IoT device "impersonation" identity. We are looking to improve this part too in the future.

sequence diagram

from iotedge-lorawan-starterkit.

smoms avatar smoms commented on July 26, 2024

@ronniesa @Ellerbach many thanks, much better now.
Couple of questions: I am bit confused on step 4: where does instead azure function store the app key (aka device key) if it is not demo version?
why in the diagram you say that only network server is downloaded from the ACR, what about packet forwarder?

from iotedge-lorawan-starterkit.

ronniesa avatar ronniesa commented on July 26, 2024

Both modules are retrived from a container registry can be ACR or Docker Hub or other containers registry. The schema in the not yet published doc is not complete.

You provision the device with DevEUI as deviceId and AppKey in the twins as descibed in the lora device provisionig chapter: https://github.com/Azure/iotedge-lorawan-starterkit/blob/dev-0.2/README.md

We will have a cli tool for provisionig device with autogenerate key in the future. Currently you need to generate the key yourself.

from iotedge-lorawan-starterkit.

smoms avatar smoms commented on July 26, 2024

@ronniesa thanks, then i presume you do need to adjust the numbered diagram..
And what about the first question?

from iotedge-lorawan-starterkit.

Mandur avatar Mandur commented on July 26, 2024

I will close the issue for now, please feel free to reopen in case you need additional information

from iotedge-lorawan-starterkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.