Skip to content

Commit 50784d7

Browse files
docs: rephrase the use of externalize policies
1 parent 87eed2a commit 50784d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/decisions/0002-authorization-model-foundation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ IV. Policy Definition
7171

7272
Externalize policies
7373
--------------------
74-
* Policies must be defined outside code, not hardcoded with conditionals.
74+
* Policies must be defined and managed externally (e.g., in policy files or a database store), not embedded directly in application logic. The default model is an allowlist: actions are permitted only when explicitly granted.
7575

7676
- Prefer declarative policy definitions (e.g., JSON, YAML, policy language) over in-code checks like ``if user.is_superuser``.
7777
- Prefer explicit permission checks over implicit role lookups in business logic.

0 commit comments

Comments
 (0)