Fix remaining runtime guard references in CODE_GUIDELINES
Remove mentions of runtime guards - only compile-time config is used. Clarify that production safety comes from config defaults.
This commit is contained in:
parent
f32324d942
commit
d114554d52
1 changed files with 3 additions and 3 deletions
|
|
@ -1672,7 +1672,7 @@ end
|
||||||
|
|
||||||
- Allows CRUD operations without an actor in **test environment only**
|
- Allows CRUD operations without an actor in **test environment only**
|
||||||
- Denies all operations without an actor in **production/dev** (fail-closed)
|
- Denies all operations without an actor in **production/dev** (fail-closed)
|
||||||
- Uses both compile-time and runtime guards to prevent accidental production use
|
- Uses compile-time config check to prevent accidental production use (release-safe)
|
||||||
|
|
||||||
**Security Guards:**
|
**Security Guards:**
|
||||||
|
|
||||||
|
|
@ -1720,8 +1720,8 @@ Ash.create!(Member, attrs, actor: system_actor)
|
||||||
|
|
||||||
**Testing:**
|
**Testing:**
|
||||||
|
|
||||||
- NoActor tests verify both compile-time and runtime guards
|
- NoActor tests verify the compile-time config guard
|
||||||
- Tests ensure NoActor returns `false` in non-test environments
|
- Production safety is guaranteed by config (only set in test.exs, defaults to false)
|
||||||
- See `test/mv/authorization/checks/no_actor_test.exs`
|
- See `test/mv/authorization/checks/no_actor_test.exs`
|
||||||
|
|
||||||
### 5.2 Password Security
|
### 5.2 Password Security
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue