https://www.orchest.io/ logo
Title
i

Igor Wiese

06/08/2022, 1:34 AM
Hello Everyone. I have an Orchest version: v2022.03.6 installed through Docker. I am playing with the source code, and I did something wrong. I need to remove the authentication because I lost the user password (shame on me). I read the documentation, that recommended to do the following command:
psql -U postgres -d orchest_api

UPDATE settings
SET value = '{"value": false}'
WHERE name='AUTH_ENABLED';
however, there is no database called settings in my Postgre. How should I proceed? In my version, there is a different way to remove the authentication?
👀 1
j

juanlu

06/08/2022, 7:31 AM
hello @Igor Wiese! you can see in the source code that the way to handle settings in older versions was a bit different: https://github.com/orchest/orchest/blob/v2022.03.6/lib/python/orchest-internals/_orchest/internals/utils.py the instructions you refer to were added to our docs after the major refactor we did in the Orchest backend, and therefore don't apply. please have a look at the source code above to turn
AUTH_ENABLED
to
False
, hope it helps!
y

Yannick

06/08/2022, 8:06 AM
To remove authentication in that version is actually rather easy. At that time we still stored a configuration file directly on the host at path:
$XDG_CONFIG_HOME/orchest/config.json
or
~/.config/orchest/config.json
. You can then edit this file and set
AUTH_ENABLED
to
false
. That should do the trick (it might be that a restart is required I don't remember).
👍🏼 1
If you insist on doing it in the source code directly then you could just say every request is authenticated by changing this function
is_authenticated
(source code link).
i

Igor Wiese

06/08/2022, 1:24 PM
thank you @Yannick and @juanlu. I tried to change the config.json (simple solution), but the weird part is that the file has the
AUTH_ENABLED
=
false
. I am running it in a ./orchest start --dev, to reflect some changes I've been testing. I will try to find a solution. Maybe it is better to re-install to the newer version. :)
y

Yannick

06/08/2022, 2:24 PM
I am fairly certain that file changes to the
config.json
should be picked up immediately. Alternatively you can just do
./orchest stop && ./orchest start --dev
👍 1
Feel free to shoot me a DM if things don't work and I'd be happy to pair program on this over a call or something 😉
❤️ 1