hcengineering / huly-selfhost

Huly for Self Hosting
Eclipse Public License 2.0
325 stars 38 forks source link

Default login credentials? #6

Open Cronocide opened 4 months ago

Cronocide commented 4 months ago

What are the default admin credentials, or how are they set up the first time? I've got the accounts service up, but everything I've tried is returning platform:status:AccountNotFound.

kokoali-bima commented 3 months ago

What are the default admin credentials, or how are they set up the first time? I've got the accounts service up, but everything I've tried is returning platform:status:AccountNotFound.

did you get what is the default credentials? I have no idea, where's to create it on docker container?

aonnikov commented 2 months ago

We have neither default credentials nor admin user created 😄 For the first time you can create a user via UI or via command line:

rushx run-local create-account admin -p password -f John -l Doe
rushx run-local assign-workspace admin my-workspace
rushx run-local set-user-role admin my-workspace OWNER
kokoali-bima commented 2 months ago

I have tried to use that command as written on docs. on which container I should use that command on huly docker self host version? I think for docker selfhosted version there is a missing container. maybe a container that we can use rushx command?

aonnikov commented 2 months ago

Ah, the tools are available in the sources only.

There is much simpler way to do this. Just create a new account from UI, when you create a new workspace, it will this account will be an admin account for this workspace.

kokoali-bima commented 2 months ago

I see, thanks for your explanation @aonnikov However, I think I got similar errors as https://github.com/hcengineering/huly-selfhost/issues/15 now. Ok, I will try to fix it.

avl93 commented 2 months ago

Aren't there any "server admin" account, which could, like, manage other users, i.e. enable/disable creation of new accounts?

aonnikov commented 2 months ago

@avl93 nope. The user who created a workspace becomes the owner of this workspace and can manage existing accounts. We do not provide a way to disable creation of new accounts, though.