Skip to content
Back

[SOLVED] Recommended to set _APP_DB_PASS vars?

  • 0
  • Self Hosted
Osman
15 Feb, 2025, 08:38

Hey, is it recommended to set the _APP_DB_PASS and _APP_EXECUTOR_SECRET vars in production?

TL;DR
Developers were discussing if it's recommended to set database password and executor secret variables in production. They mentioned the importance of setting these secrets before starting the containers for the first time and highlighted the encryption complexities if changed later. Additionally, other security variables like `_APP_ENV` and `_APP_OPTIONS_ABUSE` were considered. Ultimately, they agreed it's crucial to set `_APP_DB_PASS` and `_APP_EXECUTOR_SECRET` vars in a production environment.
Joshi
15 Feb, 2025, 08:42

Yes, definitely.

Osman
15 Feb, 2025, 08:46

Okay, can you think of any other "security" vars that should be set? Other than _APP_ENV, _APP_OPTIONS_ABUSE, _APP_OPTIONS_FORCE_HTTPS, _APP_OPENSSL_KEY_V1, _APP_CONSOLE_WHITELIST_ROOT. Im not using storage.

Joshi
15 Feb, 2025, 08:47

The database secret and the openssl secret needs to be setup before you start the containers for the first time.

Joshi
15 Feb, 2025, 08:47
  • executor secret and that's it.
Osman
15 Feb, 2025, 08:49

yea, its a while since i first started the containers.. however i see you should change the DB user/pass using mariadb and then change in the env. Not sure about how to handle executor secret, since the containers are already running

Joshi
15 Feb, 2025, 08:52

You could of course change the database secret yourself afterwards. Just wanted to let you know that the db secret is configured the first time the mariadb container is spun up. Regarding the openssl secret it is really hard to change it afterwards since most sensitive data in the database are already encrypted with the initial secret. You can change the executor secret at any time, just restart the container afterwards

Osman
15 Feb, 2025, 08:52

seems that its okay to change the executor secret directly in the env and then restart https://discord.com/channels/564160730845151244/1220769895776784424/1220772232159297746

Joshi
15 Feb, 2025, 08:52

Yes

Osman
15 Feb, 2025, 08:53

ah okay. Yea i set the openssl key back before starting the containers for the first time, so im good there. Thanks for your help

Osman
15 Feb, 2025, 08:54

[SOLVED] Recommended to set _APP_DB_PASS vars?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more