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/allow other usernames with root access #1335

Merged
merged 14 commits into from
Apr 15, 2024

Conversation

JKBGIT1
Copy link
Contributor

@JKBGIT1 JKBGIT1 commented Apr 11, 2024

closes #1297

This PR allows other usernames with root access in the static nodes. claudie-operator checks if a user with the provided username can SSH into the node and whether the user is part of the sudo group. Because if the user isn't in the sudo group Claudie assumes the user doesn't have required root privileges.

If the provided username can't be used for SSH or the user with this username isn't in the sudo group, claudie-operator doesn't start the workflow. Users can see the errors regarding this failure in the logs of the claudie-operator pod only.

Any comments and suggestions are most welcome.

@JKBGIT1 JKBGIT1 self-assigned this Apr 11, 2024
Copy link
Contributor

@cloudziu cloudziu left a comment

Choose a reason for hiding this comment

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

Nice work, thanks!
Left some comments

services/claudie-operator/pkg/controller/controller.go Outdated Show resolved Hide resolved
@JKBGIT1 JKBGIT1 marked this pull request as draft April 12, 2024 10:05
@JKBGIT1 JKBGIT1 marked this pull request as ready for review April 15, 2024 06:48
@JKBGIT1 JKBGIT1 added this pull request to the merge queue Apr 15, 2024
Merged via the queue into master with commit 3bab709 Apr 15, 2024
@JKBGIT1 JKBGIT1 deleted the feat/allow-other-usernames-with-root-access branch April 15, 2024 08:46
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.

Feature: For static nodes, allow other usernames with root access.
3 participants