pixeleye-io / pixeleye

The batteries-included platform for visually testing and reviewing your UI; it's even self-hostable! Connect your codebase with our many integrations and dramatically increase your test coverage in minutes.
https://pixeleye.io/home
GNU Affero General Public License v3.0
89 stars 3 forks source link

Question: How to manage users on self-hosted system? #331

Closed ngraf closed 4 months ago

ngraf commented 5 months ago

Given I started a self-hosted pixel-eye instance following the guide at https://pixeleye.io/docs/guides/self-hosting When I open http://localhost:3000/ I get asked to create an account.

I wonder if the intention is that user management works exactly the same like on pixeleye.io. I'd rather like to skip the whole user management, since I will share this self-hosted instance just with my colleagues. If user management is intended, then how how do I enable the PixelEye to send out verification e-mails? I have the impression this is not a functional feature of the default self-hosted configuration?

Well, in the end I am just asking for more documentation in https://pixeleye.io/docs/guides/self-hosting what my options are to set up a functional user management in self-hosted scenario.

AlfieJones commented 5 months ago

Yeah we use the exact same management as on Pixeleye.io.

You can actualy disable the verification page by removing this https://github.com/pixeleye-io/pixeleye/blob/main/docker/config/template.kratos.yml#L47C1-L52C68

But this will mean manually inviting users won't work.

To get it all working, you'll need an smtp server up and to change https://github.com/pixeleye-io/pixeleye/blob/main/docker/config/template.kratos.yml#L104 along with https://github.com/pixeleye-io/pixeleye/blob/main/docker/docker-compose-self-hosting.yml#L100-L102

AlfieJones commented 5 months ago

The self hosted docker compose comes with oryd/mailslurper:latest-smtps pre-configured so you can also use that to monitor the emails sent.

It's exposed on ports "4436" & "4437" (I forget which is the managment ui)

Anyone with access to this management ui would be able to reset anyones passwords but in a private environment it should be fine

sschneider-ihre-pvs commented 5 months ago

I didn't even managed to get self hosting to work. it is blocked by the kratos container not having /etc/config/kratos/kratos.yml not a file or directory

AlfieJones commented 4 months ago

@sschneider-ihre-pvs Have you copied the config directory from https://github.com/pixeleye-io/pixeleye/tree/main/docker/config ?

hinogi commented 4 months ago

@sschneider-ihre-pvs Have you copied the config directory from https://github.com/pixeleye-io/pixeleye/tree/main/docker/config ?

you mean, manually into the docker container?

AlfieJones commented 4 months ago

You just need it alongside the compose file. You can see examples of where the docker-compose accesses files inside the config e.g https://github.com/pixeleye-io/pixeleye/blob/main/docker/docker-compose-self-hosting.yml#L24C1-L24C24

hinogi commented 4 months ago

well I started from the docker folder with docker-compose -f docker-compose-self-hosting.yml up -d and kratos never worked

AlfieJones commented 4 months ago

Could you post your logs?

sschneider-ihre-pvs commented 4 months ago
Error: open /etc/config/kratos/kratos.yml: no such file or directory
Usage:
  kratos serve [flags]
Flags:
  -c, --config strings   Path to one or more .json, .yaml, .yml, .toml config files. Values are loaded in the order provided, meaning that the last config file overwrites values from the previous config file.
      --dev              Disables critical security features to make development easier
  -h, --help             help for serve
      --sqa-opt-out      Disable anonymized telemetry reports - for more information please visit https://www.ory.sh/docs/ecosystem/sqa
      --watch-courier    Run the message courier as a background task, to simplify single-instance setup
open /etc/config/kratos/kratos.yml: no such file or directory
AlfieJones commented 4 months ago

Ahh, the file had been renamed, The latest ./config dir should work now

hinogi commented 4 months ago

still doesn't work. Also, the url setting are stored in two places, the docker yml and the kratos yml

hinogi commented 4 months ago
Application error: a server-side exception has occured (see server logs for more information)
hinogi commented 4 months ago

Status 403

hinogi commented 4 months ago

Seems to be an issue with using service names for urls via intranet network

hinogi commented 4 months ago

even changing the urls does not make it work

hinogi commented 4 months ago

Backend always tries to connect to rabbitmq via localhost and fails.

AlfieJones commented 4 months ago

What machine are you using? It seems to work fine for me on both windows and linux

hinogi commented 4 months ago

That would be a Ubuntu server

hinogi commented 4 months ago

I changed ports in the docker file to avoid port collision but that seems to be not expected by the whole setup

AlfieJones commented 4 months ago

Would it be possible to share all the logs?

hinogi commented 4 months ago

that are a lot of logs from a lot of containers I guess?!

AlfieJones commented 4 months ago

I can't really help any more unless I can see them