Modularity
Give each component a specific job and a small set of interfaces.
Keep the website, access controls, and storage separate, so each part can be understood and maintained on its own.
The website explains the project. Access controls decide who may use a resource. Storage components handle the data.
Separating these roles makes changes easier to manage. An update to the website, for example, should not require changes to storage. The same principle applies when reviewing permissions: change the part involved, rather than rebuilding the whole system.
Give each component a specific job and a small set of interfaces.
Avoid shared state that forces unrelated components to change together.
Keep setup and configuration straightforward to review and repeat.
Separate workloads and their permissions when planning environments.
Add a dependency when its benefit outweighs the maintenance it brings.