Explain RBAC vs ABAC and when you would use each.
TechnicalGovernance EngineerData Security AnalystData Governance ManagerRBAC, or Role-Based Access Control, assigns permissions based on user roles within an organization. Each role has specific access rights, making it straightforward to manage permissions. For instance, in a healthcare system, a doctor might have access to patient records, while a receptionist has limited access. This model is effective when roles are well-defined and stable.
On the other hand, ABAC, or Attribute-Based Access Control, uses attributes (such as user, resource, and environmental attributes) to determine access. This allows for more granular control and dynamic decision-making. For example, in a cloud application, access can be granted based on the user's department, the sensitivity of the data, and the time of access. ABAC is ideal for complex environments where access needs to be flexible.
The key difference lies in flexibility and complexity. RBAC is simpler and easier to manage, but can become rigid as organizational needs evolve. ABAC, while more complex to implement, offers greater adaptability to changing requirements. I would choose RBAC for stable environments with clear roles, and ABAC for dynamic scenarios requiring fine-grained access control.