Open
Description
Copied from #205:
Following up on that, I would like to look into potentially adding an Application model. Doing so seems like a more appropriate approach than what's been presented in the PR. Secret storage is still an open question, I do not want to force users to store private keys or anything like that in the database. Maybe we can do a mixed approach with secrets in the settings, apps in the db? I don't know. Needs a design doc.
This is intrinsically linked to multi-app support (#348).
This is open for the taking. If you work on this please write a design proposal first, as the most important part of this is designing the API and making sure it's easy to migrate to and/or backwards compatible.