Access control ควบคุมว่าผู้ใช้ที่ยืนยันตัวตนแล้วทำอะไรได้บ้าง ผ่านโมเดลอย่าง RBAC (Role-Based Access Control) และหลักการอย่าง least privilege การควบคุมการเข้าถึงที่เหมาะสมเป็นเรื่องสำคัญยิ่ง เนื่องจาก broken access control เป็นช่องโหว่อันดับ 1 ของ OWASP
โมเดลการควบคุมการเข้าถึง
RBAC (Role-Based Access Control) → assign users to ROLES; roles have PERMISSIONS:
→ user → role(s) (admin, editor, viewer) → permissions → access decisions
→ manageable, common; change a role's permissions, all its users update
ABAC (Attribute-Based) → decisions based on ATTRIBUTES (user, resource, context) → flexible,
fine-grained (e.g. "editors can edit docs in their department during business hours")
ACLs → per-resource lists of who can do what
