mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
docs: scope AGENTS instructions by directory (#2083)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# IAM Crate Instructions
|
||||
|
||||
Applies to `crates/iam/`.
|
||||
|
||||
## Security Boundaries
|
||||
|
||||
- Treat IAM changes as security-sensitive by default.
|
||||
- Never log secrets, tokens, private claims, or credential material.
|
||||
- Keep deny/allow evaluation behavior consistent with existing tests unless explicitly changing policy semantics.
|
||||
|
||||
## Contract Stability
|
||||
|
||||
- Preserve compatibility of user/group/policy attachment behavior and token claim handling.
|
||||
- When changing IAM interfaces, verify impacted call sites in:
|
||||
- `rustfs/src/auth.rs`
|
||||
- `rustfs/src/admin/`
|
||||
- `crates/policy/`
|
||||
|
||||
## Error Handling
|
||||
|
||||
- Return explicit errors; do not use panic-driven control flow outside tests.
|
||||
- Keep error messages actionable but avoid leaking sensitive context.
|
||||
|
||||
## Suggested Validation
|
||||
|
||||
- `cargo test -p rustfs-iam`
|
||||
- Full gate before commit: `make pre-commit`
|
||||
Reference in New Issue
Block a user