AppFlowy-IO / AppFlowy-Cloud

AppFlowy is an open-source alternative to Notion. You are in charge of your data and customizations. Built with Flutter and Rust.
GNU Affero General Public License v3.0
1.08k stars 226 forks source link

[Bug] Unable to change gotrue admin password over ui #849

Open DenuxPlays opened 1 month ago

DenuxPlays commented 1 month ago

Describe the bug

When you change your admin password then the app will crash on the next restart.

To Reproduce

Steps to reproduce the behavior:

  1. create a new instance
  2. change the admin password over the ui
  3. restart the app
  4. take a look at the logs

Expected behavior

No panic. Just load with the new password.

Screenshots

/

Desktop (please complete the following information):

Additional context

Normal docker compose envoirement.

khorshuheng commented 1 month ago

This might be a little tricky to implement. The reason is, AppFlowy Cloud does not know the password for gotrue admin user unless it is passed as an environmental variable. The database schema that stores the password, is accessible by gotrue and not by AppFlowy Cloud.

AppFlowy Cloud requires the Gotrue admin credentials, in order to manage operations such as inviting workspace member. So as of now, if the password for gotrue admin is modified via admin UI, the corresponding environmental variable needs to be modified to on the AppFlowy Cloud deployment.