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: implement CLI commands for user management #763

Merged

Conversation

Unix4ever
Copy link
Member

@Unix4ever Unix4ever commented Dec 9, 2024

Add the UI for showing and editing service accounts.

Added CLI commands:

omnictl user list
omnictl user create <email> --role <role>
omnictl user delete <email>
omnictl user set-role --role <role>

Fixes: #197

@Unix4ever
Copy link
Member Author

Screenshot 2024-12-09 at 18 44 03 Screenshot 2024-12-09 at 18 44 17

@Unix4ever Unix4ever force-pushed the implement-user-cli-service-account-ui branch 6 times, most recently from 9678b6f to f1426e7 Compare December 10, 2024 16:38
return err
}

_, err = safe.StateUpdateWithConflicts(ctx, client.Omni().State(),
Copy link
Member

Choose a reason for hiding this comment

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

the commands seem to be untested (?)

even adding a simple integration test to create/delete/update a user would ensure the commands are not broken in the future

Copy link
Member Author

Choose a reason for hiding this comment

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

good idea. Added the CLI tests for it.

@Unix4ever Unix4ever force-pushed the implement-user-cli-service-account-ui branch from f1426e7 to b1ab823 Compare December 11, 2024 13:03
Add the UI for showing and editing service accounts.
Fixes: siderolabs#197

Signed-off-by: Artem Chernyshev <[email protected]>
@Unix4ever Unix4ever force-pushed the implement-user-cli-service-account-ui branch from b1ab823 to a7b603e Compare December 11, 2024 13:20
Copy link
Member

@smira smira left a comment

Choose a reason for hiding this comment

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

👍

@Unix4ever
Copy link
Member Author

/m

@talos-bot talos-bot merged commit a7b603e into siderolabs:main Dec 11, 2024
22 checks passed
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] User management sync between omnictl and Omni's web UI
3 participants