Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add passwordless login to pgadmin and odr database #37

Conversation

robert-cronin
Copy link
Contributor

@robert-cronin robert-cronin commented Aug 30, 2024

Fixes #36

This pull request enhances the local development experience with pgAdmin by:

  • Removing the need for a password
  • Automatically connecting to the ODR database

These changes streamline the setup process for developers working on the project locally. Screenshot is attached for reference.

image

Signed-off-by: Robert Cronin <robert.cronin@uqconnect.edu.au>
Copy link
Collaborator

@fearnworks fearnworks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Mentioned in discord, but throwing here for transparency).

Change looks good, but needs to be tested with a fresh session. I got a unauthorized screen when navigating from a fresh incognito chrome tab.

@robert-cronin
Copy link
Contributor Author

(Mentioned in discord, but throwing here for transparency).

Change looks good, but needs to be tested with a fresh session. I got a unauthorized screen when navigating from a fresh incognito chrome tab.

Ah I was just about to respond :) Thank you @fearnworks! I tried these things to attempt at replicating the issue:

  • open with firefox, edge and chrome on windows and firefox and chrome on ubuntu
  • start old stack and then new stack shortly after
  • change credentials in .env and restart

none could replicate the issue :( but i did find:
https://stackoverflow.com/questions/40354551/pg4admin-401-unauthorized-error
https://askubuntu.com/questions/1186036/pgadmin4-401-unauthorized-in-ubuntu-18-04

from these two there are a couple of things that might be tried:

  • deleting the volumes and rebuilding the stack anew (to delete pgadmin4.db)
  • adding /browser suffix to the link

Please let me know if any of those solve the issue, otherwise I guess this is just a nice to have. Thanks again!

@fearnworks
Copy link
Collaborator

Volumes did it! This is good to go.

@fearnworks fearnworks merged commit 5995890 into Open-Model-Initiative:main Sep 1, 2024
2 checks passed
@robert-cronin
Copy link
Contributor Author

Volumes did it! This is good to go.

Excellent! Thank you so much for verifying the change @fearnworks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add trust mode for pgAdmin and auto-authente the db in compose file
2 participants