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

[FEATURE] Admin Panel #125

Open
WirtsLegs opened this issue Nov 25, 2024 · 5 comments
Open

[FEATURE] Admin Panel #125

WirtsLegs opened this issue Nov 25, 2024 · 5 comments
Labels
enhancement New feature or request
Milestone

Comments

@WirtsLegs
Copy link

WirtsLegs commented Nov 25, 2024

Is your feature request related to a problem? Please describe.
Currently admin is user with id 1, this is a problem if you transitioned to SSO after initially having a test user, or if you for any other reason need to change the admin user

Describe the solution you'd like
Add a method to change the admin user, ideas would be

  1. a script in the container we can exec with a username to change the admin
  2. a env var we can set with the admin's name
    and then something that would be good regardless of other options used
  3. Be able to set a group name that if the user is a member of (from idP/OIDC claims) they have admin access.

Describe alternatives you've considered
Only fix right now is to destroy the instance and rebuild being careful to make the first user the intended admin, not ideal for obvious reasons

Additional context
No additional context

@WirtsLegs WirtsLegs added the enhancement New feature or request label Nov 25, 2024
@jordan-dalby
Copy link
Owner

This should go hand-in-hand with an admin panel of some description, I'm thinking:

  • Manage users, make people standard users / admin
  • That's it, don't ask me why this is a list

@jordan-dalby jordan-dalby changed the title [FEATURE] Method to set admin user [FEATURE] Admin Panel Nov 25, 2024
@github-project-automation github-project-automation bot moved this to Backlog in ByteStash Nov 25, 2024
@jordan-dalby jordan-dalby added this to the Backlog milestone Nov 25, 2024
@WirtsLegs
Copy link
Author

This should go hand-in-hand with an admin panel of some description, I'm thinking:

* Manage users, make people standard users / admin

* That's it, don't ask me why this is a list

yeah some way to manage other users would be good

just please if possible include some way to set a admin via a script or exec call in the container or w/e else so that logging in as the actual admin isn't required.

@WirtsLegs
Copy link
Author

WirtsLegs commented Dec 5, 2024

Another thing to consider on this, a way to change ownership of snippets

I was fiddling with integrating a social login to my IDP and deleted and re-created my account to test (giving my keycloak account a new id), now my snippets are not owned by me anymore. I managed to fix it with some manual sqllite but having a tool in UI for that would be great

@jordan-dalby
Copy link
Owner

@WirtsLegs Yeah perhaps a transfer all snippets to new account option, something like that.

@WirtsLegs
Copy link
Author

@WirtsLegs Yeah perhaps a transfer all snippets to new account option, something like that.

Probably just like an admin option to delete an account, when you do that you get a prompt on whether you want to delete the users snippets as well or transfer them to another account, if you select transfer you have to pick who to transfer to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants