Code Monkey home page Code Monkey logo

Comments (4)

cncoder avatar cncoder commented on May 23, 2024

Sorry to reply late.
After verifying the Token, you can check the corresponding certArn field based on seriaNumber. If the certArn field is not empty, the certificate is refused to be issued to the device. If the certArn field is empty, it proves that no certificate has been requested. Use this method to ensure that a seriaNumber has only one certificate.

from aws-iot-certificate-vending-machine.

xwdreamer avatar xwdreamer commented on May 23, 2024

Hi, the lastest version have realize my requirement which ensure one serialNumber only has one Certificate.
When one serialNumer apply one Certificate successfully, the next time I reqeust the same url, it will reply "null", same as this issure #6

My question is which function check the serialNumber has apply for one certificate.
As I know:

  1. fucntion applycert focus on "create Apply cert & Attach thing, policy"
  2. function putCertinfo focus on "Put IoT cert info into Dynamodb"

from aws-iot-certificate-vending-machine.

eercanayar avatar eercanayar commented on May 23, 2024

There is no check for that. I've implemented that kind of checks by myself. By the way, we should discuss that should it response an error or the certs again? Maybe the device lost its certs and asking for them again.

I'll create a PR today for some checks, covers #6 and #7. Keep in mind that this lambda implementation isn't production-ready. There are lots of things to do and discuss for an healthy IoT device lifecycle.

from aws-iot-certificate-vending-machine.

xwdreamer avatar xwdreamer commented on May 23, 2024

@eercanayar , so much agree with you.
Maybe the device lost its cert or saved its cert failed, we should consider more abnormal scenarios.
For the topic of healthy IoT device lifecycle, can you give some best practices?

from aws-iot-certificate-vending-machine.

Related Issues (7)

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.