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

Fix deployment user permissions #112

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bensofficial
Copy link
Member

@bensofficial bensofficial commented Dec 17, 2024

Up until now, the deployment user was in the sudo group and was therefore able to execute all commands.
This somehow circumvented the usage of our roles/artemis/templates/artemis_deployment_sudoers.j2 template.

With this change, we remove the deployment user from the sudo and artemis group so that the deployment user has only minimal access rights.
Additionally, the deployment user was able to execute arbitrary commands in the docker container using the deployment script and exec provided by docker compose. Especially as we want the deployment user not to be able to read the configuration and secrets, we now limit the set of commands of the artemis-docker.sh script to restart.

@bensofficial bensofficial added bug Something isn't working role.artemis labels Dec 17, 2024
@bensofficial bensofficial requested review from Mtze and Hialus December 17, 2024 10:25
@bensofficial bensofficial self-assigned this Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working role.artemis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant