mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 04:05:57 +03:00
[PR #208] [MERGED] Add Docker Security Best Practices to docker-compose file. #808
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#808
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/benbusby/whoogle-search/pull/208
Author: @pred2k
Created: 2/22/2021
Status: ✅ Merged
Merged: 2/26/2021
Merged by: @benbusby
Base:
develop← Head:feature/docker-security📝 Commits (1)
53aa3d4Add Docker Security Best Practices to docker-compose file.📊 Changes
1 file changed (+18 additions, -1 deletions)
View changed files
📝
docker-compose.yml(+18 -1)📄 Description
This adds several security improvement to the docker-compose file to protect the host system.
From CIS Docker Community Edition Benchmark and OWASP Docker Security Cheat Sheet.
I couldn't successfully test a search connection over tor. This didn't even work with a original
benbusby/whoogle-searchimage.I misuse the
debian-toruser (uid 102) to get thetorand thepythonprocess running in the image.Additionaly i would like to discuss two things:
Dockerfile(and set it withUSER ...) to runpython3 -um app .... This allows more specific permission grants for the python app.torprocess should be moved a seperate container and started as a second service via the docker-compose file. This could also make the tor connection more optional.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.