airship icon indicating copy to clipboard operation
airship copied to clipboard

Docker Pgsql Setup

Open kelunik opened this issue 8 years ago • 5 comments

In the future we should improve the Docker setup to disable password less access to the Docker container for all other Docker containers. I don't have a solution for this right now.

Additionally, we should generate a random password for the airship user (currently uses secret) and skip the database setup page completely. This also eases the setup even more, as there's one configuration page less.

kelunik avatar Jul 03 '16 19:07 kelunik

So, this is how this will have to work.

  1. Create a random password, store it in src/tmp/installing.json.
  2. Also create the installer token.
  3. Give the user a URL that stores the installer token in their cookie; expect them to use that URL.

paragonie-scott avatar Jul 03 '16 21:07 paragonie-scott

@kelunik potentially offtopic but if we want this on Docker Hub how would we accomplish that part?

co60ca avatar Jul 04 '16 00:07 co60ca

@co60ca: That's the thing I've always been unsure with. It has to happen at runtime then, but in that case it would already have to have a default password.

kelunik avatar Jul 04 '16 06:07 kelunik

We now have tentative support for UNIX sockets, so we should no longer need a password, if I understand correctly.

paragonie-scott avatar Jul 06 '16 01:07 paragonie-scott

Also worth looking at: https://github.com/paragonie/airship/blob/master/tools/installer_step_1.php

paragonie-scott avatar Jul 17 '16 20:07 paragonie-scott