Azure / pcs-remote-monitoring-webui

Azure IoT PCS Remote Monitoring Web UI
MIT License
54 stars 72 forks source link

"Access denied" after replacing webapp container image with a private image #1217

Closed isaac-dasan closed 5 years ago

isaac-dasan commented 5 years ago

Type of issue

Description

After replacing webapp container image with a private image and restarting the application, existing users get "Access Denied" message.

...

Steps to reproduce

  1. Log in to VM
  2. Open docker-compose.yaml file
  3. replace web-ui container with a private one
  4. start the app using the following steps
    • sudo docker stop $(sudo docker ps -a -q)
    • sudo docker rm $(sudo docker ps -a -q)
    • sudo docker rmi $(sudo docker images -q) -f
    • sudo /app/start.sh

Expected behavior

Existing users should retain their access

Current behavior <!-- The actual behavior observed --

Existing users didn't retain their access

Known workarounds

restart in "unsafe" mode

Possible solution

...

Context and Environment

Screenshot

isaac-dasan commented 5 years ago

I followed the same steps in another deployment but couldn't reproduce.

isaac-dasan commented 5 years ago

image

https://docs-sample.azurewebsites.net/

isaac-dasan commented 5 years ago

image

Interestingly the services do not throw auth error

isaac-dasan commented 5 years ago

image

The call to auth service returns the above payload. So there must be some issue with auth service.