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

PloverDB should run as user "user" in ITRB-deployed settings #2

Open
saramsey opened this issue Jun 10, 2021 · 7 comments
Open

PloverDB should run as user "user" in ITRB-deployed settings #2

saramsey opened this issue Jun 10, 2021 · 7 comments
Assignees

Comments

@saramsey
Copy link
Member

NCATS DevOps is requesting that the PloverDB service not run as root, inside the container. It should run as a less-privileged user (and we should document the username in the README or Wiki).

@amykglen
Copy link
Member

uwsgi is run as nobody, not root (see this). is there somewhere else they're talking about?

@saramsey
Copy link
Member Author

Hmm, IDK. Is nginx running as root?

@saramsey
Copy link
Member Author

saramsey commented Jul 1, 2021

Just checking back.... can we close out this issue?

@saramsey
Copy link
Member Author

saramsey commented Jul 1, 2021

Maybe it would make sense to slack Kanna to ask b/f we close it out

@amykglen
Copy link
Member

amykglen commented Jul 1, 2021

thanks for the reminder - good idea. will check in with Kanna.

@amykglen
Copy link
Member

amykglen commented Jul 7, 2021

checked in with Kanna for more details - they want us to run all services as user. example code from Kanna:

# Create unprivileged user to run all services
RUN groupadd -g 8888 cureuser && \
    useradd -r -u 8888 -g cureuser cureuser && \
    chown -R cureuser:cureuser /code
#USER cureuser

because PloverDB uses a base image that handles users a certain way, this might get a little weird. but I'm sure is doable.

saramsey added a commit that referenced this issue Jun 28, 2023
@saramsey
Copy link
Member Author

saramsey commented Jun 30, 2023

This seems like an "After the Sept. 28 demo" kind of issue (though still worth doing, just on the longer term).

@saramsey saramsey changed the title PloverDB should not run as root PloverDB should run as user "user" in ITRB-deployed settings Aug 7, 2023
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

No branches or pull requests

2 participants