huly-selfhost icon indicating copy to clipboard operation
huly-selfhost copied to clipboard

Default login credentials?

Open Cronocide opened this issue 1 year ago • 12 comments

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.

Cronocide avatar Apr 17 '24 23:04 Cronocide

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?

kokoali-bima avatar May 18 '24 04:05 kokoali-bima

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

aonnikov avatar Jun 06 '24 04:06 aonnikov

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?

kokoali-bima avatar Jun 06 '24 05:06 kokoali-bima

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.

aonnikov avatar Jun 11 '24 06:06 aonnikov

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.

kokoali-bima avatar Jun 13 '24 16:06 kokoali-bima

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

avl93 avatar Jun 14 '24 11:06 avl93

@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.

aonnikov avatar Jun 17 '24 05:06 aonnikov

@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.

If this is true, then it`s no point of hosting and testing this.... free for all who finds it to just start using. Not a goos security feature or argument to show leaders at work

Hawolex avatar Oct 09 '24 00:10 Hawolex

I deployed this today on a ubuntu machine and got the same problem:

  • don't have any default user/pass to get in
  • don't have an option to create a user

Altho as explained I could create a new user via the web UI but I get the error as mentioned by @kokoali-bima reported in #15

Edit: I tested the fix provided in #36 and I was able to create the use via the web UI

ronzyfonzy avatar Oct 15 '24 12:10 ronzyfonzy

@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.

I agree with @Hawolex Without support to disable account creation, it causes a security nightmare.

DrMxrcy avatar Oct 20 '24 17:10 DrMxrcy

@Hawolex @DrMxrcy we are currently working on this, there will be an announcement soon.

aonnikov avatar Oct 21 '24 07:10 aonnikov

Please check https://github.com/hcengineering/huly-selfhost/issues/55 on disabling sign-up.

lexiv0re avatar Oct 21 '24 08:10 lexiv0re