Skip to content

Commit

Permalink
Update agent test helm chart for internal key iss
Browse files Browse the repository at this point in the history
  • Loading branch information
sgayangi committed Mar 30, 2024
1 parent 422c4d5 commit bcbeaa7
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion adapter/config/default_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ metadata:
type: Opaque
data:
mg.pem: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURrekNDQW51Z0F3SUJBZ0lKQVBEOGVTM2VtY3JRTUEwR0NTcUdTSWIzRFFFQkN3VUFNR1F4Q3pBSkJnTlYKQkFZVEFsVlRNUXN3Q1FZRFZRUUlEQUpEUVRFV01CUUdBMVVFQnd3TlRXOTFiblJoYVc0Z1ZtbGxkekVOTUFzRwpBMVVFQ2d3RVYxTlBNakVOTUFzR0ExVUVDd3dFVjFOUE1qRVNNQkFHQTFVRUF3d0piRzlqWVd4b2IzTjBNQ0FYCkRUSXlNVEV4TnpFNE1EWXpPRm9ZRHpJd05USXhNVEE1TVRnd05qTTRXakJrTVFzd0NRWURWUVFHRXdKVlV6RUwKTUFrR0ExVUVDQXdDUTBFeEZqQVVCZ05WQkFjTURVMXZkVzUwWVdsdUlGWnBaWGN4RFRBTEJnTlZCQW9NQkZkVApUekl4RFRBTEJnTlZCQXNNQkZkVFR6SXhFakFRQmdOVkJBTU1DV3h2WTJGc2FHOXpkRENDQVNJd0RRWUpLb1pJCmh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBTjlaRUQyb1JDbTljZjF2RUV2UjFK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3BMV0w3RzU1c1NWb2JGckJMSkVMZ3FxU1VUVXhBOXVybzYwRjFRMFVhWHBOd2h0MUJ3QTFVUEIKcys1T3ZmVzhnMWhkVmdWdmNmZUZIQk9oSTJOa1RtemRGRldKZTBFeE9Db3liR1dJZkZkYlZtalVZL2JSCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0=
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"]
Expand Down
3 changes: 2 additions & 1 deletion test/apim-apk-agent-test/agent-helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ 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
namespace: apk
metrics:
enabled: false
agent:
mode: CPtoDP
mode: CPtoDP
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit bcbeaa7

Please sign in to comment.