You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Rafiki offers two different ways to spin up the local playground using Docker Compose:
With Authentication: Spins up the Kratos containers.
Without Authentication: Does not spin up the Kratos containers.
But the third way of accessing Rafiki Admin is by running the Remix app directly in dev mode on your local machine. However, it is annoying when you run this command to get the app up in dev mode, because the application exits with an error stating that no Kratos container URL was provided. Chances are you don't want auth enabled when you're spinning up the app locally since you wouldn't be able to interact with it past the login pages anyway.
Authentication can be disabled by setting AUTH_ENABLED=false, this should ideally be the default behavior when using pnpm dev to spin up the UI. Or at least maybe we could have a note somewhere telling people about this. Or even just remove the dev command option from the package.json file so people know to rather spin it up in dev mode via Docker instead.
Steps to Reproduce
cd into the frontend package and run pnpm dev
Observe the error: No Kratos container URL provided. Expected Behavior:
When running the Rafiki Admin UI in dev mode with AUTH_ENABLED=false, the application should not require a Kratos container URL. This behavior should be default when dev mode is detected to avoid unnecessary configuration hurdles for developers. This way you have access to the app immediately without further config.
Proposed Solution
Set AUTH_ENABLED=false as part of the dev command, or
Add documentation or comments in the relevant files to clarify this behavior for developers, or
Remove the dev command option from the package.json file so people know to rather spin it up in dev mode via Docker instead. The Docker Compose no-auth setup works seamlessly with the Admin UI in dev mode.
The text was updated successfully, but these errors were encountered:
Currently, Rafiki offers two different ways to spin up the local playground using Docker Compose:
But the third way of accessing Rafiki Admin is by running the Remix app directly in dev mode on your local machine. However, it is annoying when you run this command to get the app up in dev mode, because the application exits with an error stating that no Kratos container URL was provided. Chances are you don't want auth enabled when you're spinning up the app locally since you wouldn't be able to interact with it past the login pages anyway.
Authentication can be disabled by setting
AUTH_ENABLED=false
, this should ideally be the default behavior when usingpnpm dev
to spin up the UI. Or at least maybe we could have a note somewhere telling people about this. Or even just remove the dev command option from the package.json file so people know to rather spin it up in dev mode via Docker instead.Steps to Reproduce
cd into the
frontend
package and runpnpm dev
Observe the error: No Kratos container URL provided.
Expected Behavior:
When running the Rafiki Admin UI in dev mode with
AUTH_ENABLED=false
, the application should not require a Kratos container URL. This behavior should be default when dev mode is detected to avoid unnecessary configuration hurdles for developers. This way you have access to the app immediately without further config.Proposed Solution
The text was updated successfully, but these errors were encountered: