Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: properly fix permissions on image #198

Closed
wants to merge 1 commit into from
Closed

Conversation

yrobla
Copy link
Contributor

@yrobla yrobla commented Dec 4, 2024

No description provided.

@@ -30,14 +30,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

# Create a non-root user and switch to it
RUN adduser --system --no-create-home codegate --uid 1000
RUN useradd -rm -d /home/codegate -s /bin/bash -g root -G sudo -u 1001 codegate
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, useradd and adduser are equivalents. I'll ack if this moves us forward, but as a general comment I don't understand why we need sudo and why we need the root group.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having documentation about the need for sudo and the root group would be ideal. I would have flagged this as a potential vuln, actually.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's hold for now. I needed that because i was hacking the backup/restore of weaviate_data folder for backup. But i am working on proper backup/restore methods

@yrobla yrobla closed this Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants