From c0ad1f019e6b093295592874f22607336c238254 Mon Sep 17 00:00:00 2001 From: Jakob Gillich Date: Mon, 2 Oct 2023 01:58:02 +0200 Subject: [PATCH] Add TenantPermission struct Signed-off-by: Jakob Gillich --- model/security/role.smithy | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/model/security/role.smithy b/model/security/role.smithy index fb61a8f93..951a0da4b 100644 --- a/model/security/role.smithy +++ b/model/security/role.smithy @@ -18,7 +18,7 @@ structure Role { description: String cluster_permissions: ClusterPermission index_permissions: IndexPermissionList - tenant_permissions: TenantPermission + tenant_permissions: TenantPermissionList static: Boolean } @@ -38,7 +38,16 @@ list IndexPermissionList { member: IndexPermission } -list TenantPermission { +structure TenantPermission { + tenant_patterns: TenantPatterns + allowed_actions: AllowedActions +} + +list TenantPermissionList { + member: TenantPermission +} + +list TenantPatterns { member: String }