From 7fdf8c5eb9678b863aa2f6e4170c7a90e13187bb Mon Sep 17 00:00:00 2001 From: Isuru Date: Thu, 14 Mar 2024 15:08:09 +0530 Subject: [PATCH 1/3] Add registry read only mode templating to registry.xml.j2 file --- .../resources/conf/templates/repository/conf/registry.xml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/kernel/carbon-home/repository/resources/conf/templates/repository/conf/registry.xml.j2 b/distribution/kernel/carbon-home/repository/resources/conf/templates/repository/conf/registry.xml.j2 index 8648e3ab054..00d8414ad28 100644 --- a/distribution/kernel/carbon-home/repository/resources/conf/templates/repository/conf/registry.xml.j2 +++ b/distribution/kernel/carbon-home/repository/resources/conf/templates/repository/conf/registry.xml.j2 @@ -23,7 +23,7 @@ --> wso2registry - false + {{registry_mode.readOnly}} true / From ef73acc8cbdf9c8f109d4c4e58028ca1aa301078 Mon Sep 17 00:00:00 2001 From: CharinduThisara Date: Thu, 14 Mar 2024 15:11:31 +0530 Subject: [PATCH 2/3] Add registry read only mode templating to default.json and key-mappings.json files --- .../kernel/carbon-home/repository/resources/conf/default.json | 1 + .../carbon-home/repository/resources/conf/key-mappings.json | 1 + 2 files changed, 2 insertions(+) diff --git a/distribution/kernel/carbon-home/repository/resources/conf/default.json b/distribution/kernel/carbon-home/repository/resources/conf/default.json index 1f6b8ae9f39..8f84cdca7dc 100644 --- a/distribution/kernel/carbon-home/repository/resources/conf/default.json +++ b/distribution/kernel/carbon-home/repository/resources/conf/default.json @@ -1,4 +1,5 @@ { + "registry_mode.readOnly": false, "server.default_cache_timeout": "15m", "server.default_realm_cache_timeout": "30m", "server.force_local_cache": true, diff --git a/distribution/kernel/carbon-home/repository/resources/conf/key-mappings.json b/distribution/kernel/carbon-home/repository/resources/conf/key-mappings.json index 8faf3c16526..282936de3fc 100644 --- a/distribution/kernel/carbon-home/repository/resources/conf/key-mappings.json +++ b/distribution/kernel/carbon-home/repository/resources/conf/key-mappings.json @@ -1,4 +1,5 @@ { + "registry_mode.readOnly": "registryMode.readOnly", "tenant_mgt.tenant_manager.config_builder": "tenant_mgt.tenant_manager.properties.MultiTenantRealmConfigBuilder", "database.shared_db.pool_options.max_active": "database.shared_db.pool_options.maxActive", "database.shared_db.pool_options.max_wait": "database.shared_db.pool_options.maxWait", From 83fef108042ceeb085e2fd25f29c4754777b69d0 Mon Sep 17 00:00:00 2001 From: CharinduThisara Date: Thu, 14 Mar 2024 15:17:26 +0530 Subject: [PATCH 3/3] Add registry read only mode templating to key-mappings.json file --- .../carbon-home/repository/resources/conf/key-mappings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/kernel/carbon-home/repository/resources/conf/key-mappings.json b/distribution/kernel/carbon-home/repository/resources/conf/key-mappings.json index 282936de3fc..37929dd115e 100644 --- a/distribution/kernel/carbon-home/repository/resources/conf/key-mappings.json +++ b/distribution/kernel/carbon-home/repository/resources/conf/key-mappings.json @@ -1,5 +1,5 @@ { - "registry_mode.readOnly": "registryMode.readOnly", + "registry_mode.readOnly": "registry_mode.readOnly", "tenant_mgt.tenant_manager.config_builder": "tenant_mgt.tenant_manager.properties.MultiTenantRealmConfigBuilder", "database.shared_db.pool_options.max_active": "database.shared_db.pool_options.maxActive", "database.shared_db.pool_options.max_wait": "database.shared_db.pool_options.maxWait",