postgresql_cluster icon indicating copy to clipboard operation
postgresql_cluster copied to clipboard

fix: use appropriate environment variable to pass the auth token to the UI app

Open gsalingu opened this issue 1 month ago • 7 comments

Fix for https://github.com/vitabaks/autobase/issues/1354

gsalingu avatar Nov 23 '25 21:11 gsalingu

There is no need for this change.

See comment https://github.com/vitabaks/autobase/issues/1354#issuecomment-3568816545

vitabaks avatar Nov 24 '25 04:11 vitabaks

Hmmm a fix for that issue is definitely necessary :)

Have you tried following your official setup guide to the dot? It does not work out of the box... Which is frustrating when you do such a great work with this product otherwise.... The new users will get discouraged from using your solution from the moment they reach the login page because of the currently misguided doc...

At the very minimum the alias should get looked at as it does not work currently

gsalingu avatar Nov 26 '25 01:11 gsalingu

Yes, I tried it, the demo site works through docker compose.

vitabaks avatar Nov 26 '25 02:11 vitabaks

Can you please try it on a fresh setup? I followed your doc on a random server Auth failed up until i applied the change i am suggesting

gsalingu avatar Nov 26 '25 03:11 gsalingu

Yes, I'll check it.

vitabaks avatar Nov 26 '25 08:11 vitabaks

Can you please try it on a fresh setup?

vitabaks@MacBook-Pro-Vitaliy postgresql_cluster % cd console 
vitabaks@MacBook-Pro-Vitaliy console % cat .env.example 
DOMAIN=
EMAIL=
AUTH_TOKEN=
vitabaks@MacBook-Pro-Vitaliy console % cp .env.example .env
vitabaks@MacBook-Pro-Vitaliy console % nano .env
vitabaks@MacBook-Pro-Vitaliy console % cat .env 
DOMAIN=test.autobase.tech
[email protected]
AUTH_TOKEN=test
vitabaks@MacBook-Pro-Vitaliy console % 
vitabaks@MacBook-Pro-Vitaliy console % docker compose up -d      
[+] Running 8/8
 ✔ Network autobase                                                                                                                                                    Created                            0.0s 
 ✔ Volume "console_postgres"                                                                                                                                           Cre...                             0.0s 
 ✔ Container autobase-console-db                                                                                                                                       Healthy                            5.8s 
 ! autobase-console-db The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested                                     0.0s 
 ✔ Container autobase-console-api                                                                                                                                      Healthy                           16.3s 
 ! autobase-console-api The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested                                    0.0s 
 ✔ Container autobase-console-ui                                                                                                                                       Started                           16.4s 
 ! autobase-console-ui The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested                                     0.0s 
vitabaks@MacBook-Pro-Vitaliy console % 
            
image image

result:

image image image

vitabaks avatar Dec 11 '25 16:12 vitabaks

@gsalingu no problem.

vitabaks avatar Dec 11 '25 16:12 vitabaks