Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the feasibility of separating the key manager node out from control-plane. #13297

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[server]
#hostname = "km.wso2.com"
server_role = "control-plane"

[user_store]
type = "database_unique_id"

[super_admin]
username = "admin"
password = "admin"
create_admin_account = true

[database.apim_db]
type = "mysql"
hostname = "apim.mysql"
name = "apimgt_db"
port = "3306"
username = "apimuser"
password = "apimuser"

[database.shared_db]
type = "mysql"
hostname = "shared_db.mysql"
name = "shared_db"
port = "3306"
username = "shareduser"
password = "shareduser"

[keystore.tls]
file_name = "wso2carbon.jks"
type = "JKS"
password = "wso2carbon"
alias = "wso2carbon"
key_password = "wso2carbon"

[truststore]
file_name = "client-truststore.jks"
type = "JKS"
password = "wso2carbon"


[[event_handler]]
name="userPostSelfRegistration"
subscriptions=["POST_ADD_USER"]

[[event_listener]]
id = "token_revocation"
type = "org.wso2.carbon.identity.core.handler.AbstractIdentityHandler"
name = "org.wso2.is.notification.ApimOauthEventInterceptor"
order = 1
[event_listener.properties]
notification_endpoint = "https://tm.wso2.com:443/internal/data/v1/notify"
username = "${admin.username}"
password = "${admin.password}"
'header.X-WSO2-KEY-MANAGER' = "default"

# Traffic Manager configurations
[apim.throttling]
username= "$ref{super_admin.username}"
password= "$ref{super_admin.password}"
throttle_decision_endpoints = ["tcp://tm1.local:5672","tcp://tm2.local:5672"]

[[apim.throttling.url_group]]
traffic_manager_urls=["tcp://tm1.local:9611"]
traffic_manager_auth_urls=["ssl://tm1.local:9711"]

[[apim.throttling.url_group]]
traffic_manager_urls=["tcp://tm2.local:9611"]
traffic_manager_auth_urls=["ssl://tm2.local:9711"]
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if "%3"=="skipConfigOptimization" set passedSkipConfigOptimizationOption=true
rem ----- Process the input commands (two args only)-------------------------------------------
if ""%1""==""-Dprofile"" (
if ""%2""==""control-plane"" goto controlPlane
if ""%2""==""api-key-manager-deprecated"" goto keyManager
if ""%2""==""api-key-manager-node"" goto keyManager
if ""%2""==""traffic-manager"" goto trafficManager
if ""%2""==""gateway-worker"" goto gatewayWorker
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ done

#main
case $1 in
-Dprofile=api-key-manager-deprecated)
-Dprofile=api-key-manager-node)
timeStamp
echo "[${timestamp}] INFO - Starting to optimize API Manager for the Key Manager profile"
removeAxis2BlockingClientXMLFile
Expand All @@ -221,7 +221,7 @@ case $1 in
removeWebSocketInboundEndpoint
removeSecureWebSocketInboundEndpoint
removeSynapseConfigs
replaceDeploymentConfiguration api-key-manager-deprecated $passedSkipConfigOptimizationOption
replaceDeploymentConfiguration api-key-manager-node $passedSkipConfigOptimizationOption
# removing webbapps which are not required for this profile
for i in $(find $pathToWebapps -maxdepth 1 -mindepth 1 -not \( -name \
'authenticationendpoint' -o -name 'accountrecoveryendpoint' -o -name 'oauth2.war' \
Expand Down
Loading