Resolve "[Docker] Do not run as root" #2189

Merged
hansegucker merged 9 commits from 409-docker-do-not-run-as-root into master 2021-03-23 17:47:49 +01:00
Owner

Closes #409

This MR also partially addresses #403 because fixing the permissions on the data required touching the volumes anyway. But it is not complete — especially, the static root should not be writable by www-data.

Closes #409 This MR also partially addresses #403 because fixing the permissions on the data required touching the volumes anyway. But it is not complete — especially, the static root should not be writable by `www-data`.
Author
Owner

added 1 commit

  • ce183405 - [Docker] Drop privileges to www-data after container build

Compare with previous version

added 1 commit <ul><li>ce183405 - [Docker] Drop privileges to www-data after container build</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/544/diffs?diff_id=6169&start_sha=57fe7befb81ab968c55350a5fe5bc43504d0211e)
Author
Owner

added 2 commits

  • 280434aa - Run `collectstatic` at build time
  • 74eb629e - [Docker] Honour storage locations and declare volumes correctly

Compare with previous version

added 2 commits <ul><li>280434aa - Run `collectstatic` at build time</li><li>74eb629e - [Docker] Honour storage locations and declare volumes correctly</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/544/diffs?diff_id=6177&start_sha=ce183405ad384f755952aa66e2fddb9f4a877114)
Author
Owner

changed the description

changed the description
Author
Owner

assigned to @hansegucker and unassigned @nik

assigned to @hansegucker and unassigned @nik
Author
Owner

requested review from @debdolph

requested review from @debdolph
Author
Owner

added 1 commit

  • b7156de7 - [Docker} Do not declare static root as volume

Compare with previous version

added 1 commit <ul><li>b7156de7 - [Docker} Do not declare static root as volume</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/544/diffs?diff_id=6184&start_sha=74eb629e982fb0311d1348a0dc572eea14961ee7)
Author
Owner

added 1 commit

  • d99ebffc - Use media storage for maintenance mode state file

Compare with previous version

added 1 commit <ul><li>d99ebffc - Use media storage for maintenance mode state file</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/544/diffs?diff_id=6190&start_sha=b7156de723bf1d897220e090f907eb03347d4d9d)
Author
Owner

added 1 commit

  • e973795f - [Docker] Use numeric user ID in USER to not confuse K8s

Compare with previous version

added 1 commit <ul><li>e973795f - [Docker] Use numeric user ID in USER to not confuse K8s</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/544/diffs?diff_id=6197&start_sha=d99ebffcdb31e3ae9ff19d9d6e728ed62c10d50e)
Author
Owner

added 2 commits

  • 1b4ba2a2 - Use media storage for maintenance mode state file
  • fc9837d7 - [Docker] Use numeric user ID in USER to not confuse K8s

Compare with previous version

added 2 commits <ul><li>1b4ba2a2 - Use media storage for maintenance mode state file</li><li>fc9837d7 - [Docker] Use numeric user ID in USER to not confuse K8s</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/544/diffs?diff_id=6200&start_sha=e973795fa80c5f1c926f8af661469e4d6e0410d4)
Author
Owner

added 5 commits

  • bdcb1036 - Run `collectstatic` at build time
  • 1f2833ac - [Docker] Honour storage locations and declare volumes correctly
  • 8194a7d0 - [Docker} Do not declare static root as volume
  • da0050cc - Use media storage for maintenance mode state file
  • 39df0f57 - [Docker] Use numeric user ID in USER to not confuse K8s

Compare with previous version

added 5 commits <ul><li>bdcb1036 - Run `collectstatic` at build time</li><li>1f2833ac - [Docker] Honour storage locations and declare volumes correctly</li><li>8194a7d0 - [Docker} Do not declare static root as volume</li><li>da0050cc - Use media storage for maintenance mode state file</li><li>39df0f57 - [Docker] Use numeric user ID in USER to not confuse K8s</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/544/diffs?diff_id=6202&start_sha=fc9837d7bb52bf765f03d7725b38871b140dc3ea)
Author
Owner

added 4 commits

  • 0d5c0fbd - [Docker] Honour storage locations and declare volumes correctly
  • 86a9b0e8 - [Docker] Do not declare static root as volume
  • e6762257 - Use media storage for maintenance mode state file
  • 1b6fd8ef - [Docker] Use numeric user ID in USER to not confuse K8s

Compare with previous version

added 4 commits <ul><li>0d5c0fbd - [Docker] Honour storage locations and declare volumes correctly</li><li>86a9b0e8 - [Docker] Do not declare static root as volume</li><li>e6762257 - Use media storage for maintenance mode state file</li><li>1b6fd8ef - [Docker] Use numeric user ID in USER to not confuse K8s</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/544/diffs?diff_id=6204&start_sha=39df0f57cb6f13391368c09b0e7e8c86addf4299)
Author
Owner

marked this merge request as ready

marked this merge request as **ready**
Author
Owner

marked this merge request as draft

marked this merge request as **draft**
Author
Owner

added 2 commits

  • 214f5bb4 - Use media storage for maintenance mode state file
  • fd9c6006 - [Docker] Use numeric user ID in USER to not confuse K8s

Compare with previous version

added 2 commits <ul><li>214f5bb4 - Use media storage for maintenance mode state file</li><li>fd9c6006 - [Docker] Use numeric user ID in USER to not confuse K8s</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/544/diffs?diff_id=6205&start_sha=1b6fd8ef5a80e8af788f5ec4537b82fc004758ed)
Author
Owner

marked this merge request as ready

marked this merge request as **ready**
Author
Owner

marked this merge request as draft

marked this merge request as **draft**
Author
Owner

added 3 commits

  • dba23b95 - Run poetry update
  • d12a111d - Merge branch 'feature/poetry-update' into 409-docker-do-not-run-as-root
  • 35ea4686 - Use `DefaultStorageBackend` from upstream django-maintenance-mode

Compare with previous version

added 3 commits <ul><li>dba23b95 - Run poetry update</li><li>d12a111d - Merge branch &#39;feature/poetry-update&#39; into 409-docker-do-not-run-as-root</li><li>35ea4686 - Use `DefaultStorageBackend` from upstream django-maintenance-mode</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/544/diffs?diff_id=6211&start_sha=fd9c6006b54325ccff02aabcedbf09c82bb9552b)
Author
Owner

marked this merge request as ready

marked this merge request as **ready**
Author
Owner

mentioned in merge request !2194

mentioned in merge request !2194
Owner

approved this merge request

approved this merge request
Owner

There are some merge conflicts.

There are some merge conflicts.
Owner

approved this merge request

approved this merge request
Author
Owner

added 6 commits

  • 35ea4686...6560c434 - 5 commits from branch master
  • 7e458d32 - Merge branch 'master' into 409-docker-do-not-run-as-root

Compare with previous version

added 6 commits <ul><li>35ea4686...6560c434 - 5 commits from branch <code>master</code></li><li>7e458d32 - Merge branch &#39;master&#39; into 409-docker-do-not-run-as-root</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/544/diffs?diff_id=6244&start_sha=35ea4686be33e0c0c55a910d9ad7daeaaad3c3e0)
nik scheduled this pull request to auto merge when all checks succeed 2021-03-23 17:33:54 +01:00
nik merged commit c6f14fe12b into master 2021-03-23 17:47:49 +01:00
Author
Owner

mentioned in commit c6f14fe12b

mentioned in commit c6f14fe12bd593ccbb29dbab165aa67e3bc62202
tteichler approved these changes 2026-07-30 18:34:26 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-Core!2189
No description provided.