edgexfoundry / edgex-examples

Apache License 2.0
51 stars 52 forks source link

Camera management app does not work in secure mode with V3 code #227

Open vyshali-chitikeshi opened 1 year ago

vyshali-chitikeshi commented 1 year ago

🐞 Bug Report

Affected Services [REQUIRED]

The issue is located in: V3 latest code ### Is this a regression? No ### Description and Minimal Reproduction [**REQUIRED**] Sample camera management app does not work in secure mode. Repro steps: Deploy ONVIF, USB, Edgex compose and camera management app services in secure mode according to documentation Update secure mode to true in camera management Makefile DGEX_SECURITY_SECRET_STORE=true ./$(MICROSERVICE) -cp -d [sample_app_secure_mode_error_0531.txt](https://github.com/edgexfoundry/edgex-examples/files/11619422/sample_app_secure_mode_error_0531.txt) [sample_app_evam_output.txt](https://github.com/edgexfoundry/edgex-examples/files/11619425/sample_app_evam_output.txt) ## πŸ”₯ Exception or Error



Find attached logs.

🌍 Your Environment

Deployment Environment:

EdgeX Version [REQUIRED]:

Anything else relevant?

lenny-goodell commented 1 year ago

Documentation needs to be added on how to configure services so the App service can run in secure mode (i.e. can have a vault token generated for it) https://docs.edgexfoundry.org/2.3/security/Ch-Configuring-Add-On-Services/

vyshali-chitikeshi commented 1 year ago

I looked at recent stories related to sample app, looks like we always had issues with secure mode even with Levski code. So yes, it could be configuration issue and sample app documentation needs to be updated for secure mode.