FIWARE / tutorials.PEP-Proxy

:closed_book: FIWARE 404: Securing Microservices and IoT Devices with a PEP Proxy
https://fiware-pep-proxy.rtfd.io/
MIT License
7 stars 15 forks source link

Cannot import collection in Postman and cannot start Northport example #18

Open zeldalegends opened 2 years ago

zeldalegends commented 2 years ago

Hi, I have noticed two main issues:

Postman for Web Version 9.25.3-220722-0800 Chrome 103 / Windows 10

https://gitpod.io/#https://github.com/FIWARE/tutorials.PEP-Proxy/tree/NGSI-LD

gitpod /workspace/tutorials.PEP-Proxy (NGSI-LD) $ ,/services create
Pulling docker images
[...]
   ⠿ ad3ec1ab4180 Pull complete                                                                                                                          21.9s
gitpod /workspace/tutorials.PEP-Proxy (NGSI-LD) $ ./services northport
Stopping containers
Warning: No resource found to remove for project "fiware".
Starting seven containers Orion, IoT-Agent, Keyrock, Wilma, Tutorial and MongoDB and MySQL databases.
- Orion is the context broker
- IoT-Agent is configured for the UltraLight Protocol
- Tutorial acts as a series of dummy IoT Sensors over HTTP
- Keyrock is an Identity Management Front-End
- Wilma as a PEP Proxy between Orion and the IoT-Agent

[+] Running 3/1
 ⠿ Network fiware_default    Created                                                                                                                      0.1s
 ⠿ Volume "fiware_mongo-db"  Created                                                                                                                      0.0s
 ⠿ Volume "fiware_mysql-db"  Created                                                                                                                      0.0s
cycle found: tutorial -> iot-agent -> iot-agent
gitpod /workspace/tutorials.PEP-Proxy (NGSI-LD) $ docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
gitpod /workspace/tutorials.PEP-Proxy (NGSI-LD) $ 

gitpod /workspace/tutorials.PEP-Proxy (NGSI-LD) $ ./services northport
Stopping containers
[+] Running 3/3
 ⠿ Volume fiware_mongo-db  Removed                                                                                                                        0.0s
 ⠿ Network fiware_default  Removed                                                                                                                        0.2s
 ⠿ Volume fiware_mysql-db  Removed                                                                                                                        0.0s
Starting seven containers Orion, IoT-Agent, Keyrock, Wilma, Tutorial and MongoDB and MySQL databases.
- Orion is the context broker
- IoT-Agent is configured for the UltraLight Protocol
- Tutorial acts as a series of dummy IoT Sensors over HTTP
- Keyrock is an Identity Management Front-End
- Wilma as a PEP Proxy between Orion and the IoT-Agent

[+] Running 3/0
 ⠿ Network fiware_default    Created                                                                                                                      0.1s
 ⠿ Volume "fiware_mysql-db"  Created                                                                                                                      0.0s
 ⠿ Volume "fiware_mongo-db"  Created                                                                                                                      0.0s
cycle found: tutorial -> iot-agent -> iot-agent
gitpod /workspace/tutorials.PEP-Proxy (NGSI-LD) $ docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
gitpod /workspace/tutorials.PEP-Proxy (NGSI-LD) $ 
jason-fox commented 2 years ago

Not all of the security tutorials have been fully ported over to NGSI-LD yet. This NGSI-LD tutorial is incomplete and has not been added to ngsi-ld-tutorials.readthedocs.io yet. The principles of securing FIWARE are orthogonal to the version used, so for the moment you should use the NGSI-v2 PEP-Proxy tutorial which is the master branch.

cycle found: tutorial -> iot-agent -> iot-agent has now been fixed 24d32cf but other parts of the tutorial are still incomplete