TC11.02 - Personal Data regarding IOT Devices on User profile devices and Keys

Test Case Title

TC11.02 - Personal Data regarding IOT Devices on User profile devices and Keys

Goal

The goal for this test case is to present a scenario that enable a secure access to the user for its personal IOT Device. The device is firstly registered in the system via the IOT Directory module and secondly access via an IOT Application on a secure communication system.

Prerequisites

A snap4city user registered, capability of creating an IOT APP via NodeRED.

The following functionalities are available only for specific Snap4city users with specific privileges.

Expected successful result

The data retrieved by the registered IOT Device are only accessible to the owner of the device.

Steps

 

 

Please note that some of the following links could be accessible only for registered users.

  1. To demonstrate the test case “Personal Data regarding IOT Devices on User profile devices and Keys”, go to the Snap4city Portal and make the Login using the snap4city user credentials.
  2. The user is redirect to his/her Main Page.
     

     
  3. To register a new IOT device in a secure way, please click in the menu IOT Directory and Devices à IOT devices
     

     
  4. Click on the New Device button

     
  5. Fill the information for your IOT device (in this case we present an example with an Rasberry IOT device). Important to note: make visibility Private to avoid this IOT Device became public
     

     
  6. Check the information on the second tab “IOT Broker” as below
     

     
  7. Define the location of your IOT device clicking on the map presented in the tab “Position”
     

     
  8. Describe the sensor information your IOT device is capable in the tab “Values” and press confirm
     

     
  9. The IOT device now is registered in the system. You can check the information of your IOT device digiting the name of the device you choose in the name field of the list as below. If you click also on the “+” button, to retrieve more information about your IOT device
     

     
  10. The information showed below the “+” button also present the credentials you have to use to access the IOT device in a secure way. Don’t share this information with anybody. These data are recorder in a secure way in the My Personal Data database in a cyphered way and nobody can access these data without your explicitly delegation. The information you will need later are a couple of Keys (K1 and K2) and the IOT Broker URI.
     

     
  11. To demonstrate that just the owner of the registered IOT device can access the information from its IOT device we use an IOT Application, available to the user clicking on the left menu “IOT Application
     

     
  12. You can select the application nr24

     
  13. And click Enter to been able to edit/manage the IOT Application
     

     
  14. A simple IOT Application is showed. Via this application it is possible to
    Simulate the sending information from your IOT DEVICE
    Receive the status of your IOT DEVICE
    Subscribe to be informed whenever the status of the IOT DEVICE change
    To been able to access the data from your IOT device you need to configure properly some information in the three nodes as showed below. Mainly you need to insert the information retrieved at point 10

     
  15. For all the three nodes above you need to double click and edit the information. Please configure for all of them the the IOT broker as below, insert the information retrieved in the point 10
     


     
  16. For the first node (Fiware Orion TEST) you need to configure the node as below (using information retrieved at point 10)
     

     
  17. For the second node (Fiware Orion Query) you need to configure the node as below (using information retrieved at point 10)
     

     
  18. For the third node (Fiware Orion) you need to configure the node as below (using information retrieved at point 10)
     

     
  19. You need to deploy to confirm the updates
     

     
  20. You can now test the three scenarios, clicking on the first node to inject a new data, to the second one to check the data that has been sent and the third one to be notificate in case of any changes. You can try to update the element “temperature1” via the “Fiware Orion Test” sending a new value of temperature and via the “Fiware Orion Query” you can check that “temperature1” has been changed. All these information regarding the IOT Device are accessible just to the owner of the IOT Device. The keys are stored in a secure way in the “My Personal Data” and all the communication are made using a secure communicating system (https).