From 1c46fee7aa576e5460a94544f5710ca9b567d6df Mon Sep 17 00:00:00 2001
From: grantnert48 <tobias.grantner@tuwien.ac.at>
Date: Fri, 16 Jun 2023 17:30:42 +0200
Subject: [PATCH] Updated keycloak realms to only allow creation of containers
 for developers, modifying the state of containers is obsolete

---
 .../dbrepo-realm.json                         | 24 ++-----------------
 1 file changed, 2 insertions(+), 22 deletions(-)

diff --git a/dbrepo-authentication-service/dbrepo-realm.json b/dbrepo-authentication-service/dbrepo-realm.json
index 51708078cc..d6f53017ec 100644
--- a/dbrepo-authentication-service/dbrepo-realm.json
+++ b/dbrepo-authentication-service/dbrepo-realm.json
@@ -94,7 +94,7 @@
         "composite": true,
         "composites": {
           "realm": [
-            "modify-foreign-container-state",
+            "create-container",
             "delete-container"
           ]
         },
@@ -524,15 +524,6 @@
         "containerId": "82c39861-d877-4667-a0f3-4daa2ee230e0",
         "attributes": {}
       },
-      {
-        "id": "8582dae6-e64f-41a6-9dcc-7e18f54fcdde",
-        "name": "modify-container-state",
-        "description": "${modify-container-state}",
-        "composite": false,
-        "clientRole": false,
-        "containerId": "82c39861-d877-4667-a0f3-4daa2ee230e0",
-        "attributes": {}
-      },
       {
         "id": "abd2d9ee-ebc4-4d0a-839e-6b588a6d442a",
         "name": "default-roles-dbrepo",
@@ -628,8 +619,6 @@
         "composite": true,
         "composites": {
           "realm": [
-            "create-container",
-            "modify-container-state",
             "find-container",
             "list-containers"
           ]
@@ -770,15 +759,6 @@
         "containerId": "82c39861-d877-4667-a0f3-4daa2ee230e0",
         "attributes": {}
       },
-      {
-        "id": "022605d2-2a40-4cfc-9864-28a56cf7d565",
-        "name": "modify-foreign-container-state",
-        "description": "${modify-foreign-container-state}",
-        "composite": false,
-        "clientRole": false,
-        "containerId": "82c39861-d877-4667-a0f3-4daa2ee230e0",
-        "attributes": {}
-      },
       {
         "id": "2963c2bb-b129-4224-b98f-c8eeab8e72d1",
         "name": "create-table",
@@ -3486,7 +3466,7 @@
     "clientSessionMaxLifespan": "0",
     "shortVerificationUri": ""
   },
-  "keycloakVersion": "21.0.1",
+  "keycloakVersion": "21.0.2",
   "userManagedAccessAllowed": false,
   "clientProfiles": {
     "profiles": []
-- 
GitLab