fly-apps / fly-apps/postgres-flex
Readonly is not enforced for newly created databases
- Dominant language
- Go
- Stars
- 171
- Forks
- 76
- Avg merge
- 1h 19m
- Merged PRs (30d)
- 1
Description
When a cluster is made read-only, we will loop through each of the user-defined databases and turn them read-only individually. This ensures that each existing database will no longer be able to issue writes until the existing problem is addressed, however, this is not enforced for databases that are created after the fact.
Example case where this could cause issues:
**App is made read-only to prevent disk capacity from reaching 100%**
1. User attaches a new app to the database.
2. User will be able to issue writes and push their volume to 100% disk capacity.
**Problem**
We don't re-evaluate the list of databases once the `readonly.lock` file has been issued.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.