From 422c4d504550ae2c3b9520df026f12b239629593 Mon Sep 17 00:00:00 2001 From: sgayangi Date: Thu, 28 Mar 2024 16:36:49 +0530 Subject: [PATCH 1/3] Add updated wso2carbon.pem cert --- .../gateway-runtime/enforcer-truststore-secret.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-charts/templates/data-plane/gateway-components/gateway-runtime/enforcer-truststore-secret.yaml b/helm-charts/templates/data-plane/gateway-components/gateway-runtime/enforcer-truststore-secret.yaml index 22a57ad3d..a042efd6c 100644 --- a/helm-charts/templates/data-plane/gateway-components/gateway-runtime/enforcer-truststore-secret.yaml +++ b/helm-charts/templates/data-plane/gateway-components/gateway-runtime/enforcer-truststore-secret.yaml @@ -7,5 +7,5 @@ metadata: type: Opaque data: mg.pem: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURrekNDQW51Z0F3SUJBZ0lKQVBEOGVTM2VtY3JRTUEwR0NTcUdTSWIzRFFFQkN3VUFNR1F4Q3pBSkJnTlYKQkFZVEFsVlRNUXN3Q1FZRFZRUUlEQUpEUVRFV01CUUdBMVVFQnd3TlRXOTFiblJoYVc0Z1ZtbGxkekVOTUFzRwpBMVVFQ2d3RVYxTlBNakVOTUFzR0ExVUVDd3dFVjFOUE1qRVNNQkFHQTFVRUF3d0piRzlqWVd4b2IzTjBNQ0FYCkRUSXlNVEV4TnpFNE1EWXpPRm9ZRHpJd05USXhNVEE1TVRnd05qTTRXakJrTVFzd0NRWURWUVFHRXdKVlV6RUwKTUFrR0ExVUVDQXdDUTBFeEZqQVVCZ05WQkFjTURVMXZkVzUwWVdsdUlGWnBaWGN4RFRBTEJnTlZCQW9NQkZkVApUekl4RFRBTEJnTlZCQXNNQkZkVFR6SXhFakFRQmdOVkJBTU1DV3h2WTJGc2FHOXpkRENDQVNJd0RRWUpLb1pJCmh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBTjlaRUQyb1JDbTljZjF2RUV2UjFKL1R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UURHTDlTU0FjOHplWnBVb2loU2ExVnowZGNXCm5FR1lkdDdkQnB4U3ppcVJWSDVPNjJxVU92ZDhtbGh5M0h4N3B2Wm0yK2pKYjVMeEdKM2MvVzhGM211dDFTdGoKQVNFRXVsOWF4dXhvNWZuelVXazZBV20ycGFobEttZTBiSk8vdUJyY010WlU2TXdCdkU3NkEzZmgra1p6VlREbApMbjJUVG9ySlhydC9JQm5KdVZHT2UzWGxGTlMyMEo3bEtFUmt3UHZEZlhkZ25aSWlUYkcwdzliQUxVSmpROFUyCkFBUDlha2d1N3BMV0w3RzU1c1NWb2JGckJMSkVMZ3FxU1VUVXhBOXVybzYwRjFRMFVhWHBOd2h0MUJ3QTFVUEIKcys1T3ZmVzhnMWhkVmdWdmNmZUZIQk9oSTJOa1RtemRGRldKZTBFeE9Db3liR1dJZkZkYlZtalVZL2JSCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0= {{- end -}} From bcbeaa7bf36baf9ea49fa0c12dfec8cbd95e2453 Mon Sep 17 00:00:00 2001 From: sgayangi Date: Thu, 28 Mar 2024 16:37:55 +0530 Subject: [PATCH 2/3] Update agent test helm chart for internal key iss --- adapter/config/default_config.go | 2 +- .../gateway-runtime/enforcer-truststore-secret.yaml | 3 ++- .../gateway-runtime/gateway-runtime-deployment.yaml | 8 +++++++- .../agent-helm-chart/templates/log-conf.yaml | 1 + test/apim-apk-agent-test/agent-helm-chart/values.yaml | 3 ++- .../apim-cp-helm-chart/confs/instance-1/deployment.toml | 1 + 6 files changed, 14 insertions(+), 4 deletions(-) diff --git a/adapter/config/default_config.go b/adapter/config/default_config.go index b30d833dd..ce30cd1ab 100644 --- a/adapter/config/default_config.go +++ b/adapter/config/default_config.go @@ -161,7 +161,7 @@ var defaultConfig = &Config{ APIkey: apiKey{ Enabled: true, Issuer: "https://apim.wso2.com/publisher", - CertificateFilePath: "/home/wso2/security/truststore/wso2carbon.pem", + CertificateFilePath: "/home/wso2/security/truststore/wso2-apim-carbon.pem", }, InternalKey: internalKey{ Enabled: true, diff --git a/helm-charts/templates/data-plane/gateway-components/gateway-runtime/enforcer-truststore-secret.yaml b/helm-charts/templates/data-plane/gateway-components/gateway-runtime/enforcer-truststore-secret.yaml index a042efd6c..200c9bb2b 100644 --- a/helm-charts/templates/data-plane/gateway-components/gateway-runtime/enforcer-truststore-secret.yaml +++ b/helm-charts/templates/data-plane/gateway-components/gateway-runtime/enforcer-truststore-secret.yaml @@ -7,5 +7,6 @@ metadata: type: Opaque data: mg.pem: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURrekNDQW51Z0F3SUJBZ0lKQVBEOGVTM2VtY3JRTUEwR0NTcUdTSWIzRFFFQkN3VUFNR1F4Q3pBSkJnTlYKQkFZVEFsVlRNUXN3Q1FZRFZRUUlEQUpEUVRFV01CUUdBMVVFQnd3TlRXOTFiblJoYVc0Z1ZtbGxkekVOTUFzRwpBMVVFQ2d3RVYxTlBNakVOTUFzR0ExVUVDd3dFVjFOUE1qRVNNQkFHQTFVRUF3d0piRzlqWVd4b2IzTjBNQ0FYCkRUSXlNVEV4TnpFNE1EWXpPRm9ZRHpJd05USXhNVEE1TVRnd05qTTRXakJrTVFzd0NRWURWUVFHRXdKVlV6RUwKTUFrR0ExVUVDQXdDUTBFeEZqQVVCZ05WQkFjTURVMXZkVzUwWVdsdUlGWnBaWGN4RFRBTEJnTlZCQW9NQkZkVApUekl4RFRBTEJnTlZCQXNNQkZkVFR6SXhFakFRQmdOVkJBTU1DV3h2WTJGc2FHOXpkRENDQVNJd0RRWUpLb1pJCmh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBTjlaRUQyb1JDbTljZjF2RUV2UjFKL1R3TGFrSmNQeVN2UDIKT1p1Y3hiVlBDeVhvbnlsZEtJbUVoSjZMZnVNcnV4NW9wQmVYRnpJZWhjOElJalkvSlUyR2xpaG5ybFBFbE1EUQoyUXVjelpqUTZuYWlrWVRrcU5zTk5NRitXdml0N0lIVVljejM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JSCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0= {{- end -}} diff --git a/helm-charts/templates/data-plane/gateway-components/gateway-runtime/gateway-runtime-deployment.yaml b/helm-charts/templates/data-plane/gateway-components/gateway-runtime/gateway-runtime-deployment.yaml index 17e8fdb66..c3d525d20 100644 --- a/helm-charts/templates/data-plane/gateway-components/gateway-runtime/gateway-runtime-deployment.yaml +++ b/helm-charts/templates/data-plane/gateway-components/gateway-runtime/gateway-runtime-deployment.yaml @@ -94,7 +94,7 @@ spec: {{- if and .Values.wso2.apk.metrics .Values.wso2.apk.metrics.enabled }} value: -Dhttpclient.hostnameVerifier=AllowAll -Xms512m -Xmx512m -XX:MaxRAMFraction=2 -Dapk.jmx.metrics.enabled=true -javaagent:/home/wso2/lib/jmx_prometheus_javaagent-0.20.0.jar=18006:/tmp/metrics/prometheus-jmx-config-enforcer.yml {{- else }} - value: -Dhttpclient.hostnameVerifier=AllowAll -Xms512m -Xmx512m -XX:MaxRAMFraction=2 + value: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5006 -Dhttpclient.hostnameVerifier=AllowAll -Xms512m -Xmx512m -XX:MaxRAMFraction=2 {{- end }} {{- if .Values.wso2.apk.dp.gatewayRuntime.deployment.enforcer.redis }} - name: REDIS_USERNAME @@ -217,6 +217,9 @@ spec: - name: enforcer-trusted-certs mountPath: /home/wso2/security/truststore/wso2carbon.pem subPath: wso2carbon.pem + - name: enforcer-apikey-cert + mountPath: /home/wso2/security/truststore/wso2-apim-carbon.pem + subPath: wso2-apim-carbon.pem - name: idp-certificate-secret-volume mountPath: /home/wso2/security/truststore/idp.pem {{ if and .Values.wso2.apk.idp.signing .Values.wso2.apk.idp.signing.fileName }} @@ -430,6 +433,9 @@ spec: - name: enforcer-trusted-certs secret: secretName: {{ template "apk-helm.resource.prefix" . }}-enforcer-truststore-secret + - name: enforcer-apikey-cert + secret: + secretName: {{ template "apk-helm.resource.prefix" . }}-enforcer-truststore-secret - name: idp-certificate-secret-volume secret: {{ if and .Values.wso2.apk.idp.signing .Values.wso2.apk.idp.signing.secretName }} diff --git a/test/apim-apk-agent-test/agent-helm-chart/templates/log-conf.yaml b/test/apim-apk-agent-test/agent-helm-chart/templates/log-conf.yaml index 1e5ad464e..a6702bc48 100644 --- a/test/apim-apk-agent-test/agent-helm-chart/templates/log-conf.yaml +++ b/test/apim-apk-agent-test/agent-helm-chart/templates/log-conf.yaml @@ -12,6 +12,7 @@ data: password = "{{ .Values.controlPlane.password }}" environmentLabels = ["{{ .Values.controlPlane.environmentLabels }}"] skipSSLVerification = {{ .Values.controlPlane.skipSSLVerification }} + internalKeyIssuer = {{ .Values.controlPlane.internalKeyIssuer | default "http://am.wso2.com:443/token" }} [controlPlane.brokerConnectionParameters] eventListeningEndpoints = ["{{ .Values.controlPlane.eventListeningEndpoints }}"] diff --git a/test/apim-apk-agent-test/agent-helm-chart/values.yaml b/test/apim-apk-agent-test/agent-helm-chart/values.yaml index b76f9ed06..af768b303 100644 --- a/test/apim-apk-agent-test/agent-helm-chart/values.yaml +++ b/test/apim-apk-agent-test/agent-helm-chart/values.yaml @@ -30,6 +30,7 @@ controlPlane: environmentLabels: Default skipSSLVerification: true eventListeningEndpoints: amqp://admin:admin@apim-wso2am-cp-1-service.apk.svc.cluster.local:5672?retries='10'&connectdelay='30' + # internalKeyIssuer: http://am.wso2.com:443/token dataPlane: enabled: true k8ResourceEndpoint: https://apk-wso2-apk-config-ds-service.apk.svc.cluster.local:9443/api/configurator/apis/generate-k8s-resources @@ -37,4 +38,4 @@ dataPlane: metrics: enabled: false agent: - mode: CPtoDP \ No newline at end of file + mode: CPtoDP diff --git a/test/apim-apk-agent-test/apim-cp-helm-chart/confs/instance-1/deployment.toml b/test/apim-apk-agent-test/apim-cp-helm-chart/confs/instance-1/deployment.toml index 38c3d7560..0a19cac9e 100644 --- a/test/apim-apk-agent-test/apim-cp-helm-chart/confs/instance-1/deployment.toml +++ b/test/apim-apk-agent-test/apim-cp-helm-chart/confs/instance-1/deployment.toml @@ -147,6 +147,7 @@ iat_validity_period = "1h" oauth2_jwks_url = "https://apim-wso2am-cp-1-service:9443/oauth2/jwks" #[apim.publisher] +#internal_key_issuer = "http://am.wso2.com:443/token" #{{- if .Values.wso2.apim.configurations.publisher.supportedDocumentTypes }} #supported_document_types = {{ toJson .Values.wso2.apim.configurations.publisher.supportedDocumentTypes }} #{{- end }} From c3ca6320aeb42eff0361b7bf4d5afefca89a805f Mon Sep 17 00:00:00 2001 From: sgayangi Date: Sat, 30 Mar 2024 09:14:16 +0530 Subject: [PATCH 3/3] Remove debugging line --- .../gateway-runtime/gateway-runtime-deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-charts/templates/data-plane/gateway-components/gateway-runtime/gateway-runtime-deployment.yaml b/helm-charts/templates/data-plane/gateway-components/gateway-runtime/gateway-runtime-deployment.yaml index c3d525d20..257dc0475 100644 --- a/helm-charts/templates/data-plane/gateway-components/gateway-runtime/gateway-runtime-deployment.yaml +++ b/helm-charts/templates/data-plane/gateway-components/gateway-runtime/gateway-runtime-deployment.yaml @@ -94,7 +94,7 @@ spec: {{- if and .Values.wso2.apk.metrics .Values.wso2.apk.metrics.enabled }} value: -Dhttpclient.hostnameVerifier=AllowAll -Xms512m -Xmx512m -XX:MaxRAMFraction=2 -Dapk.jmx.metrics.enabled=true -javaagent:/home/wso2/lib/jmx_prometheus_javaagent-0.20.0.jar=18006:/tmp/metrics/prometheus-jmx-config-enforcer.yml {{- else }} - value: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5006 -Dhttpclient.hostnameVerifier=AllowAll -Xms512m -Xmx512m -XX:MaxRAMFraction=2 + value: -Dhttpclient.hostnameVerifier=AllowAll -Xms512m -Xmx512m -XX:MaxRAMFraction=2 {{- end }} {{- if .Values.wso2.apk.dp.gatewayRuntime.deployment.enforcer.redis }} - name: REDIS_USERNAME