FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

npm install shows docker registry password

Open fpintos opened this issue 7 years ago • 3 comments

On a Windows 10 machine, I've cloned the repo and ran npm install without having Docker Desktop running.

I was greeted by error messages like these, which included a password:

> root@ postinstall:r11s D:\FluidFramework
> cd server/routerlicious && npm run registryAuth


> root@ registryAuth D:\FluidFramework\server\routerlicious
> docker login -u prague -p A_PASSWORD_WAS_HERE prague.azurecr.io

WARNING! Using --password via the CLI is insecure. Use --password-stdin.
error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/auth: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
npm ERR! code ELIFECYCLE
npm ERR! errno 1                                                                                                        
npm ERR! root@ registryAuth: `docker login -u prague -p A_PASSWORD_WAS_HERE prague.azurecr.io`             
npm ERR! Exit status 1                                                                                                  

After starting Docker, install succeeds. It still shows the password in the log - do we care about it?

fpintos avatar Sep 26 '19 02:09 fpintos

The password being shown isn’t an issue at the moment, but should be addressed eventually. We can use this issue to track that. The other issue is tracked by #41.

tylerbutler avatar Sep 29 '19 05:09 tylerbutler

It's an intentionally insecure thing we've done to simplify the setup process and keep as few commands as possible to get up and running.

We will need to remove prior to open sourcing. At which point the containers should be available on the public Docker Hub.

kurtb avatar Oct 03 '19 01:10 kurtb

This is removed in PR #2148 already

curtisman avatar May 17 '20 05:05 curtisman