mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-15 18:15:53 +00:00
feat(paseo): give the paseo user sudo, authenticated with PASEO_PASSWORD
The base image installs no sudo and leaves paseo out of the sudo group, so add both. The password cannot be baked in at build time -- it is a secret and would land in a layer -- and it cannot be set after the base entrypoint, which ends in `exec gosu paseo` and never returns. Wrap that entrypoint instead and set the password while still root, on every start: /etc/shadow lives in the image, not on the /home/paseo volume, so it reverts on each recreate.
This commit is contained in:
1 parent
914474953f
commit
cb1d38f147
4 files changed
+45
-6
No files matched your search
+2
-1
@@ -2,7 +2,8 @@
|
||||
#
|
||||
# cp .env.example .env
|
||||
|
||||
# Password for the daemon API and web UI.
|
||||
# Password for the daemon API and web UI. Doubles as the paseo user's login
|
||||
# password, so it is also what `sudo` asks for inside a terminal.
|
||||
# Generate one with: openssl rand -base64 24
|
||||
PASEO_PASSWORD=
|
||||
|
||||
|
||||
Reference in new issue
Block a user