Supported migration/runtime PostgreSQL roles for a custom Django app
-
Hello Cloudron team,
We are developing a custom Django app and need separate PostgreSQL
migration and runtime identities. The runtime must not own tables
or be able to alter/delete protected audit records.Is there an officially supported way to provision and preserve
these identities with the shared PostgreSQL addon, including
updates, cloning and full restore onto a fresh server?We found earlier forum replies indicating that custom roles are
not managed or preserved by the addon. Is that still the case
on Cloudron 10.1.5?As an alternative, we have successfully tested a package-internal
PostgreSQL instance using persistentDirs, backupCommand and
restoreCommand, including full Cloudron backup/clone and same-app
restore with synthetic data.For this requirement, which approach does Cloudron recommend:
the shared addon, or a package-internal PostgreSQL instance?
Are there lifecycle limitations we should account for?Thank you,
Cyril Brunner
L’ALTRO Design -
J james marked this topic as a regular topic
-
J james moved this topic from Support
-
Hello @stereovox
Recently I had a similar need and created a PostgreSQL community app https://forum.cloudron.io/topic/16141/postgresql-18-for-clients-outside-of-cloudron-with-a-web-panel.
Tho I am no sure if my PostgreSQL community app already supports what you are asking for, but it could be extended.
-
Thanks, James! We have meanwhile tested PostgreSQL packaged directly inside our Django app, including separate migration/runtime roles, full Cloudron backup/restore, cloning and a PostgreSQL version update. We’ll continue with this approach for now.
Could you also confirm whether the shared PostgreSQL addon currently has a supported lifecycle for custom roles, or whether that remains outside its supported scope? -
Thanks, James! We have meanwhile tested PostgreSQL packaged directly inside our Django app, including separate migration/runtime roles, full Cloudron backup/restore, cloning and a PostgreSQL version update. We’ll continue with this approach for now.
Could you also confirm whether the shared PostgreSQL addon currently has a supported lifecycle for custom roles, or whether that remains outside its supported scope?Hello @stereovox
Could you also confirm whether the shared PostgreSQL addon currently has a supported lifecycle for custom roles, or whether that remains outside its supported scope?
I don't think so, no.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login