Skip to content

chore(build): Allow to specify SUDO env var to elevate privileges#355

Merged
raphael0202 merged 1 commit intoopenfoodfacts:mainfrom
VaiTon:make-sudo
Mar 9, 2026
Merged

chore(build): Allow to specify SUDO env var to elevate privileges#355
raphael0202 merged 1 commit intoopenfoodfacts:mainfrom
VaiTon:make-sudo

Conversation

@VaiTon
Copy link
Copy Markdown
Member

@VaiTon VaiTon commented Feb 11, 2026

This allows a user that does not have access to the docker socket to declare the SUDO env var before running make.

SUDO=sudo make up
# or
export SUDO=sudo
make up

This allows a user that does not have access to the docker socket to
declare the SUDO env var before running make.
SUDO=sudo make up
or
export SUDO=sudo
make up
@github-project-automation github-project-automation Bot moved this to Backlog (ready for dev) in 🔎 Search-a-licious Feb 11, 2026
@github-actions github-actions Bot added the 📚 Documentation Improvements or additions to documentation label Feb 11, 2026
@VaiTon
Copy link
Copy Markdown
Member Author

VaiTon commented Mar 3, 2026

@alexgarel @raphael0202 bump

@raphael0202
Copy link
Copy Markdown
Contributor

I'm not sure to understand why you're doing this, you have sudo access locally but can't add your user to the docker group?

@VaiTon
Copy link
Copy Markdown
Member Author

VaiTon commented Mar 6, 2026

I'm not sure to understand why you're doing this, you have sudo access locally but can't add your user to the docker group?

I don't want to. Sudo asks for my password, while having unrestricted access to the root docker daemon allows privesc.

@raphael0202
Copy link
Copy Markdown
Contributor

Indeed, that's valid!

@github-project-automation github-project-automation Bot moved this from Backlog (ready for dev) to In Progress in 🔎 Search-a-licious Mar 9, 2026
@raphael0202 raphael0202 merged commit 920bcee into openfoodfacts:main Mar 9, 2026
12 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in 🔎 Search-a-licious Mar 9, 2026
@VaiTon VaiTon deleted the make-sudo branch March 12, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📚 Documentation Improvements or additions to documentation

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants