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

Merged
merged 4 commits into from
Jan 7, 2025
Merged

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
Copy link
Member

@Hialus Hialus left a comment

Choose a reason for hiding this comment

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

Thanks for this first part of the fix

@Hialus Hialus merged commit c5767c9 into main Jan 7, 2025
2 checks passed
@Hialus Hialus deleted the fix/deployment-user-permissions branch January 7, 2025 15:08
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.

2 participants