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

Adding IBMMQ Discovery Agent #148

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 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
5 changes: 5 additions & 0 deletions service/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@
<artifactId>terraform-plugin</artifactId>
<version>1.4.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.solace.maas</groupId>
<artifactId>ibmmq-plugin</artifactId>
<version>0.0.2-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>io.micrometer</groupId>
Expand Down
340 changes: 183 additions & 157 deletions service/application/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,164 +88,190 @@ eventPortal:
password: ${EP_GATEWAY_PASSWORD}
clientName: runtime_agent_${EP_RUNTIME_AGENT_ID} # 'client_' + runtimeAgentId

# Below is an example of how to set up messaging service configuration in the application.yml file.

#plugins:
# resources:
# # Confluent Schema Registry No Auth example
# - id: someConfluentId
# name: no auth confluent example
# type: confluent_schema_registry
# relatedServices:
# - id1
# - id2
# - id3
# connections:
# - name: myConfluentNoAuth
# url: ${CONFLUENT_SCHEMA_REGISTRY_URL}
# # Confluent Schema Registry Basic Auth example
# - id: someConfluentId
# name: no auth confluent example
# type: confluent_schema_registry
# relatedServices:
# - id1
# connections:
# - name: myConfluentBasicAuth
# url: ${CONFLUENT_SCHEMA_REGISTRY_URL}
# authentication:
# - protocol: BASIC
# credentials:
# - properties:
# - name: username
# value: ${CONFLUENT_USERNAME}
# - name: password
# value: ${CONFLUENT_PASSWORD}
# source: ENVIRONMENT_VARIABLE
# operations:
# - name: ALL
# # Confluent Schema Registry Basic Auth With SSL example
# - id: someConfluentId
# name: no auth confluent example
# type: confluent_schema_registry
# relatedServices:
# - id1
# connections:
# - name: myConfluentBasicAuthWithSSL
# url: ${CONFLUENT_SCHEMA_REGISTRY_URL}
# authentication:
# - protocol: BASIC_SSL
# credentials:
# - properties:
# - name: username
# value: ${CONFLUENT_USERNAME}
# - name: password
# value: ${CONFLUENT_PASSWORD}
# - name: ssl.truststore.location
# value: ${TRUSTSTORE_LOCATION}
# - name: ssl.truststore.password
# value: ${TRUSTSTORE_PASSWORD}
# source: ENVIRONMENT_VARIABLE
# operations:
# - name: ALL
# # Confluent Schema Registry Basic Auth With mTLS example
# - id: someConfluentId
# name: Basic Auth With mTLS example
# type: confluent_schema_registry
# relatedServices:
# - id1
# connections:
# - name: myConfluentBasicAuthWithMTLS
# url: ${CONFLUENT_SCHEMA_REGISTRY_URL}
# authentication:
# - protocol: BASIC_MTLS
# credentials:
# - properties:
# - name: username
# value: ${CONFLUENT_USERNAME}
# - name: password
# value: ${CONFLUENT_PASSWORD}
# - name: ssl.truststore.location
# value: ${TRUSTSTORE_LOCATION}
# - name: ssl.truststore.password
# value: ${TRUSTSTORE_PASSWORD}
# - name: ssl.keystore.location
# value: ${KEYSTORE_LOCATION}
# - name: ssl.keystore.password
# value: ${KEYSTORE_PASSWORD}
# - name: ssl.key.password
# value: ${KEY_PASSWORD}
# source: ENVIRONMENT_VARIABLE
# operations:
# - name: ALL
# # Confluent Schema Registry TLS example
# - id: someConfluentId
# name: no auth confluent example
# type: confluent_schema_registry
# relatedServices:
# - id1
# connections:
# - name: myConfluentTLS
# url: ${CONFLUENT_SCHEMA_REGISTRY_URL}
# authentication:
# - protocol: TLS
# credentials:
# - properties:
# - name: ssl.truststore.location
# value: ${TRUSTSTORE_LOCATION}
# - name: ssl.truststore.password
# value: ${TRUSTSTORE_PASSWORD}
# source: ENVIRONMENT_VARIABLE
# operations:
# - name: ALL
# # Confluent Schema Registry MTLS example
# - id: someConfluentId
# name: no auth confluent example
# type: confluent_schema_registry
# relatedServices:
# - id1
# connections:
# - name: myConfluentMTLS
# url: ${CONFLUENT_SCHEMA_REGISTRY_URL}
# authentication:
# - protocol: MTLS
# credentials:
# - properties:
# - name: ssl.truststore.location
# value: ${TRUSTSTORE_LOCATION}
# - name: ssl.truststore.password
# value: ${TRUSTSTORE_PASSWORD}
# - name: ssl.keystore.password
# value: ${KEYSTORE_PASSWORD}
# - name: ssl.keystore.location
# value: ${KEYSTORE_LOCATION}
# - name: ssl.key.password
# value: ${KEY_PASSWORD}
# source: ENVIRONMENT_VARIABLE
# operations:
# - name: ALL
# # Solace example
# - id: solaceDefaultService
# type: SOLACE
# name: staging service
# connections:
# - name: mySolaceServiceSemp
# url: ${SOLACE_SEMP_URL}
# authentication:
# - protocol: SEMP
# credentials:
# - source: ENVIRONMENT_VARIABLE
# operations:
# - name: ALL
# properties:
# - name: username
# value: ${SOLACE_SEMP_USERNAME}
# - name: password
# value: ${SOLACE_SEMP_PASSWORD}
# properties:
# - name: msgVpn
# value: ${SOLACE_VPN_NAME}
# - name: sempPageSize
# value: 100
plugins:
resources:
# IBMMQ example
Ushnash marked this conversation as resolved.
Show resolved Hide resolved
- id: ibmmqDefaultService
type: IBMMQ
name: test service
connections:
- name: ibmmqCloudService
url: https://web-qm1-5bc5.qm.us-south.mq.appdomain.cloud/ibmmq/rest/v1/admin/qmgr/QM1
authentication:
- protocol: BASIC
credentials:
- source:
properties:
- name: username
value: ush
- name: password
value: E5J8yGHjPTErikzOVZ0FiloP47FooNKQSTcTx5jQE-oM
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these examples use ENV vars like ${SOME_USERNAME} since that's the preferred way?

operations:
- name: IBMMQ_QUEUE
# properties:
# - name: msgVpn
# value: ${SOLACE_VPN_NAME}
# - name: sempPageSize
# value: 100
# Below is an example of how to set up messaging service configuration in the application.yml file.

#plugins:
# resources:
# # Confluent Schema Registry No Auth example
# - id: someConfluentId
# name: no auth confluent example
# type: confluent_schema_registry
# relatedServices:
# - id1
# - id2
# - id3
# connections:
# - name: myConfluentNoAuth
# url: ${CONFLUENT_SCHEMA_REGISTRY_URL}
# # Confluent Schema Registry Basic Auth example
# - id: someConfluentId
# name: no auth confluent example
# type: confluent_schema_registry
# relatedServices:
# - id1
# connections:
# - name: myConfluentBasicAuth
# url: ${CONFLUENT_SCHEMA_REGISTRY_URL}
# authentication:
# - protocol: BASIC
# credentials:
# - properties:
# - name: username
# value: ${CONFLUENT_USERNAME}
# - name: password
# value: ${CONFLUENT_PASSWORD}
# source: ENVIRONMENT_VARIABLE
# operations:
# - name: ALL
# # Confluent Schema Registry Basic Auth With SSL example
# - id: someConfluentId
# name: no auth confluent example
# type: confluent_schema_registry
# relatedServices:
# - id1
# connections:
# - name: myConfluentBasicAuthWithSSL
# url: ${CONFLUENT_SCHEMA_REGISTRY_URL}
# authentication:
# - protocol: BASIC_SSL
# credentials:
# - properties:
# - name: username
# value: ${CONFLUENT_USERNAME}
# - name: password
# value: ${CONFLUENT_PASSWORD}
# - name: ssl.truststore.location
# value: ${TRUSTSTORE_LOCATION}
# - name: ssl.truststore.password
# value: ${TRUSTSTORE_PASSWORD}
# source: ENVIRONMENT_VARIABLE
# operations:
# - name: ALL
# # Confluent Schema Registry Basic Auth With mTLS example
# - id: someConfluentId
# name: Basic Auth With mTLS example
# type: confluent_schema_registry
# relatedServices:
# - id1
# connections:
# - name: myConfluentBasicAuthWithMTLS
# url: ${CONFLUENT_SCHEMA_REGISTRY_URL}
# authentication:
# - protocol: BASIC_MTLS
# credentials:
# - properties:
# - name: username
# value: ${CONFLUENT_USERNAME}
# - name: password
# value: ${CONFLUENT_PASSWORD}
# - name: ssl.truststore.location
# value: ${TRUSTSTORE_LOCATION}
# - name: ssl.truststore.password
# value: ${TRUSTSTORE_PASSWORD}
# - name: ssl.keystore.location
# value: ${KEYSTORE_LOCATION}
# - name: ssl.keystore.password
# value: ${KEYSTORE_PASSWORD}
# - name: ssl.key.password
# value: ${KEY_PASSWORD}
# source: ENVIRONMENT_VARIABLE
# operations:
# - name: ALL
# # Confluent Schema Registry TLS example
# - id: someConfluentId
# name: no auth confluent example
# type: confluent_schema_registry
# relatedServices:
# - id1
# connections:
# - name: myConfluentTLS
# url: ${CONFLUENT_SCHEMA_REGISTRY_URL}
# authentication:
# - protocol: TLS
# credentials:
# - properties:
# - name: ssl.truststore.location
# value: ${TRUSTSTORE_LOCATION}
# - name: ssl.truststore.password
# value: ${TRUSTSTORE_PASSWORD}
# source: ENVIRONMENT_VARIABLE
# operations:
# - name: ALL
# # Confluent Schema Registry MTLS example
# - id: someConfluentId
# name: no auth confluent example
# type: confluent_schema_registry
# relatedServices:
# - id1
# connections:
# - name: myConfluentMTLS
# url: ${CONFLUENT_SCHEMA_REGISTRY_URL}
# authentication:
# - protocol: MTLS
# credentials:
# - properties:
# - name: ssl.truststore.location
# value: ${TRUSTSTORE_LOCATION}
# - name: ssl.truststore.password
# value: ${TRUSTSTORE_PASSWORD}
# - name: ssl.keystore.password
# value: ${KEYSTORE_PASSWORD}
# - name: ssl.keystore.location
# value: ${KEYSTORE_LOCATION}
# - name: ssl.key.password
# value: ${KEY_PASSWORD}
# source: ENVIRONMENT_VARIABLE
# operations:
# - name: ALL
# Solace example
- id: solaceDefaultService
type: SOLACE
name: staging service
connections:
- name: mySolaceServiceSemp
url: ${SOLACE_SEMP_URL}
authentication:
- protocol: SEMP
credentials:
- source: ENVIRONMENT_VARIABLE
operations:
- name: ALL
properties:
- name: username
value: ${SOLACE_SEMP_USERNAME}
- name: password
value: ${SOLACE_SEMP_PASSWORD}
properties:
- name: msgVpn
value: ${SOLACE_VPN_NAME}
- name: sempPageSize
value: 100
# # MTLS example
# - id: kafkaMTLSServiceExample
# name: mtls kafka cluster example
Expand Down
Loading