Document non-root container, shared login, and data folder permission fix

- PORTAINER_DEPLOY.md: add the chown step needed after the container
  switched to a non-root user, and note EACCES as the symptom if skipped.
- Update CHANGELOG for the shared login, non-root Dockerfile, and
  cap_drop/no-new-privileges hardening.
This commit is contained in:
2026-09-29 18:03:39 -07:00
parent 0f53a159f0
commit d6e83dcdf5
4 changed files with 30 additions and 2 deletions

View File

@@ -2,6 +2,13 @@
All notable changes to this project are logged here, newest first. This file starts from the point the toolkit was handed off and set up in this repo.
## 2026-09-29 (2)
- Added: shared login turned on now that the toolkit is reachable at `MVP.controls.dev`. Username `PrimeMVP`, password generated and set in `.env`/Portainer (not committed; `.env` is gitignored). This is a stopgap ahead of real per-user `APP_USERS` accounts.
- Hardened: `Dockerfile` now runs the container as the built-in non-root `node` user instead of root, since the app is reachable from the public internet.
- Hardened: `docker-compose.yml` drops all Linux capabilities (`cap_drop: [ALL]`) and disables privilege escalation (`security_opt: no-new-privileges:true`) on the container.
- Known follow-up: the `./data` folder on the Docker host was created while the container ran as root. After redeploying, it needs `chown -R 1000:1000 ./data` (or similarly permissive) on the host, or the token quota file and sign-in audit log will silently fail to write under the new non-root user.
## 2026-09-29
- Fixed: the AI draft button returned a 502 ("Could not reach the Anthropic API") once the container moved onto the `proxy` network. Cause: Compose only attaches a container to networks explicitly listed for it, so joining `proxy` alone dropped the container from the network that had internet access. `proxy` reaches other containers but not the public internet. `docker-compose.yml` now lists both `proxy` and `default`, so the container keeps its internet route for the outbound call to `api.anthropic.com` while staying reachable from Nginx Proxy Manager by name.