Перейти к основному контенту

Поддерживаемые модели

  1. ACL (список контроля доступа)
  2. ACL с суперпользователем
  3. ACL without users: This is especially useful for systems that don't have authentication or user logins.
  4. ACL without resources: In some scenarios, the target is a type of resource instead of an individual resource. Permissions like "write-article" and "read-log" can be used. This doesn't control access to a specific article or log.
  5. RBAC (контроль доступа, основанный на ролях)
  6. RBAC with resource roles: Both users and resources can have roles (or groups) at the same time.
  7. RBAC with domains/tenants: Users can have different sets of roles for different domains/tenants.
  8. ABAC (Attribute-Based Access Control): Syntax sugar like "resource.Owner" can be used to get the attribute for a resource.
  9. RESTful: Supports paths like "/res/*", "/res/:id", and HTTP methods like "GET", "POST", "PUT", "DELETE".
  10. Deny-override: Both allow and deny authorizations are supported, where deny overrides allow.
  11. Priority: The policy rules can be prioritized, similar to firewall rules.

Примеры

МодельФайл моделиФайл политики
ACLbasic_model.confbasic_policy.csv
ACL с суперпользователемconf с root_model.confbasic_policy.csv
ACL без пользователейbasic_without_users_model.confbasic_without_users_policy.csv
ACL без ресурсовbasic_without_resources_model.confbasic_without_resources_policy.csv
RBACrbac_model.confrbac_policy.csv
RBAC с ролями ресурсовrbac_with_resource_roles_model.confrbac_with_resource_roles_policy.csv
RBAC с доменами/арендаторамиrbac_with_domains_model.confrbac_with_domains_policy.csv
АДАТabac_model.confН/Д
Восстановленныйkeymatch_model.confkeymatch_policy.csv
Запретить переопределениеrbac_with_not_deny_model.confrbac_with_deny_policy.csv
Замедлить и запретитьконф rbac_с отрицаниемrbac_with_deny_policy.csv
Приоритетприоритет_модель.confприоритет_policy.csv
Невероятный Приоритетpriority_model_explicitpriority_policy_explic.csv
Предмет - Приоритетsubject_priority_model.confsubject_priority_policyl.csv