From fb2204707a7dacb11c673fbf8720adc1407bd085 Mon Sep 17 00:00:00 2001 From: Victor Kazakov Date: Thu, 11 Oct 2018 16:49:38 -0700 Subject: [PATCH 01/33] remaking example to be a multi-project example --- .gitignore | 4 +- README.md | 25 ++--- build.gradle | 42 +++++--- business-integrations/build.gradle | 13 +++ business-integrations/settings.gradle | 7 ++ .../src/main/gateway/config/services.yml | 9 ++ .../business-integrations/b2b-services.xml | 3 + common-services/build.gradle | 15 +++ common-services/settings.gradle | 7 ++ .../src/main/gateway/config/encass.yml | 12 +++ .../main/gateway/config/jdbc-connections.yml | 9 ++ .../config/stored-passwords.properties | 1 + .../gateway/policy/common/auth/basic-auth.xml | 9 ++ .../policy/common/entities/createPet.xml | 12 +++ consumer-solutions/build.gradle | 13 +++ consumer-solutions/settings.gradle | 7 ++ .../src/main/gateway/config/services.yml | 9 ++ .../consumer-solutions/pets/listPets.xml | 100 ++++++++++++++++++ deployment/build.gradle | 10 ++ deployment/settings.gradle | 7 ++ docker-compose.yml | 20 +++- settings.gradle | 1 + src/main/gateway/config/encass.yml | 11 -- src/main/gateway/config/global.properties | 2 - .../gateway/config/policy-backed-services.yml | 5 - src/main/gateway/config/services.yml | 14 --- .../gateway-solution/another-service.xml | 16 --- .../policy/gateway-solution/encass-policy.xml | 7 -- .../example-policy-include.xml | 24 ----- .../gateway-solution/my-gateway-api.xml | 18 ---- .../a-policy-backed-service.xml | 7 -- .../policy-referencing-dependent-bundle.xml | 8 -- .../sub-folder/policyInFolder.xml | 7 -- 33 files changed, 295 insertions(+), 159 deletions(-) create mode 100644 business-integrations/build.gradle create mode 100644 business-integrations/settings.gradle create mode 100644 business-integrations/src/main/gateway/config/services.yml create mode 100644 business-integrations/src/main/gateway/policy/business-integrations/b2b-services.xml create mode 100644 common-services/build.gradle create mode 100644 common-services/settings.gradle create mode 100644 common-services/src/main/gateway/config/encass.yml create mode 100644 common-services/src/main/gateway/config/jdbc-connections.yml create mode 100644 common-services/src/main/gateway/config/stored-passwords.properties create mode 100644 common-services/src/main/gateway/policy/common/auth/basic-auth.xml create mode 100644 common-services/src/main/gateway/policy/common/entities/createPet.xml create mode 100644 consumer-solutions/build.gradle create mode 100644 consumer-solutions/settings.gradle create mode 100644 consumer-solutions/src/main/gateway/config/services.yml create mode 100644 consumer-solutions/src/main/gateway/policy/consumer-solutions/pets/listPets.xml create mode 100644 deployment/build.gradle create mode 100644 deployment/settings.gradle delete mode 100644 src/main/gateway/config/encass.yml delete mode 100644 src/main/gateway/config/global.properties delete mode 100644 src/main/gateway/config/policy-backed-services.yml delete mode 100644 src/main/gateway/config/services.yml delete mode 100644 src/main/gateway/policy/gateway-solution/another-service.xml delete mode 100644 src/main/gateway/policy/gateway-solution/encass-policy.xml delete mode 100644 src/main/gateway/policy/gateway-solution/example-policy-include.xml delete mode 100644 src/main/gateway/policy/gateway-solution/my-gateway-api.xml delete mode 100644 src/main/gateway/policy/gateway-solution/policy-backed-service/a-policy-backed-service.xml delete mode 100644 src/main/gateway/policy/gateway-solution/policy-referencing-dependent-bundle.xml delete mode 100644 src/main/gateway/policy/gateway-solution/sub-folder/policyInFolder.xml diff --git a/.gitignore b/.gitignore index 952e928..54e0c40 100644 --- a/.gitignore +++ b/.gitignore @@ -3,10 +3,10 @@ # of the MIT license. See the LICENSE file for details. # Root files to ignore -/.gradle/ +.gradle/ /.idea/ /*.iml -/build/ +build/ /out/ .DS_Store .java-version diff --git a/README.md b/README.md index 28aaa14..f14a0cb 100644 --- a/README.md +++ b/README.md @@ -9,34 +9,23 @@ This is an example repository that demonstrates how to use the [CA API Gateway D ## Building the Solution In order to package the solution into something that can be applied to the CA API Gateway run the following Gradle command: -```gradle build``` - -This takes the solution that is contained in the `src/main/gateway` folder and packages it into a bundle at `build/gateway/gateway-developer-example.bundle` +```./gradlew build``` ## Running the Solution In order to run the solution you need to do the following: -1) Put a valid gateway license in the `docker` folder. The license file should be called `license.xml` -2) Make sure you have already built the solution by running `gradle build` +1) Put a valid gateway license in the `docker` folder. The license file should be called `license.xml`. For information on getting a license see the [License Section from the Gateway Container readme](https://hub.docker.com/r/caapim/gateway/). +2) Make sure you have already built the solution by running `./gradlew build` 3) Start the Gateway Container by running: `docker-compose up` -After the container is up and running you can connect the CA API Gateway Policy Manager to it and/or call the example API at `/example` +After the container is up and running you can connect the CA API Gateway Policy Manager to it. ## Exporting Updates -If you connect to the running gateway with the CA API Gateway Policy Manager and make changes to the services you can export those changes by running: - -```gradle export``` +If you connect to the running gateway with the CA API Gateway Policy Manager and make changes to the services and policies you can export those changes by running: -This will export the changes to the `src/main/gateway` folder. Note that your local edits will be overridden by changes from the gateway +```./gradlew export``` -# About the Example Solution -The solution that is checked into this repository is contains a single folder and service. The service exposes `/example` and will respond with the following JSON for any HTTP(S) request: -```json -{ - "you-say": ["Hello", "Gateway"], - "gateway-says": ["Hello", "User"] -} -``` +This will export the changes to the various project folders. Note that your local edits will be overridden by changes from the gateway # Giving Back ## How You Can Contribute diff --git a/build.gradle b/build.gradle index ce531d2..c667c37 100644 --- a/build.gradle +++ b/build.gradle @@ -4,26 +4,38 @@ * of the MIT license. See the LICENSE file for details. */ -plugins { - id "com.ca.apim.gateway.gateway-developer-plugin" version "0.5.00" - id "com.ca.apim.gateway.gateway-export-plugin" version "0.5.00" +buildscript { + repositories { + maven { + url "https://plugins.gradle.org/m2/" + } + } + dependencies { + classpath "com.ca.apim.gateway:gateway-developer-plugin:0.6.22" + classpath "com.ca.apim.gateway:gateway-export-plugin:0.6.22" + } } -group 'com.ca.apim.gateway' -version '0.5.00' +subprojects { + if (!project.name.equals('deployment')) { + apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' + GatewayConnection { + url = 'https://localhost:8443/restman' + } + } -GatewayConnection { - url = 'https://localhost:8443/restman' - folderPath = '/gateway-solution' -} + apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' -repositories { - flatDir { - dirs "lib" + group 'com.ca.apim.gateway' + version = '0.6.0' + + + repositories { + jcenter() } } -dependencies { - bundle group: 'my-bundle', name: 'my-bundle', version: '1.0.00', ext: 'bundle' -} +wrapper { + gradleVersion = '4.10' +} \ No newline at end of file diff --git a/business-integrations/build.gradle b/business-integrations/build.gradle new file mode 100644 index 0000000..b5954d0 --- /dev/null +++ b/business-integrations/build.gradle @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +GatewayConnection { + folderPath = '/business-integrations' +} + +dependencies { + bundle project(':common-services') +} \ No newline at end of file diff --git a/business-integrations/settings.gradle b/business-integrations/settings.gradle new file mode 100644 index 0000000..8d323a8 --- /dev/null +++ b/business-integrations/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'business-integrations' \ No newline at end of file diff --git a/business-integrations/src/main/gateway/config/services.yml b/business-integrations/src/main/gateway/config/services.yml new file mode 100644 index 0000000..c30c79d --- /dev/null +++ b/business-integrations/src/main/gateway/config/services.yml @@ -0,0 +1,9 @@ +business-integrations/b2b-services: + url: "/b2b/*" + policy: "business-integrations/b2b-services.xml" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} diff --git a/business-integrations/src/main/gateway/policy/business-integrations/b2b-services.xml b/business-integrations/src/main/gateway/policy/business-integrations/b2b-services.xml new file mode 100644 index 0000000..794855c --- /dev/null +++ b/business-integrations/src/main/gateway/policy/business-integrations/b2b-services.xml @@ -0,0 +1,3 @@ + + + diff --git a/common-services/build.gradle b/common-services/build.gradle new file mode 100644 index 0000000..4a2165f --- /dev/null +++ b/common-services/build.gradle @@ -0,0 +1,15 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +GatewayConnection { + folderPath = '/common' +} + +GatewayExportConfig { + exportEntities = [ + jdbcConnections:[ "pets-db" ], + ] +} \ No newline at end of file diff --git a/common-services/settings.gradle b/common-services/settings.gradle new file mode 100644 index 0000000..fddb458 --- /dev/null +++ b/common-services/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'common-services' \ No newline at end of file diff --git a/common-services/src/main/gateway/config/encass.yml b/common-services/src/main/gateway/config/encass.yml new file mode 100644 index 0000000..02d3202 --- /dev/null +++ b/common-services/src/main/gateway/config/encass.yml @@ -0,0 +1,12 @@ +createPet: + policy: "common/entities/createPet.xml" + arguments: + - name: "age" + type: "string" + - name: "name" + type: "string" + - name: "type" + type: "string" + results: + - name: "pet-json" + type: "string" diff --git a/common-services/src/main/gateway/config/jdbc-connections.yml b/common-services/src/main/gateway/config/jdbc-connections.yml new file mode 100644 index 0000000..4752014 --- /dev/null +++ b/common-services/src/main/gateway/config/jdbc-connections.yml @@ -0,0 +1,9 @@ +pets-db: + driverClass: "com.l7tech.jdbc.mysql.MySQLDriver" + jdbcUrl: "TBD" + properties: + EnableCancelTimeout: "true" + user: "admin" + passwordRef: "pets-db-password" + minimumPoolSize: 3 + maximumPoolSize: 15 diff --git a/common-services/src/main/gateway/config/stored-passwords.properties b/common-services/src/main/gateway/config/stored-passwords.properties new file mode 100644 index 0000000..c710425 --- /dev/null +++ b/common-services/src/main/gateway/config/stored-passwords.properties @@ -0,0 +1 @@ +pets-db-password= diff --git a/common-services/src/main/gateway/policy/common/auth/basic-auth.xml b/common-services/src/main/gateway/policy/common/auth/basic-auth.xml new file mode 100644 index 0000000..c1f1066 --- /dev/null +++ b/common-services/src/main/gateway/policy/common/auth/basic-auth.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/common-services/src/main/gateway/policy/common/entities/createPet.xml b/common-services/src/main/gateway/policy/common/entities/createPet.xml new file mode 100644 index 0000000..f9c9fcc --- /dev/null +++ b/common-services/src/main/gateway/policy/common/entities/createPet.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/consumer-solutions/build.gradle b/consumer-solutions/build.gradle new file mode 100644 index 0000000..f673ba0 --- /dev/null +++ b/consumer-solutions/build.gradle @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +GatewayConnection { + folderPath = '/consumer-solutions' +} + +dependencies { + bundle project(':common-services') +} \ No newline at end of file diff --git a/consumer-solutions/settings.gradle b/consumer-solutions/settings.gradle new file mode 100644 index 0000000..fcb8175 --- /dev/null +++ b/consumer-solutions/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'consumer-solutions' \ No newline at end of file diff --git a/consumer-solutions/src/main/gateway/config/services.yml b/consumer-solutions/src/main/gateway/config/services.yml new file mode 100644 index 0000000..b448d7f --- /dev/null +++ b/consumer-solutions/src/main/gateway/config/services.yml @@ -0,0 +1,9 @@ +consumer-solutions/pets/listPets: + url: "/gateway-pets" + policy: "consumer-solutions/pets/listPets.xml" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} diff --git a/consumer-solutions/src/main/gateway/policy/consumer-solutions/pets/listPets.xml b/consumer-solutions/src/main/gateway/policy/consumer-solutions/pets/listPets.xml new file mode 100644 index 0000000..5018b00 --- /dev/null +++ b/consumer-solutions/src/main/gateway/policy/consumer-solutions/pets/listPets.xml @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/deployment/build.gradle b/deployment/build.gradle new file mode 100644 index 0000000..2dfc979 --- /dev/null +++ b/deployment/build.gradle @@ -0,0 +1,10 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +dependencies { + bundle project(':business-integrations') + bundle project(':consumer-solutions') +} \ No newline at end of file diff --git a/deployment/settings.gradle b/deployment/settings.gradle new file mode 100644 index 0000000..b26e555 --- /dev/null +++ b/deployment/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'deployment' \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index f639f15..9a693fe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,17 +5,15 @@ version: '3.4' services: gateway-dev: - hostname: gateway-dev - image: caapim/gateway:9.3.00 + hostname: localhost + image: caapim/gateway:9.4.00 ports: - "8080:8080" - "8443:8443" - - "9443:9443" - "8000:8000" volumes: - /opt/SecureSpan/Gateway/node/default/etc/bootstrap/services/restman - - ./lib/my-bundle-1.0.00.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/1-my-bundle-1.0.00.req.bundle - - ./build/gateway/gateway-developer-example.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/2-gateway-developer-example.req.bundle + - ./deployment/build/gateway/deployment-0.6.0.gw7:/opt/docker/rc.d/deployment.gw7 secrets: - source: license target: /opt/SecureSpan/Gateway/node/default/etc/bootstrap/license/license.xml @@ -24,6 +22,18 @@ services: SSG_ADMIN_USERNAME: "admin" SSG_ADMIN_PASSWORD: "password" EXTRA_JAVA_ARGS: "-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" + ENV.PASSWORD.pets-db-password: "temp" + ENV.JDBC_CONNECTION.pets-db: '{ + "driverClass": "com.l7tech.jdbc.mysql.MySQLDriver", + "jdbcUrl": "TBD", + "user": "admin", + "passwordRef": "pets-db-password", + "minimumPoolSize": 3, + "maximumPoolSize": 15, + "properties": { + "EnableCancelTimeout": "true" + } + }' secrets: license: file: ./docker/license.xml \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index 73844a4..2e019c9 100644 --- a/settings.gradle +++ b/settings.gradle @@ -6,3 +6,4 @@ rootProject.name = 'gateway-developer-example' +include 'common-services', 'business-integrations', 'consumer-solutions', 'deployment' \ No newline at end of file diff --git a/src/main/gateway/config/encass.yml b/src/main/gateway/config/encass.yml deleted file mode 100644 index b3dc03f..0000000 --- a/src/main/gateway/config/encass.yml +++ /dev/null @@ -1,11 +0,0 @@ -gateway-solution/encass-policy.xml: - arguments: - - name: "hello" - type: "string" - - name: "hello-again" - type: "message" - results: - - name: "goodbye" - type: "string" - - name: "goodbye-again" - type: "message" diff --git a/src/main/gateway/config/global.properties b/src/main/gateway/config/global.properties deleted file mode 100644 index be2d73f..0000000 --- a/src/main/gateway/config/global.properties +++ /dev/null @@ -1,2 +0,0 @@ -my-global-property=Property\n\#"multi-line"\n -another-property=\!@\#$%^&*()_another+\=-<>?{}|[]\\;'\:"/.,property diff --git a/src/main/gateway/config/policy-backed-services.yml b/src/main/gateway/config/policy-backed-services.yml deleted file mode 100644 index f71578b..0000000 --- a/src/main/gateway/config/policy-backed-services.yml +++ /dev/null @@ -1,5 +0,0 @@ -background-task-service: - interfaceName: "com.l7tech.objectmodel.polback.BackgroundTask" - operations: - - policy: "gateway-solution/policy-backed-service/a-policy-backed-service.xml" - operationName: "run" diff --git a/src/main/gateway/config/services.yml b/src/main/gateway/config/services.yml deleted file mode 100644 index 183fe6b..0000000 --- a/src/main/gateway/config/services.yml +++ /dev/null @@ -1,14 +0,0 @@ -gateway-solution/another-service.xml: - url: "/another-service-example" - httpMethods: - - "DELETE" - - "POST" - - "GET" - - "PUT" -gateway-solution/my-gateway-api.xml: - url: "/example" - httpMethods: - - "DELETE" - - "POST" - - "GET" - - "PUT" diff --git a/src/main/gateway/policy/gateway-solution/another-service.xml b/src/main/gateway/policy/gateway-solution/another-service.xml deleted file mode 100644 index 96b18b9..0000000 --- a/src/main/gateway/policy/gateway-solution/another-service.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/main/gateway/policy/gateway-solution/encass-policy.xml b/src/main/gateway/policy/gateway-solution/encass-policy.xml deleted file mode 100644 index c02588e..0000000 --- a/src/main/gateway/policy/gateway-solution/encass-policy.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/src/main/gateway/policy/gateway-solution/example-policy-include.xml b/src/main/gateway/policy/gateway-solution/example-policy-include.xml deleted file mode 100644 index 02b072a..0000000 --- a/src/main/gateway/policy/gateway-solution/example-policy-include.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/main/gateway/policy/gateway-solution/my-gateway-api.xml b/src/main/gateway/policy/gateway-solution/my-gateway-api.xml deleted file mode 100644 index 303ad68..0000000 --- a/src/main/gateway/policy/gateway-solution/my-gateway-api.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/main/gateway/policy/gateway-solution/policy-backed-service/a-policy-backed-service.xml b/src/main/gateway/policy/gateway-solution/policy-backed-service/a-policy-backed-service.xml deleted file mode 100644 index 039e3d9..0000000 --- a/src/main/gateway/policy/gateway-solution/policy-backed-service/a-policy-backed-service.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/src/main/gateway/policy/gateway-solution/policy-referencing-dependent-bundle.xml b/src/main/gateway/policy/gateway-solution/policy-referencing-dependent-bundle.xml deleted file mode 100644 index 8e16a25..0000000 --- a/src/main/gateway/policy/gateway-solution/policy-referencing-dependent-bundle.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/src/main/gateway/policy/gateway-solution/sub-folder/policyInFolder.xml b/src/main/gateway/policy/gateway-solution/sub-folder/policyInFolder.xml deleted file mode 100644 index 9b60f61..0000000 --- a/src/main/gateway/policy/gateway-solution/sub-folder/policyInFolder.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - From deccf83535c94ae43194fab2447e67e01f37b4ad Mon Sep 17 00:00:00 2001 From: kazvictor Date: Thu, 1 Nov 2018 11:24:12 -0700 Subject: [PATCH 02/33] update gradle wrapper --- gradle/wrapper/gradle-wrapper.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 16d2805..115e6ac 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists From ba4a396faa11fd66ac63cafc712d22c5a9e16885 Mon Sep 17 00:00:00 2001 From: kazvictor Date: Fri, 9 Nov 2018 15:32:02 -0800 Subject: [PATCH 03/33] updating to plugin version 0.6.32 --- build.gradle | 4 ++-- business-integrations/src/main/gateway/config/services.yml | 2 +- common-services/src/main/gateway/config/encass.yml | 2 +- consumer-solutions/src/main/gateway/config/services.yml | 2 +- .../main/gateway/policy/consumer-solutions/pets/listPets.xml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index c667c37..a0807b3 100644 --- a/build.gradle +++ b/build.gradle @@ -11,8 +11,8 @@ buildscript { } } dependencies { - classpath "com.ca.apim.gateway:gateway-developer-plugin:0.6.22" - classpath "com.ca.apim.gateway:gateway-export-plugin:0.6.22" + classpath "com.ca.apim.gateway:gateway-developer-plugin:0.6.32" + classpath "com.ca.apim.gateway:gateway-export-plugin:0.6.32" } } diff --git a/business-integrations/src/main/gateway/config/services.yml b/business-integrations/src/main/gateway/config/services.yml index c30c79d..b731e69 100644 --- a/business-integrations/src/main/gateway/config/services.yml +++ b/business-integrations/src/main/gateway/config/services.yml @@ -1,6 +1,6 @@ business-integrations/b2b-services: url: "/b2b/*" - policy: "business-integrations/b2b-services.xml" + policy: "business-integrations/b2b-services" httpMethods: - "DELETE" - "POST" diff --git a/common-services/src/main/gateway/config/encass.yml b/common-services/src/main/gateway/config/encass.yml index 02d3202..8af728a 100644 --- a/common-services/src/main/gateway/config/encass.yml +++ b/common-services/src/main/gateway/config/encass.yml @@ -1,5 +1,5 @@ createPet: - policy: "common/entities/createPet.xml" + policy: "common/entities/createPet" arguments: - name: "age" type: "string" diff --git a/consumer-solutions/src/main/gateway/config/services.yml b/consumer-solutions/src/main/gateway/config/services.yml index b448d7f..f88efa9 100644 --- a/consumer-solutions/src/main/gateway/config/services.yml +++ b/consumer-solutions/src/main/gateway/config/services.yml @@ -1,6 +1,6 @@ consumer-solutions/pets/listPets: url: "/gateway-pets" - policy: "consumer-solutions/pets/listPets.xml" + policy: "consumer-solutions/pets/listPets" httpMethods: - "DELETE" - "POST" diff --git a/consumer-solutions/src/main/gateway/policy/consumer-solutions/pets/listPets.xml b/consumer-solutions/src/main/gateway/policy/consumer-solutions/pets/listPets.xml index 5018b00..dcb386c 100644 --- a/consumer-solutions/src/main/gateway/policy/consumer-solutions/pets/listPets.xml +++ b/consumer-solutions/src/main/gateway/policy/consumer-solutions/pets/listPets.xml @@ -2,7 +2,7 @@ - + From 26748a77c4f84612f6671195b4f5671d63324a56 Mon Sep 17 00:00:00 2001 From: kazvictor Date: Fri, 9 Nov 2018 15:52:20 -0800 Subject: [PATCH 04/33] updating config files do to plugin updates --- common-services/src/main/gateway/config/encass.yml | 3 +++ .../src/main/gateway/policy/common/auth/basic-auth.xml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common-services/src/main/gateway/config/encass.yml b/common-services/src/main/gateway/config/encass.yml index 8af728a..96dfe9c 100644 --- a/common-services/src/main/gateway/config/encass.yml +++ b/common-services/src/main/gateway/config/encass.yml @@ -3,10 +3,13 @@ createPet: arguments: - name: "age" type: "string" + requireExplicit: false - name: "name" type: "string" + requireExplicit: false - name: "type" type: "string" + requireExplicit: false results: - name: "pet-json" type: "string" diff --git a/common-services/src/main/gateway/policy/common/auth/basic-auth.xml b/common-services/src/main/gateway/policy/common/auth/basic-auth.xml index c1f1066..9465f0e 100644 --- a/common-services/src/main/gateway/policy/common/auth/basic-auth.xml +++ b/common-services/src/main/gateway/policy/common/auth/basic-auth.xml @@ -3,7 +3,7 @@ - + From 62ee989d51c889c1990ef723edf8fddb89493d3c Mon Sep 17 00:00:00 2001 From: Joao Gabriel Borges Caldeira Date: Mon, 19 Nov 2018 14:49:05 -0800 Subject: [PATCH 05/33] Enforcing line separators (#8) --- .gitattributes | 40 ++++++++++++ gradlew.bat | 168 ++++++++++++++++++++++++------------------------- 2 files changed, 124 insertions(+), 84 deletions(-) create mode 100755 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100755 index 0000000..f05c7fc --- /dev/null +++ b/.gitattributes @@ -0,0 +1,40 @@ +# Set the default behavior, in case people don't have core.autocrlf set. +* text=auto + +# Explicitly declare text files you want to always be normalized and converted +# to native line endings on checkout. +*.txt text +*.java text +*.groovy text +*.js text +*.form text +*.c text +*.h text +*.cpp text +*.xml text +*.xsd text +*.config text +*.conf text +*.properties text +*.manifest text +*.yml text +*.json text + +# Declare files that will always have LF line endings on checkout. +*.sh text eol=lf +*.pl text eol=lf +*.sql text eol=lf + +# Declare files that will always have CRLF line endings on checkout. +*.bat text eol=crlf +*.cmd text eol=crlf +*.sln text eol=crlf +*.rc text eol=crlf +*.vcproj text eol=crlf +modules/gateway/server/src/test/resources/com/l7tech/server/policy/resources/REQUEST_signed_attachment.txt text eol=crlf +modules/gateway/server/src/test/resources/com/l7tech/server/policy/resources/REQUEST_unsigned_attachment.txt text eol=crlf + +# Denote all files that are truly binary and should not be modified. +*.jar binary +*.tgz binary +*.ico binary diff --git a/gradlew.bat b/gradlew.bat index e95643d..f955316 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -1,84 +1,84 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windows variants - -if not "%OS%" == "Windows_NT" goto win9xME_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega From 9830f2fe3ebe4e662956a8c58cedabc7c274150d Mon Sep 17 00:00:00 2001 From: Amogh Agrawal Date: Mon, 3 Dec 2018 14:11:38 -0800 Subject: [PATCH 06/33] 139 - Removing folderpath from different build graldes. (#9) * 139 - Removing folderpath from different build graldes. * 139 - replacing GatewayConnection with GatewayExportConfig in different build graldes. * 139 - Updating plugin version to latest in build.gradle --- build.gradle | 5 +++-- business-integrations/build.gradle | 2 +- common-services/build.gradle | 2 +- consumer-solutions/build.gradle | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index a0807b3..5575bd2 100644 --- a/build.gradle +++ b/build.gradle @@ -11,8 +11,9 @@ buildscript { } } dependencies { - classpath "com.ca.apim.gateway:gateway-developer-plugin:0.6.32" - classpath "com.ca.apim.gateway:gateway-export-plugin:0.6.32" + // "+" will always pull the latest available + classpath "com.ca.apim.gateway:gateway-developer-plugin:0.6.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:0.6.+" } } diff --git a/business-integrations/build.gradle b/business-integrations/build.gradle index b5954d0..c378f51 100644 --- a/business-integrations/build.gradle +++ b/business-integrations/build.gradle @@ -4,7 +4,7 @@ * of the MIT license. See the LICENSE file for details. */ -GatewayConnection { +GatewayExportConfig { folderPath = '/business-integrations' } diff --git a/common-services/build.gradle b/common-services/build.gradle index 4a2165f..1b53752 100644 --- a/common-services/build.gradle +++ b/common-services/build.gradle @@ -4,7 +4,7 @@ * of the MIT license. See the LICENSE file for details. */ -GatewayConnection { +GatewayExportConfig { folderPath = '/common' } diff --git a/consumer-solutions/build.gradle b/consumer-solutions/build.gradle index f673ba0..c6867d5 100644 --- a/consumer-solutions/build.gradle +++ b/consumer-solutions/build.gradle @@ -4,7 +4,7 @@ * of the MIT license. See the LICENSE file for details. */ -GatewayConnection { +GatewayExportConfig { folderPath = '/consumer-solutions' } From 4ab15b9001df08ccb7aff8e30b2a69ef925bbdbe Mon Sep 17 00:00:00 2001 From: Joao Gabriel Borges Caldeira Date: Wed, 16 Jan 2019 15:44:01 -0800 Subject: [PATCH 07/33] Fixing encass property (#11) --- common-services/src/main/gateway/config/encass.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common-services/src/main/gateway/config/encass.yml b/common-services/src/main/gateway/config/encass.yml index 96dfe9c..f0431e3 100644 --- a/common-services/src/main/gateway/config/encass.yml +++ b/common-services/src/main/gateway/config/encass.yml @@ -3,13 +3,13 @@ createPet: arguments: - name: "age" type: "string" - requireExplicit: false + requireExplicit: true - name: "name" type: "string" - requireExplicit: false + requireExplicit: true - name: "type" type: "string" - requireExplicit: false + requireExplicit: true results: - name: "pet-json" type: "string" From ad31a5f9c2b3ff132068eb29a1021aa625c87955 Mon Sep 17 00:00:00 2001 From: Joao Gabriel Borges Caldeira Date: Fri, 25 Jan 2019 15:12:22 -0800 Subject: [PATCH 08/33] Sample usage for appliance gateways (#10) * Sample usage for building an environment bundle and installing to a remote GW * Sample usage for building an environment bundle and installing to a remote GW --- build.gradle | 7 +- .../business-integrations/b2b-services.xml | 6 +- common-services/build.gradle | 3 - deployment/build.gradle | 94 ++++++++++++++++++- 4 files changed, 100 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index 5575bd2..f4892fa 100644 --- a/build.gradle +++ b/build.gradle @@ -18,20 +18,17 @@ buildscript { } subprojects { + apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' + apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' if (!project.name.equals('deployment')) { - apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' - GatewayConnection { url = 'https://localhost:8443/restman' } } - apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' - group 'com.ca.apim.gateway' version = '0.6.0' - repositories { jcenter() } diff --git a/business-integrations/src/main/gateway/policy/business-integrations/b2b-services.xml b/business-integrations/src/main/gateway/policy/business-integrations/b2b-services.xml index 794855c..a69a3c6 100644 --- a/business-integrations/src/main/gateway/policy/business-integrations/b2b-services.xml +++ b/business-integrations/src/main/gateway/policy/business-integrations/b2b-services.xml @@ -1,3 +1,7 @@ - + + + + + diff --git a/common-services/build.gradle b/common-services/build.gradle index 1b53752..7410ba0 100644 --- a/common-services/build.gradle +++ b/common-services/build.gradle @@ -6,9 +6,6 @@ GatewayExportConfig { folderPath = '/common' -} - -GatewayExportConfig { exportEntities = [ jdbcConnections:[ "pets-db" ], ] diff --git a/deployment/build.gradle b/deployment/build.gradle index 2dfc979..c41c93f 100644 --- a/deployment/build.gradle +++ b/deployment/build.gradle @@ -7,4 +7,96 @@ dependencies { bundle project(':business-integrations') bundle project(':consumer-solutions') -} \ No newline at end of file +} + +// Configurations below are designed to be used with non-ephemeral gateways + +// configuration for the environment bundle generation +// profile 'test' +project.ext.set ("testEnvironmentInfo", ['PASSWORD.pets-db-password': 'temp', "JDBC_CONNECTION.pets-db": "{\n" + + "\"driverClass\": \"com.l7tech.jdbc.mysql.MySQLDriver\",\n" + + "\"jdbcUrl\": \"jdbc:mysql://localhost:3306/test\",\n" + + "\"user\": \"admin\",\n" + + "\"passwordRef\": \"pets-db-password\",\n" + + "\"minimumPoolSize\": 3,\n" + + "\"maximumPoolSize\": 15,\n" + + "\"properties\": {\n" + + " \"EnableCancelTimeout\": \"true\"\n" + + "}\n" + + "}", + "PROPERTY.gateway.log.levels": "com.l7tech.server.policy.level = FINEST\n" + + "com.hazelcast.level = OFF"]) +project.ext.set("testGatewayURL", "https://joaoborges-laptop:8443") +project.ext.set("testGatewayUsername", "admin") +project.ext.set("testGatewayPassword", "password") + +// profile 'production' +project.ext.set ("productionEnvironmentInfo", ['PASSWORD.pets-db-password': '14Uzx2(C.>z196I', "ENV.JDBC_CONNECTION.pets-db": "{\n" + + "\"driverClass\": \"com.l7tech.jdbc.mysql.MySQLDriver\",\n" + + "\"jdbcUrl\": \"jdbc:mysql://database.production.com:3306/production\",\n" + + "\"user\": \"admin\",\n" + + "\"passwordRef\": \"pets-db-password\",\n" + + "\"minimumPoolSize\": 3,\n" + + "\"maximumPoolSize\": 15,\n" + + "\"properties\": {\n" + + " \"EnableCancelTimeout\": \"true\"\n" + + " }\n" + + "}", + "PROPERTY.gateway.log.levels": "com.l7tech.server.policy.level = WARNING\n" + + "com.hazelcast.level = WARNING"]) +project.ext.set("productionGatewayURL", "https://gateway.production.com:8443") +project.ext.set("productionGatewayUsername", "admin") +project.ext.set("productionGatewayPassword", "password") + +// GatewayConnection stores the information on how to access the running gateway +// This is being done for a single GW instance, in a cluster, GWs will be sharing DB and making changes into a single one +// will automatically replicate to the others. +// Here we have the URL, username and password to access restman services. +// This info is being loaded from previously configured values, choosing the environment profile using a property. +// This can be specified with -PenvironmentType=xxx when running ./gradlew. +GatewayConnection { + // pick the chosen environment type, or if null use test by default + def environmentType = project.parent.properties['environmentType'] ?: 'test' + url = project.ext."${environmentType}GatewayURL" + userName = project.ext."${environmentType}GatewayUsername" + userPass = project.ext."${environmentType}GatewayPassword" +} + +// This configuration is also chosen using profile property, and relates to which map of environment values +// will be used to provide the environment bundles to the Gateway. +GatewaySourceConfig { + // pick the chosen environment type, or if null use test by default + def environmentType = project.parent.properties['environmentType'] ?: 'test' + // select the environment config for the specified environment + environmentConfig = project.ext."${environmentType}EnvironmentInfo" + // also setting a specific directory for environment bundle work + builtEnvironmentBundleDir = new File(project.buildDir, "deployment") +} + +// The section below configures the tasks related to building and deploying the bundles. +// Two gradle tasks are involved in this process: 'build-full-bundle' and 'import-bundle'. + +// The first one is the task that will grab all behavior configuration bundles (called 'deployment' bundles) +// and generate an environment configuration bundle using information from the specified environment profile. +// Then, all bundles get merged and exported to a file (which is represented by the 'outputBundle' property) + +// The second one is the task that will grab any bundle and upload to the Gateway, using restman endpoint configurations +// specified above. +// To achieve the required result, we set the import-bundle task to install the bundle that is the output +// of the build-full-bundle task. This will install the solution merged bundle, containing the environment properties, +// and the behaviour configurations. +// This is achieved by adding the 'dependsOn' declaration below, and setting the 'importFile' of the task to look into +// the 'outputBundle' of the other task. +tasks.getByName("import-bundle").dependsOn("build-full-bundle") +project.afterEvaluate { + tasks.getByName("import-bundle").importFile = tasks.getByName("build-full-bundle").outputBundle +} + +// To try this whole solution, follow the steps below: +/* + * - run ./gradlew build in the root folder of this project, which will generate the gw7 package for the deployment module + * - spin up the gateway using the docker-compose.yml file provided as sample in this repository + * - make changes locally to the configuration files, add/remove policies, provide more environment properties into this file. + * - run ./gradlew clean build :deployment:import-bundle which will run the tasks explained above and will deploy the results to the running gateway + * - using Gateway Policy Manager, check policies and configuration to see modifications were applied. + */ \ No newline at end of file From 1cb5112942693f148f0cb8e65dc016e4fb198f25 Mon Sep 17 00:00:00 2001 From: Joao Gabriel Borges Caldeira Date: Tue, 5 Feb 2019 13:53:28 -0800 Subject: [PATCH 09/33] Using import task from import plugin (#12) * Using splitted import plugin * Using import plugin release version --- build.gradle | 10 ++++++++-- common-services/src/main/gateway/config/encass.yml | 2 ++ consumer-solutions/build.gradle | 4 ++++ deployment/build.gradle | 5 +++-- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index f4892fa..47951c0 100644 --- a/build.gradle +++ b/build.gradle @@ -6,6 +6,7 @@ buildscript { repositories { + mavenLocal() maven { url "https://plugins.gradle.org/m2/" } @@ -14,22 +15,27 @@ buildscript { // "+" will always pull the latest available classpath "com.ca.apim.gateway:gateway-developer-plugin:0.6.+" classpath "com.ca.apim.gateway:gateway-export-plugin:0.6.+" + classpath "com.ca.apim.gateway:gateway-import-plugin:0.6.+" } } subprojects { apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' - apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' if (!project.name.equals('deployment')) { + apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' GatewayConnection { url = 'https://localhost:8443/restman' } - } + } group 'com.ca.apim.gateway' version = '0.6.0' repositories { + mavenLocal() + flatDir { + dirs new File(project.parent.rootDir, "lib") + } jcenter() } } diff --git a/common-services/src/main/gateway/config/encass.yml b/common-services/src/main/gateway/config/encass.yml index f0431e3..ca507af 100644 --- a/common-services/src/main/gateway/config/encass.yml +++ b/common-services/src/main/gateway/config/encass.yml @@ -13,3 +13,5 @@ createPet: results: - name: "pet-json" type: "string" + properties: + paletteFolder: "internalAssertions" diff --git a/consumer-solutions/build.gradle b/consumer-solutions/build.gradle index c6867d5..0f4db84 100644 --- a/consumer-solutions/build.gradle +++ b/consumer-solutions/build.gradle @@ -10,4 +10,8 @@ GatewayExportConfig { dependencies { bundle project(':common-services') + bundle group: 'my-bundle', name: 'my-bundle', version: '1.0.00', ext: 'bundle' +} + +repositories { } \ No newline at end of file diff --git a/deployment/build.gradle b/deployment/build.gradle index c41c93f..f40ae04 100644 --- a/deployment/build.gradle +++ b/deployment/build.gradle @@ -10,6 +10,7 @@ dependencies { } // Configurations below are designed to be used with non-ephemeral gateways +apply plugin: 'com.ca.apim.gateway.gateway-import-plugin' // configuration for the environment bundle generation // profile 'test' @@ -48,13 +49,13 @@ project.ext.set("productionGatewayURL", "https://gateway.production.com:8443") project.ext.set("productionGatewayUsername", "admin") project.ext.set("productionGatewayPassword", "password") -// GatewayConnection stores the information on how to access the running gateway +// GatewayImportConnection stores the information on how to access the running gateway // This is being done for a single GW instance, in a cluster, GWs will be sharing DB and making changes into a single one // will automatically replicate to the others. // Here we have the URL, username and password to access restman services. // This info is being loaded from previously configured values, choosing the environment profile using a property. // This can be specified with -PenvironmentType=xxx when running ./gradlew. -GatewayConnection { +GatewayImportConnection { // pick the chosen environment type, or if null use test by default def environmentType = project.parent.properties['environmentType'] ?: 'test' url = project.ext."${environmentType}GatewayURL" From 5f28b4f5d11238837254587bfb98a5b8fb4fd9f4 Mon Sep 17 00:00:00 2001 From: "Borges Caldeira, Joao Gabriel" Date: Mon, 10 Jun 2019 12:38:51 -0700 Subject: [PATCH 10/33] Upgrading to latest plugin and gradle version --- build.gradle | 6 +++--- gradle/wrapper/gradle-wrapper.properties | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 47951c0..f8574ae 100644 --- a/build.gradle +++ b/build.gradle @@ -13,9 +13,9 @@ buildscript { } dependencies { // "+" will always pull the latest available - classpath "com.ca.apim.gateway:gateway-developer-plugin:0.6.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:0.6.+" - classpath "com.ca.apim.gateway:gateway-import-plugin:0.6.+" + classpath "com.ca.apim.gateway:gateway-developer-plugin:0.8.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:0.8.+" + classpath "com.ca.apim.gateway:gateway-import-plugin:0.8.+" } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 115e6ac..9ecac78 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,6 @@ +#Fri May 24 12:31:11 PDT 2019 +distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-all.zip distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-bin.zip -zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME From cab1571c378ab63cf424f3462c634029fc1177a5 Mon Sep 17 00:00:00 2001 From: "Borges Caldeira, Joao Gabriel" Date: Mon, 10 Jun 2019 12:39:10 -0700 Subject: [PATCH 11/33] Standardizing environment values as Yaml format --- docker-compose.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9a693fe..a373a76 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,17 +23,15 @@ services: SSG_ADMIN_PASSWORD: "password" EXTRA_JAVA_ARGS: "-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" ENV.PASSWORD.pets-db-password: "temp" - ENV.JDBC_CONNECTION.pets-db: '{ - "driverClass": "com.l7tech.jdbc.mysql.MySQLDriver", - "jdbcUrl": "TBD", - "user": "admin", - "passwordRef": "pets-db-password", - "minimumPoolSize": 3, - "maximumPoolSize": 15, - "properties": { - "EnableCancelTimeout": "true" - } - }' + ENV.JDBC_CONNECTION.pets-db: |- + driverClass: "com.l7tech.jdbc.mysql.MySQLDriver" + jdbcUrl: "TBD" + properties: + EnableCancelTimeout: "true" + user: "admin" + passwordRef: "pets-db-password" + minimumPoolSize: 3 + maximumPoolSize: 15 secrets: license: file: ./docker/license.xml \ No newline at end of file From e3382c4bd2645c08a132380585b73f5fd143ff2e Mon Sep 17 00:00:00 2001 From: "Borges Caldeira, Joao Gabriel" Date: Mon, 10 Jun 2019 15:33:31 -0700 Subject: [PATCH 12/33] Increasing examples and upgrading the repo --- audit/build.gradle | 9 + audit/settings.gradle | 7 + .../main/gateway/config/audit-policies.yml | 12 + .../audit-policies/Audit Filter Policy.xml | 38 ++ .../audit-policies/Audit Viewer Policy.xml | 29 ++ .../[Internal Audit Lookup Policy].xml | 8 + .../[Internal Audit Sink Policy].xml | 10 + build.gradle | 2 +- .../src/main/gateway/config/services.yml | 1 + common-services/build.gradle | 4 + .../src/main/gateway/config/encass.yml | 16 + .../main/gateway/config/jdbc-connections.yml | 9 - .../gateway/config/policy-backed-services.yml | 5 + .../main/gateway/config/scheduled-tasks.yml | 8 + .../config/stored-passwords.properties | 1 - .../policy/common/ScheduledTaskPolicy.xml | 11 + .../gateway/policy/common/encass-policy.xml | 7 + .../policy/common/entities/createPet.xml | 6 +- .../policy/common/example-policy-include.xml | 22 + .../policy-referencing-dependent-bundle.xml | 8 + consumer-solutions/build.gradle | 3 - .../src/main/gateway/config/services.yml | 2 +- deployment/build.gradle | 4 + docker-compose.yml | 152 +++++- global/build.gradle | 9 + global/settings.gradle | 7 + .../main/gateway/config/global-policies.yml | 6 + .../global-completed-policy.xml | 9 + .../global-received-policy.xml | 11 + lib/DelayAssertion-sdk80-1.1-729.jar | Bin 0 -> 12769 bytes lib/privateKeys/test.p12 | Bin 0 -> 1095 bytes routings/build.gradle | 13 + routings/settings.gradle | 7 + routings/src/main/gateway/config/services.yml | 95 ++++ .../policy/routings/another-service.xml | 14 + .../policy/routings/cassandra-service.xml | 18 + .../gateway/policy/routings/db-service.xml | 16 + .../environment-properties-example.xml | 19 + .../gateway/policy/routings/ftp-service.xml | 10 + .../policy/routings/my-gateway-api.xml | 16 + .../routings/routing-assertion-example.xml | 30 ++ .../policy/routings/soap/Calculator.xml | 28 ++ .../routings/soap/PlayerStatsService.xml | 28 ++ .../routings/sub-folder/policyInFolder.xml | 7 + .../soap/Calculator/calculator.asmx?wsdl.wsdl | 195 ++++++++ .../PlayerStatsService/PlayerStats?wsdl.wsdl | 437 ++++++++++++++++++ service-metrics/build.gradle | 9 + service-metrics/settings.gradle | 7 + .../gateway/config/policy-backed-services.yml | 5 + .../policy/service-metrics/Metrics.xml | 12 + settings.gradle | 9 +- 51 files changed, 1359 insertions(+), 32 deletions(-) create mode 100644 audit/build.gradle create mode 100644 audit/settings.gradle create mode 100644 audit/src/main/gateway/config/audit-policies.yml create mode 100644 audit/src/main/gateway/policy/audit-policies/Audit Filter Policy.xml create mode 100644 audit/src/main/gateway/policy/audit-policies/Audit Viewer Policy.xml create mode 100644 audit/src/main/gateway/policy/audit-policies/[Internal Audit Lookup Policy].xml create mode 100644 audit/src/main/gateway/policy/audit-policies/[Internal Audit Sink Policy].xml delete mode 100644 common-services/src/main/gateway/config/jdbc-connections.yml create mode 100644 common-services/src/main/gateway/config/policy-backed-services.yml create mode 100644 common-services/src/main/gateway/config/scheduled-tasks.yml delete mode 100644 common-services/src/main/gateway/config/stored-passwords.properties create mode 100644 common-services/src/main/gateway/policy/common/ScheduledTaskPolicy.xml create mode 100644 common-services/src/main/gateway/policy/common/encass-policy.xml create mode 100644 common-services/src/main/gateway/policy/common/example-policy-include.xml create mode 100644 common-services/src/main/gateway/policy/common/policy-referencing-dependent-bundle.xml create mode 100644 global/build.gradle create mode 100644 global/settings.gradle create mode 100644 global/src/main/gateway/config/global-policies.yml create mode 100644 global/src/main/gateway/policy/global-policies/global-completed-policy.xml create mode 100644 global/src/main/gateway/policy/global-policies/global-received-policy.xml create mode 100755 lib/DelayAssertion-sdk80-1.1-729.jar create mode 100644 lib/privateKeys/test.p12 create mode 100644 routings/build.gradle create mode 100644 routings/settings.gradle create mode 100644 routings/src/main/gateway/config/services.yml create mode 100644 routings/src/main/gateway/policy/routings/another-service.xml create mode 100644 routings/src/main/gateway/policy/routings/cassandra-service.xml create mode 100644 routings/src/main/gateway/policy/routings/db-service.xml create mode 100644 routings/src/main/gateway/policy/routings/environment-properties-example.xml create mode 100644 routings/src/main/gateway/policy/routings/ftp-service.xml create mode 100644 routings/src/main/gateway/policy/routings/my-gateway-api.xml create mode 100644 routings/src/main/gateway/policy/routings/routing-assertion-example.xml create mode 100644 routings/src/main/gateway/policy/routings/soap/Calculator.xml create mode 100644 routings/src/main/gateway/policy/routings/soap/PlayerStatsService.xml create mode 100644 routings/src/main/gateway/policy/routings/sub-folder/policyInFolder.xml create mode 100644 routings/src/main/gateway/soapResources/routings/soap/Calculator/calculator.asmx?wsdl.wsdl create mode 100644 routings/src/main/gateway/soapResources/routings/soap/PlayerStatsService/PlayerStats?wsdl.wsdl create mode 100644 service-metrics/build.gradle create mode 100644 service-metrics/settings.gradle create mode 100644 service-metrics/src/main/gateway/config/policy-backed-services.yml create mode 100644 service-metrics/src/main/gateway/policy/service-metrics/Metrics.xml diff --git a/audit/build.gradle b/audit/build.gradle new file mode 100644 index 0000000..832d53c --- /dev/null +++ b/audit/build.gradle @@ -0,0 +1,9 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +GatewayExportConfig { + folderPath = '/audit-policies' +} \ No newline at end of file diff --git a/audit/settings.gradle b/audit/settings.gradle new file mode 100644 index 0000000..f4b6831 --- /dev/null +++ b/audit/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'audit' \ No newline at end of file diff --git a/audit/src/main/gateway/config/audit-policies.yml b/audit/src/main/gateway/config/audit-policies.yml new file mode 100644 index 0000000..bbcb161 --- /dev/null +++ b/audit/src/main/gateway/config/audit-policies.yml @@ -0,0 +1,12 @@ +Audit Viewer Policy: + path: "audit-policies/Audit Viewer Policy" + tag: "audit-viewer" +Audit Filter Policy: + path: "audit-policies/Audit Filter Policy" + tag: "audit-message-filter" +'[Internal Audit Sink Policy]': + path: "audit-policies/[Internal Audit Sink Policy]" + tag: "audit-sink" +'[Internal Audit Lookup Policy]': + path: "audit-policies/[Internal Audit Lookup Policy]" + tag: "audit-lookup" diff --git a/audit/src/main/gateway/policy/audit-policies/Audit Filter Policy.xml b/audit/src/main/gateway/policy/audit-policies/Audit Filter Policy.xml new file mode 100644 index 0000000..bef1c47 --- /dev/null +++ b/audit/src/main/gateway/policy/audit-policies/Audit Filter Policy.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/audit/src/main/gateway/policy/audit-policies/Audit Viewer Policy.xml b/audit/src/main/gateway/policy/audit-policies/Audit Viewer Policy.xml new file mode 100644 index 0000000..fd224ec --- /dev/null +++ b/audit/src/main/gateway/policy/audit-policies/Audit Viewer Policy.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/audit/src/main/gateway/policy/audit-policies/[Internal Audit Lookup Policy].xml b/audit/src/main/gateway/policy/audit-policies/[Internal Audit Lookup Policy].xml new file mode 100644 index 0000000..0be6920 --- /dev/null +++ b/audit/src/main/gateway/policy/audit-policies/[Internal Audit Lookup Policy].xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/audit/src/main/gateway/policy/audit-policies/[Internal Audit Sink Policy].xml b/audit/src/main/gateway/policy/audit-policies/[Internal Audit Sink Policy].xml new file mode 100644 index 0000000..d0213b6 --- /dev/null +++ b/audit/src/main/gateway/policy/audit-policies/[Internal Audit Sink Policy].xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/build.gradle b/build.gradle index f8574ae..cad2bb9 100644 --- a/build.gradle +++ b/build.gradle @@ -29,7 +29,7 @@ subprojects { } group 'com.ca.apim.gateway' - version = '0.6.0' + version = '0.8.0' repositories { mavenLocal() diff --git a/business-integrations/src/main/gateway/config/services.yml b/business-integrations/src/main/gateway/config/services.yml index b731e69..489834f 100644 --- a/business-integrations/src/main/gateway/config/services.yml +++ b/business-integrations/src/main/gateway/config/services.yml @@ -7,3 +7,4 @@ business-integrations/b2b-services: - "GET" - "PUT" properties: {} + wssProcessingEnabled: false diff --git a/common-services/build.gradle b/common-services/build.gradle index 7410ba0..9db0b58 100644 --- a/common-services/build.gradle +++ b/common-services/build.gradle @@ -9,4 +9,8 @@ GatewayExportConfig { exportEntities = [ jdbcConnections:[ "pets-db" ], ] +} + +dependencies { + bundle group: 'my-bundle', name: 'my-bundle', version: '1.0.00', ext: 'bundle' } \ No newline at end of file diff --git a/common-services/src/main/gateway/config/encass.yml b/common-services/src/main/gateway/config/encass.yml index ca507af..5366694 100644 --- a/common-services/src/main/gateway/config/encass.yml +++ b/common-services/src/main/gateway/config/encass.yml @@ -15,3 +15,19 @@ createPet: type: "string" properties: paletteFolder: "internalAssertions" +encass-policy: + policy: "common/encass-policy" + arguments: + - name: "hello" + type: "string" + requireExplicit: true + - name: "hello-again" + type: "message" + requireExplicit: false + results: + - name: "goodbye" + type: "string" + - name: "goodbye-again" + type: "message" + properties: + paletteFolder: "internalAssertions" diff --git a/common-services/src/main/gateway/config/jdbc-connections.yml b/common-services/src/main/gateway/config/jdbc-connections.yml deleted file mode 100644 index 4752014..0000000 --- a/common-services/src/main/gateway/config/jdbc-connections.yml +++ /dev/null @@ -1,9 +0,0 @@ -pets-db: - driverClass: "com.l7tech.jdbc.mysql.MySQLDriver" - jdbcUrl: "TBD" - properties: - EnableCancelTimeout: "true" - user: "admin" - passwordRef: "pets-db-password" - minimumPoolSize: 3 - maximumPoolSize: 15 diff --git a/common-services/src/main/gateway/config/policy-backed-services.yml b/common-services/src/main/gateway/config/policy-backed-services.yml new file mode 100644 index 0000000..1e12e48 --- /dev/null +++ b/common-services/src/main/gateway/config/policy-backed-services.yml @@ -0,0 +1,5 @@ +background-task-service: + interfaceName: "com.l7tech.objectmodel.polback.BackgroundTask" + operations: + - policy: "common/ScheduledTaskPolicy" + operationName: "run" diff --git a/common-services/src/main/gateway/config/scheduled-tasks.yml b/common-services/src/main/gateway/config/scheduled-tasks.yml new file mode 100644 index 0000000..556664c --- /dev/null +++ b/common-services/src/main/gateway/config/scheduled-tasks.yml @@ -0,0 +1,8 @@ +Test: + policy: "common/ScheduledTaskPolicy" + isOneNode: false + jobType: "Recurring" + jobStatus: "Scheduled" + cronExpression: "0 0/60 * ? * 2,3,4,5,6" + shouldExecuteOnCreate: false + properties: {} diff --git a/common-services/src/main/gateway/config/stored-passwords.properties b/common-services/src/main/gateway/config/stored-passwords.properties deleted file mode 100644 index c710425..0000000 --- a/common-services/src/main/gateway/config/stored-passwords.properties +++ /dev/null @@ -1 +0,0 @@ -pets-db-password= diff --git a/common-services/src/main/gateway/policy/common/ScheduledTaskPolicy.xml b/common-services/src/main/gateway/policy/common/ScheduledTaskPolicy.xml new file mode 100644 index 0000000..a4fc229 --- /dev/null +++ b/common-services/src/main/gateway/policy/common/ScheduledTaskPolicy.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/common-services/src/main/gateway/policy/common/encass-policy.xml b/common-services/src/main/gateway/policy/common/encass-policy.xml new file mode 100644 index 0000000..c02588e --- /dev/null +++ b/common-services/src/main/gateway/policy/common/encass-policy.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/common-services/src/main/gateway/policy/common/entities/createPet.xml b/common-services/src/main/gateway/policy/common/entities/createPet.xml index f9c9fcc..67dba04 100644 --- a/common-services/src/main/gateway/policy/common/entities/createPet.xml +++ b/common-services/src/main/gateway/policy/common/entities/createPet.xml @@ -2,9 +2,9 @@ diff --git a/common-services/src/main/gateway/policy/common/example-policy-include.xml b/common-services/src/main/gateway/policy/common/example-policy-include.xml new file mode 100644 index 0000000..0d1b7af --- /dev/null +++ b/common-services/src/main/gateway/policy/common/example-policy-include.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/common-services/src/main/gateway/policy/common/policy-referencing-dependent-bundle.xml b/common-services/src/main/gateway/policy/common/policy-referencing-dependent-bundle.xml new file mode 100644 index 0000000..46d5989 --- /dev/null +++ b/common-services/src/main/gateway/policy/common/policy-referencing-dependent-bundle.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/consumer-solutions/build.gradle b/consumer-solutions/build.gradle index 0f4db84..d7bfe5e 100644 --- a/consumer-solutions/build.gradle +++ b/consumer-solutions/build.gradle @@ -11,7 +11,4 @@ GatewayExportConfig { dependencies { bundle project(':common-services') bundle group: 'my-bundle', name: 'my-bundle', version: '1.0.00', ext: 'bundle' -} - -repositories { } \ No newline at end of file diff --git a/consumer-solutions/src/main/gateway/config/services.yml b/consumer-solutions/src/main/gateway/config/services.yml index f88efa9..a6deadf 100644 --- a/consumer-solutions/src/main/gateway/config/services.yml +++ b/consumer-solutions/src/main/gateway/config/services.yml @@ -6,4 +6,4 @@ consumer-solutions/pets/listPets: - "POST" - "GET" - "PUT" - properties: {} + wssProcessingEnabled: false \ No newline at end of file diff --git a/deployment/build.gradle b/deployment/build.gradle index f40ae04..ff8945b 100644 --- a/deployment/build.gradle +++ b/deployment/build.gradle @@ -7,6 +7,10 @@ dependencies { bundle project(':business-integrations') bundle project(':consumer-solutions') + bundle project(':audit') + bundle project(':global') + bundle project(':routings') + bundle project(':service-metrics') } // Configurations below are designed to be used with non-ephemeral gateways diff --git a/docker-compose.yml b/docker-compose.yml index a373a76..3c58119 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,33 +5,159 @@ version: '3.4' services: gateway-dev: - hostname: localhost - image: caapim/gateway:9.4.00 + hostname: gateway-developer-example + image: caapim/gateway:latest ports: - "8080:8080" - "8443:8443" - "8000:8000" volumes: - /opt/SecureSpan/Gateway/node/default/etc/bootstrap/services/restman - - ./deployment/build/gateway/deployment-0.6.0.gw7:/opt/docker/rc.d/deployment.gw7 + - ./deployment/build/gateway/deployment-0.8.0.gw7:/opt/docker/rc.d/deployment.gw7 secrets: - source: license target: /opt/SecureSpan/Gateway/node/default/etc/bootstrap/license/license.xml + - source: privateKeys + target: /opt/SecureSpan/Gateway/node/default/etc/bootstrap/env/config/privateKeys environment: ACCEPT_LICENSE: "true" SSG_ADMIN_USERNAME: "admin" SSG_ADMIN_PASSWORD: "password" - EXTRA_JAVA_ARGS: "-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" + + # Environment + + # A Private Key + ENV.PRIVATE_KEY.test: |- + algorithm: EC + keyPassword: '' + + # Cluster Properties (Global Environment Properties) + ENV.PROPERTY.gateway.log_levels: |- + com.l7tech.server.policy.level = FINEST + com.hazelcast.level = OFF + ENV.PROPERTY.gateway.ENV.globalProperty: "cluster property from env var" + + # Context Variable Properties (Context Environment Properties) + ENV.CONTEXT_VARIABLE_PROPERTY.environment-properties-example.contextVariableProperty: "context value from env var" + + # Service Properties (Service Environment Properties) + ENV.SERVICE_PROPERTY.environment-properties-example.serviceProperty: "service property from env var" + + # 2 stored passwords ENV.PASSWORD.pets-db-password: "temp" + ENV.PASSWORD.gateway: "7layer" + + # A JDBC Connection named 'pets-db' that uses the 'pets-db-password' created above ENV.JDBC_CONNECTION.pets-db: |- - driverClass: "com.l7tech.jdbc.mysql.MySQLDriver" - jdbcUrl: "TBD" - properties: - EnableCancelTimeout: "true" - user: "admin" - passwordRef: "pets-db-password" - minimumPoolSize: 3 - maximumPoolSize: 15 + driverClass: "com.l7tech.jdbc.mysql.MySQLDriver" + jdbcUrl: "TBD" + properties: + EnableCancelTimeout: "true" + user: "admin" + passwordRef: "pets-db-password" + minimumPoolSize: 3 + maximumPoolSize: 15 + + # A Cassandra Connection + ENV.CASSANDRA_CONNECTION.Test: |- + keyspace: Test + contactPoint: Test + port: 9045 + username: '' + compression: NONE + ssl: false + + # A certificate imported from a https URL + ENV.CERTIFICATE.https://www.amazon.com: |- + verifyHostname: false + trustedForSsl: false + trustedAsSamlAttestingEntity: false + trustAnchor: false + revocationCheckingEnabled: false + trustedForSigningClientCerts: false + trustedForSigningServerCerts: false + trustedAsSamlIssuer: false + + # A PEM certificate with the data and its properties + ENV.CERTIFICATE_FILE.www.google.com.pem: |- + -----BEGIN CERTIFICATE----- + MIIDxzCCAq+gAwIBAgIII8pR0+i7kWEwDQYJKoZIhvcNAQELBQAwVDELMAkGA1UE + BhMCVVMxHjAcBgNVBAoTFUdvb2dsZSBUcnVzdCBTZXJ2aWNlczElMCMGA1UEAxMc + R29vZ2xlIEludGVybmV0IEF1dGhvcml0eSBHMzAeFw0xODA4MjgxODIzMDBaFw0x + ODExMjAxODIzMDBaMGgxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlh + MRYwFAYDVQQHDA1Nb3VudGFpbiBWaWV3MRMwEQYDVQQKDApHb29nbGUgTExDMRcw + FQYDVQQDDA53d3cuZ29vZ2xlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IA + BG69h/q0VI62C64qtA5497K+HJF6CcMSMDglj0ko5SpdM38ozhtLT4DdnNgbS5V9 + xfZ1A6EOf0N96VFSJG950aSjggFSMIIBTjATBgNVHSUEDDAKBggrBgEFBQcDATAO + BgNVHQ8BAf8EBAMCB4AwGQYDVR0RBBIwEIIOd3d3Lmdvb2dsZS5jb20waAYIKwYB + BQUHAQEEXDBaMC0GCCsGAQUFBzAChiFodHRwOi8vcGtpLmdvb2cvZ3NyMi9HVFNH + SUFHMy5jcnQwKQYIKwYBBQUHMAGGHWh0dHA6Ly9vY3NwLnBraS5nb29nL0dUU0dJ + QUczMB0GA1UdDgQWBBSh8zGNXn++GBb0M220OTqTpwIw0TAMBgNVHRMBAf8EAjAA + MB8GA1UdIwQYMBaAFHfCuFCaZ3Z2sS3ChtCDoH6mfrpLMCEGA1UdIAQaMBgwDAYK + KwYBBAHWeQIFAzAIBgZngQwBAgIwMQYDVR0fBCowKDAmoCSgIoYgaHR0cDovL2Ny + bC5wa2kuZ29vZy9HVFNHSUFHMy5jcmwwDQYJKoZIhvcNAQELBQADggEBAIqwHvex + +0f6LtZPaQhD+y/swPde4Lf05qsUH2gckipagPu5MivTFYM7vbtTYWBzjcdIH4vX + UU/bw8IKdq0tAp6rWNlk008H1LBamTsOz/fzWTkel3VkKSmRk5OESbPcGAGszzjt + yxhB2vS92C0hKlh7+RrjZtJ1QSmtLhGqhwO75GfQCzp/Yd0UEdWCqg53YcWqtx3+ + cZ612nBT8IkWeELQi9yEfO6RyR5Lki8ccsVQTsP19y9F35XFFNJbZsQs+OhmN5Kz + n9oJbLJa81eS7Pr0HVdgSMLTSUARwBSG6uHL/RedS3m5dnIQUN4PpAaV6cejT+25 + 7wBm1tvqBWx7JjE= + -----END CERTIFICATE----- + ENV.CERTIFICATE.www.google.com: |- + verifyHostname: false + trustedForSsl: false + trustedAsSamlAttestingEntity: false + trustAnchor: false + revocationCheckingEnabled: false + trustedForSigningClientCerts: false + trustedForSigningServerCerts: false + trustedAsSamlIssuer: false + + # A LDAP configuration + ENV.IDENTITY_PROVIDER.LdapServer: |- + type: BIND_ONLY_LDAP + properties: {} + identityProviderDetail: + serverUrls: + - ldaps://ldapserver:636 + useSslClientAuthentication: true + bindPatternPrefix: '' + bindPatternSuffix: '' + + # A Listen Port Configuration redirecting to a specific service + ENV.LISTEN_PORT.DBServicePort: |- + protocol: HTTPS + port: 32323 + enabledFeatures: + - Published service message input + targetServiceReference: routings/db-service + tlsSettings: + clientAuthentication: NONE + enabledVersions: + - TLSv1 + - TLSv1.2 + - TLSv1.1 + enabledCipherSuites: + - TLS_RSA_WITH_AES_256_CBC_SHA256 + - TLS_RSA_WITH_AES_256_GCM_SHA384 + - TLS_RSA_WITH_AES_256_CBC_SHA + properties: + usesTLS: true + + # A Listen port generating a FTP Service + ENV.LISTEN_PORT.FTP: |- + protocol: "FTP" + port: 55555 + enabledFeatures: + - "Published service message input" + properties: + portRangeCount: "100" + portRangeStart: "55556" + useExtendedFtpCommandSet: "false" + secrets: license: - file: ./docker/license.xml \ No newline at end of file + file: ./docker/license.xml + # This is required to build the merged p12 file for the privatekeys + privateKeys: + file: ./lib/privateKeys \ No newline at end of file diff --git a/global/build.gradle b/global/build.gradle new file mode 100644 index 0000000..f3d93eb --- /dev/null +++ b/global/build.gradle @@ -0,0 +1,9 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +GatewayExportConfig { + folderPath = '/global-policies' +} \ No newline at end of file diff --git a/global/settings.gradle b/global/settings.gradle new file mode 100644 index 0000000..0278c52 --- /dev/null +++ b/global/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'global' \ No newline at end of file diff --git a/global/src/main/gateway/config/global-policies.yml b/global/src/main/gateway/config/global-policies.yml new file mode 100644 index 0000000..8d4d176 --- /dev/null +++ b/global/src/main/gateway/config/global-policies.yml @@ -0,0 +1,6 @@ +global-completed-policy: + path: "global-policies/global-completed-policy" + tag: "message-completed" +global-received-policy: + path: "global-policies/global-received-policy" + tag: "message-received" diff --git a/global/src/main/gateway/policy/global-policies/global-completed-policy.xml b/global/src/main/gateway/policy/global-policies/global-completed-policy.xml new file mode 100644 index 0000000..af85bf0 --- /dev/null +++ b/global/src/main/gateway/policy/global-policies/global-completed-policy.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/global/src/main/gateway/policy/global-policies/global-received-policy.xml b/global/src/main/gateway/policy/global-policies/global-received-policy.xml new file mode 100644 index 0000000..bdd742a --- /dev/null +++ b/global/src/main/gateway/policy/global-policies/global-received-policy.xml @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/lib/DelayAssertion-sdk80-1.1-729.jar b/lib/DelayAssertion-sdk80-1.1-729.jar new file mode 100755 index 0000000000000000000000000000000000000000..47b6e658e0e90a0c02eb7c996d5f8828dc783fa9 GIT binary patch literal 12769 zcmb_?1z223vo;!nI}94!-62SDch}$qf)8%N-Q9z`2AAL#+!EZ~EkT0h!e+C4$;$oy z`)~8ioWnC!^>&}Gs#D$l%1MGlz<@k71q*qR-)?^Yg1)~>3oG%{ipz-5%l$6)6h!`B ztZ8Y+(dzzZ-}?{Re~L--%ZQ5zD=N`Ri=0Uh4oFGT(v87O(ozi%j#McyOfoNT*isD* zQjXadRV#=Miw#P!FnK-A-FC?}^odQ}!|F=GIkn})%q5G@$@5g^!XP0t$)UO=i_hJp z1ngn$B;EgrL268~uI|D0=KZfvU z3E1By%-QXX3|{?%Aj;2z2KGR^e>4pEOL;>hb3NyOKq2@CEdwh{pq07NKWJ0^7uvQ) zKr4G&10&!ccD~Q+RPOdACO8PlyC)zZwEu-2p@)$ui_;mH>j8mrN}7rjFVOC4X>@2~e?C76wyq(2~>_lF+8hrdkCkGL&UOqQaC(=HpOV z>N5ptQdzEr2dk_{Cn{L0wpV+*!W=TQ$f}2lZriImLSCzY}lg%7nCuvruvgng-LcnbNq!)$$tlHk13kMjvA; zMX+v}E@WA+T;IMUO;fFr0D^6lcG*jeIV)DZu3Y$D(JyPLT z9MmL~e$PrguHH$RYFuxt^jvVih3ji>j3p3jq*gd;j#;Nt0Y!$PPA}LNVs`<213bdk zRjzX1`KL`{mRgG#||et3K-);D9ap zjnUy#&2b+6ZO&?0YZp)h3VOB%^hmr`Q#byJ6@@~_3i?A(am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Q#vgCF?>+iE zqd&XGeJS<>iYV&CO&dbQoxS&C$fu)K0nLz`laN}2l#!m)~@7cJa%6YgLnHDt8 zH)xz=puxrk69k$l#Uc{0cFUTeIL+s0KOdP>vrkt$XFT`CXvW1>)g@|Yx1NjUUJ&KIg{gX#<+O*AD+F()s9d@)CKkuYXXB6|n3baB z`*P+JqeSbUbJR{~2i^bKyIAzKU2k4-n?!zRpm{>sDK^vT$sJ6qvJ!6@y9y<4J@ZzB zoAscfoq;&qhnymYTyh)?B@C$y#SA3|$_NQjLopT+%|(K5wdI$KRNiI*4}Z`XHDje1;iS%3LcP!KEthA>lw zlJ6Z}M*S5Z&mLSRG~q|E*h;n!wPAl=-OP%fY}4^Z`xA@PEoVROfQuI-3MaiQxs_p3 zof8yU@<(2)CNId>bAL#==kBj1?U7Sf1$Z9LD2Zb5&Y0lPZBl-%b&=JUn2^^Io0-1t z%v`758mRN-xZvrG@b%6*v!*6Fiz(!Kc72e2KKr0Xi^M7vExRbM`WbyjlRa0M8 z^a))2Ht)JX#)H)?Z_*B>yU5)+nRH;oCuR1C=(!==HFvI&SIt&E_49M~B+stDPnsr$ zyO`a2bJiZ@*j8XevSis^P zPkP%Qdw1_V6Md@qy-r7{)Fy}Y+wDTyYkyt4$mudsCp*62tMm)zWpxXav;P+6PUl;i zm3#P^fWwW~JoA6 z;=B6lW9aLG=Goci%U4c&_}Dmo*V9}4R=xajYR#Sr1L^bN}``M6)nuH$4iV4BYP^==SGm{i61B-|v3qz#l;*=kLkrO6;J%6Nr)=mK(77?2_zGAQD&gVF+ox88)%sab# Mv$JP`k~0GX0Ce2daR2}S literal 0 HcmV?d00001 diff --git a/routings/build.gradle b/routings/build.gradle new file mode 100644 index 0000000..e8798c3 --- /dev/null +++ b/routings/build.gradle @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +GatewayExportConfig { + folderPath = '/routings' +} + +dependencies { + bundle project(':common-services') +} \ No newline at end of file diff --git a/routings/settings.gradle b/routings/settings.gradle new file mode 100644 index 0000000..466d900 --- /dev/null +++ b/routings/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'routings' \ No newline at end of file diff --git a/routings/src/main/gateway/config/services.yml b/routings/src/main/gateway/config/services.yml new file mode 100644 index 0000000..ec34016 --- /dev/null +++ b/routings/src/main/gateway/config/services.yml @@ -0,0 +1,95 @@ +routings/routing-assertion-example: + url: "/routingExample" + policy: "routings/routing-assertion-example" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} + wssProcessingEnabled: false +routings/my-gateway-api: + url: "/example" + policy: "routings/my-gateway-api" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} + wssProcessingEnabled: false +routings/soap/PlayerStatsService: + policy: "routings/soap/PlayerStatsService" + httpMethods: + - "POST" + properties: {} + soapResources: + - rootUrl: "http://apim-hugh.lvn.broadcom.net:8081/axis/services/PlayerStats?wsdl" + type: "wsdl" + soapVersion: "1.1" + wssProcessingEnabled: true + wsdlRootUrl: "http://apim-hugh.lvn.broadcom.net:8081/axis/services/PlayerStats?wsdl" +routings/soap/Calculator: + url: "/calculatorSoap" + policy: "routings/soap/Calculator" + httpMethods: + - "POST" + - "GET" + properties: {} + soapResources: + - rootUrl: "http://www.dneonline.com/calculator.asmx?wsdl" + type: "wsdl" + soapVersion: "unspecified" + wssProcessingEnabled: true + wsdlRootUrl: "http://www.dneonline.com/calculator.asmx?wsdl" +routings/ftp-service: + url: "/ftp-service" + policy: "routings/ftp-service" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} + wssProcessingEnabled: false +routings/another-service: + url: "/another-service-example" + policy: "routings/another-service" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} + wssProcessingEnabled: false +routings/environment-properties-example: + url: "/propertiesService" + policy: "routings/environment-properties-example" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: + ENV.serviceProperty: + wssProcessingEnabled: false +routings/db-service: + url: "/db-service" + policy: "routings/db-service" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} + wssProcessingEnabled: false +routings/cassandra-service: + url: "/cassandra-service" + policy: "routings/cassandra-service" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} + wssProcessingEnabled: false diff --git a/routings/src/main/gateway/policy/routings/another-service.xml b/routings/src/main/gateway/policy/routings/another-service.xml new file mode 100644 index 0000000..d178b18 --- /dev/null +++ b/routings/src/main/gateway/policy/routings/another-service.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/routings/src/main/gateway/policy/routings/cassandra-service.xml b/routings/src/main/gateway/policy/routings/cassandra-service.xml new file mode 100644 index 0000000..1be4971 --- /dev/null +++ b/routings/src/main/gateway/policy/routings/cassandra-service.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/routings/src/main/gateway/policy/routings/db-service.xml b/routings/src/main/gateway/policy/routings/db-service.xml new file mode 100644 index 0000000..41f3944 --- /dev/null +++ b/routings/src/main/gateway/policy/routings/db-service.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/routings/src/main/gateway/policy/routings/environment-properties-example.xml b/routings/src/main/gateway/policy/routings/environment-properties-example.xml new file mode 100644 index 0000000..84364f3 --- /dev/null +++ b/routings/src/main/gateway/policy/routings/environment-properties-example.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + +${service.ENV.serviceProperty} +
+${test}]]>
+ +
+
+
diff --git a/routings/src/main/gateway/policy/routings/ftp-service.xml b/routings/src/main/gateway/policy/routings/ftp-service.xml new file mode 100644 index 0000000..06cef16 --- /dev/null +++ b/routings/src/main/gateway/policy/routings/ftp-service.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/routings/src/main/gateway/policy/routings/my-gateway-api.xml b/routings/src/main/gateway/policy/routings/my-gateway-api.xml new file mode 100644 index 0000000..6d950e4 --- /dev/null +++ b/routings/src/main/gateway/policy/routings/my-gateway-api.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + diff --git a/routings/src/main/gateway/policy/routings/routing-assertion-example.xml b/routings/src/main/gateway/policy/routings/routing-assertion-example.xml new file mode 100644 index 0000000..75b49c6 --- /dev/null +++ b/routings/src/main/gateway/policy/routings/routing-assertion-example.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/routings/src/main/gateway/policy/routings/soap/Calculator.xml b/routings/src/main/gateway/policy/routings/soap/Calculator.xml new file mode 100644 index 0000000..6bc4d6c --- /dev/null +++ b/routings/src/main/gateway/policy/routings/soap/Calculator.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/routings/src/main/gateway/policy/routings/soap/PlayerStatsService.xml b/routings/src/main/gateway/policy/routings/soap/PlayerStatsService.xml new file mode 100644 index 0000000..05bc98f --- /dev/null +++ b/routings/src/main/gateway/policy/routings/soap/PlayerStatsService.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/routings/src/main/gateway/policy/routings/sub-folder/policyInFolder.xml b/routings/src/main/gateway/policy/routings/sub-folder/policyInFolder.xml new file mode 100644 index 0000000..2abf033 --- /dev/null +++ b/routings/src/main/gateway/policy/routings/sub-folder/policyInFolder.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/routings/src/main/gateway/soapResources/routings/soap/Calculator/calculator.asmx?wsdl.wsdl b/routings/src/main/gateway/soapResources/routings/soap/Calculator/calculator.asmx?wsdl.wsdl new file mode 100644 index 0000000..5425063 --- /dev/null +++ b/routings/src/main/gateway/soapResources/routings/soap/Calculator/calculator.asmx?wsdl.wsdl @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Adds two integers. This is a test WebService. ©DNE Online + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/routings/src/main/gateway/soapResources/routings/soap/PlayerStatsService/PlayerStats?wsdl.wsdl b/routings/src/main/gateway/soapResources/routings/soap/PlayerStatsService/PlayerStats?wsdl.wsdl new file mode 100644 index 0000000..78c91c6 --- /dev/null +++ b/routings/src/main/gateway/soapResources/routings/soap/PlayerStatsService/PlayerStats?wsdl.wsdl @@ -0,0 +1,437 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/service-metrics/build.gradle b/service-metrics/build.gradle new file mode 100644 index 0000000..1a3a4cf --- /dev/null +++ b/service-metrics/build.gradle @@ -0,0 +1,9 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +GatewayExportConfig { + folderPath = '/service-metrics' +} \ No newline at end of file diff --git a/service-metrics/settings.gradle b/service-metrics/settings.gradle new file mode 100644 index 0000000..4d5ae66 --- /dev/null +++ b/service-metrics/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'service-metrics' \ No newline at end of file diff --git a/service-metrics/src/main/gateway/config/policy-backed-services.yml b/service-metrics/src/main/gateway/config/policy-backed-services.yml new file mode 100644 index 0000000..5fd0fd1 --- /dev/null +++ b/service-metrics/src/main/gateway/config/policy-backed-services.yml @@ -0,0 +1,5 @@ +Metrics: + interfaceName: "com.l7tech.external.assertions.pbsmel.server.ServiceMetricsProcessor" + operations: + - policy: "service-metrics/Metrics" + operationName: "process" diff --git a/service-metrics/src/main/gateway/policy/service-metrics/Metrics.xml b/service-metrics/src/main/gateway/policy/service-metrics/Metrics.xml new file mode 100644 index 0000000..450dbd9 --- /dev/null +++ b/service-metrics/src/main/gateway/policy/service-metrics/Metrics.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/settings.gradle b/settings.gradle index 2e019c9..f72c2fe 100644 --- a/settings.gradle +++ b/settings.gradle @@ -6,4 +6,11 @@ rootProject.name = 'gateway-developer-example' -include 'common-services', 'business-integrations', 'consumer-solutions', 'deployment' \ No newline at end of file +include 'common-services', + 'business-integrations', + 'consumer-solutions', + 'audit', + 'global', + 'routings', + 'service-metrics', + 'deployment' \ No newline at end of file From e5dc1f012d545ccc3b5d9784fa3cc9e001f94fe8 Mon Sep 17 00:00:00 2001 From: "Borges Caldeira, Joao Gabriel" Date: Mon, 10 Jun 2019 15:35:04 -0700 Subject: [PATCH 13/33] fix readme --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index f14a0cb..968c5ab 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,3 @@ -[![Waffle.io - Columns and their card count](https://badge.waffle.io/ca-api-Gateway/Gateway-developer-plugin.svg?columns=all)](https://waffle.io/ca-api-Gateway/Gateway-developer-plugin) -[![Build Status](https://travis-ci.com/ca-api-gateway-examples/gateway-developer-example.svg?branch=master)](https://travis-ci.com/ca-api-gateway-examples/gateway-developer-example) - # About This is an example repository that demonstrates how to use the [CA API Gateway Developer Plugin][gateway-developer-plugin]. From d281e00930d1060294f8a48b4766502d7d423ea2 Mon Sep 17 00:00:00 2001 From: Raghupal Reddy Kota Date: Fri, 12 Jun 2020 11:48:20 +0530 Subject: [PATCH 14/33] adding zip bundles task --- build.gradle | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index cad2bb9..ee94e5e 100644 --- a/build.gradle +++ b/build.gradle @@ -13,9 +13,9 @@ buildscript { } dependencies { // "+" will always pull the latest available - classpath "com.ca.apim.gateway:gateway-developer-plugin:0.8.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:0.8.+" - classpath "com.ca.apim.gateway:gateway-import-plugin:0.8.+" + classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-import-plugin:0.10.+" } } @@ -42,4 +42,25 @@ subprojects { wrapper { gradleVersion = '4.10' +} + +// Zip task +FileTree tree = fileTree(dir: 'build/gateway/bundle', include: '*.metadata.yml') +tree.each { File file -> + String bundleName = file.name.substring(0, file.name.indexOf('.metadata.yml')) + task "zip-${bundleName}"(type: Zip) { + archiveName = bundleName + '.zip' + from('build/gateway/bundle') { + include bundleName + '-*.bundle' + include file.name + } + } +} + +// Zip bundles task +task zipBundles { + tree.each { File file -> + String bundleName = file.name.substring(0, file.name.indexOf('.metadata.yml')) + dependsOn 'zip-' + bundleName; + } } \ No newline at end of file From 50e1e11b59367f040021b7c3659d6e2e8ff9b6ca Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jun 2020 12:23:01 +0000 Subject: [PATCH 15/33] Updated deployment build.gralde as per the latest dev plugin artifacts --- build.gradle | 2 +- deployment/build.gradle | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index ee94e5e..979dc17 100644 --- a/build.gradle +++ b/build.gradle @@ -29,7 +29,7 @@ subprojects { } group 'com.ca.apim.gateway' - version = '0.8.0' + version = '0.10.1' repositories { mavenLocal() diff --git a/deployment/build.gradle b/deployment/build.gradle index ff8945b..4162a5a 100644 --- a/deployment/build.gradle +++ b/deployment/build.gradle @@ -74,8 +74,6 @@ GatewaySourceConfig { def environmentType = project.parent.properties['environmentType'] ?: 'test' // select the environment config for the specified environment environmentConfig = project.ext."${environmentType}EnvironmentInfo" - // also setting a specific directory for environment bundle work - builtEnvironmentBundleDir = new File(project.buildDir, "deployment") } // The section below configures the tasks related to building and deploying the bundles. @@ -83,7 +81,7 @@ GatewaySourceConfig { // The first one is the task that will grab all behavior configuration bundles (called 'deployment' bundles) // and generate an environment configuration bundle using information from the specified environment profile. -// Then, all bundles get merged and exported to a file (which is represented by the 'outputBundle' property) +// Then, all bundles get merged and exported to a file // The second one is the task that will grab any bundle and upload to the Gateway, using restman endpoint configurations // specified above. @@ -91,10 +89,13 @@ GatewaySourceConfig { // of the build-full-bundle task. This will install the solution merged bundle, containing the environment properties, // and the behaviour configurations. // This is achieved by adding the 'dependsOn' declaration below, and setting the 'importFile' of the task to look into -// the 'outputBundle' of the other task. +// the generated full bundle of the other task. tasks.getByName("import-bundle").dependsOn("build-full-bundle") project.afterEvaluate { - tasks.getByName("import-bundle").importFile = tasks.getByName("build-full-bundle").outputBundle + def gatewayDir = new File(project.buildDir, "gateway") + def bundleDir = new File(gatewayDir, "bundle") + def bundleFile = project.name + "-" + project.version + "-full.install.bundle" + tasks.getByName("import-bundle").importFile = new File(bundleDir, bundleFile) } // To try this whole solution, follow the steps below: From 6e78ff81ddb22d16c17d38c492924ef7821e55e5 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 25 Jun 2020 10:59:30 +0000 Subject: [PATCH 16/33] Added example encass annotation project --- encass-annotations/build.gradle | 23 +++++++++++++ encass-annotations/settings.gradle | 7 ++++ .../src/main/gateway/config/encass.yml | 32 +++++++++++++++++++ .../main/gateway/config/jdbc-connections.yml | 18 +++++++++++ .../src/main/gateway/config/policies.yml | 14 ++++++++ .../config/stored-passwords.properties | 1 + .../policy/encass/encass_env_policy.xml | 15 +++++++++ .../gateway/policy/encass/encass_policy.xml | 10 ++++++ 8 files changed, 120 insertions(+) create mode 100644 encass-annotations/build.gradle create mode 100644 encass-annotations/settings.gradle create mode 100644 encass-annotations/src/main/gateway/config/encass.yml create mode 100644 encass-annotations/src/main/gateway/config/jdbc-connections.yml create mode 100644 encass-annotations/src/main/gateway/config/policies.yml create mode 100644 encass-annotations/src/main/gateway/config/stored-passwords.properties create mode 100644 encass-annotations/src/main/gateway/policy/encass/encass_env_policy.xml create mode 100644 encass-annotations/src/main/gateway/policy/encass/encass_policy.xml diff --git a/encass-annotations/build.gradle b/encass-annotations/build.gradle new file mode 100644 index 0000000..aff3b27 --- /dev/null +++ b/encass-annotations/build.gradle @@ -0,0 +1,23 @@ +buildscript { + repositories { + gradlePluginPortal() + mavenCentral() + jcenter() + } + dependencies { + classpath "com.ca.apim.gateway:config-builder:0.10.+" + classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" + classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + } +} + +apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +group = "encassExample" +version = '1.0.0' +repositories { + gradlePluginPortal() + mavenCentral() + jcenter() +} diff --git a/encass-annotations/settings.gradle b/encass-annotations/settings.gradle new file mode 100644 index 0000000..549abd6 --- /dev/null +++ b/encass-annotations/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'encass-annotations' \ No newline at end of file diff --git a/encass-annotations/src/main/gateway/config/encass.yml b/encass-annotations/src/main/gateway/config/encass.yml new file mode 100644 index 0000000..664c6bb --- /dev/null +++ b/encass-annotations/src/main/gateway/config/encass.yml @@ -0,0 +1,32 @@ +encass_with_annotation: + annotations: + - type: "@bundle" + name: "encass-annotations" + policy: "encass/encass_env_policy" + arguments: + - type: "string" + name: "encass_in_param1" + requireExplicit: true + label: "label_encass_in_param1" + results: + - name: "encass_out_param1" + type: "string" + properties: + paletteFolder: "internalAssertions" + allowTracing: "false" + description: "My Encass for testing" + passMetricsToParent: "false" +encass_test: + policy: "encass/encass_policy" + arguments: + - name: "encass_in_param1" + type: "string" + requireExplicit: true + results: + - name: "encass_out_param1" + type: "string" + properties: + paletteFolder: "internalAssertions" + allowTracing: "false" + description: "My Encass for testing" + passMetricsToParent: "false" \ No newline at end of file diff --git a/encass-annotations/src/main/gateway/config/jdbc-connections.yml b/encass-annotations/src/main/gateway/config/jdbc-connections.yml new file mode 100644 index 0000000..edf1fef --- /dev/null +++ b/encass-annotations/src/main/gateway/config/jdbc-connections.yml @@ -0,0 +1,18 @@ +jdbc_con1: + driverClass: "com.l7tech.jdbc.mysql.MySQLDriver" + jdbcUrl: "jdbc:l7tech:mysql://localhost:3306" + properties: + EnableCancelTimeout: "true" + user: "gateway" + passwordRef: "jdbc_con_pass" + minimumPoolSize: 3 + maximumPoolSize: 15 +jdbc_con2: + driverClass: "com.l7tech.jdbc.mysql.MySQLDriver" + jdbcUrl: "jdbc:l7tech:mysql://localhost:3305" + properties: + EnableCancelTimeout: "true" + user: "gateway" + passwordRef: "jdbc_con_pass" + minimumPoolSize: 3 + maximumPoolSize: 15 diff --git a/encass-annotations/src/main/gateway/config/policies.yml b/encass-annotations/src/main/gateway/config/policies.yml new file mode 100644 index 0000000..ed89838 --- /dev/null +++ b/encass-annotations/src/main/gateway/config/policies.yml @@ -0,0 +1,14 @@ +encass/encass_env_policy: + type: "Include" + tag: + subtag: + usedEntities: + - type: "JDBC_CONNECTION" + name: "jdbc_con1" + - type: "SECURE_PASSWORD" + name: "jdbc_con_pass" +encass/encass_policy: + annotations: + - type: "@reusable" + type: "Include" + tag: \ No newline at end of file diff --git a/encass-annotations/src/main/gateway/config/stored-passwords.properties b/encass-annotations/src/main/gateway/config/stored-passwords.properties new file mode 100644 index 0000000..08ac572 --- /dev/null +++ b/encass-annotations/src/main/gateway/config/stored-passwords.properties @@ -0,0 +1 @@ +jdbc_con_pass=7layer diff --git a/encass-annotations/src/main/gateway/policy/encass/encass_env_policy.xml b/encass-annotations/src/main/gateway/policy/encass/encass_env_policy.xml new file mode 100644 index 0000000..81bbcb7 --- /dev/null +++ b/encass-annotations/src/main/gateway/policy/encass/encass_env_policy.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/encass-annotations/src/main/gateway/policy/encass/encass_policy.xml b/encass-annotations/src/main/gateway/policy/encass/encass_policy.xml new file mode 100644 index 0000000..a075e68 --- /dev/null +++ b/encass-annotations/src/main/gateway/policy/encass/encass_policy.xml @@ -0,0 +1,10 @@ + + + + + + + + + + From 9fa49329ed2829303479e98197ed0b2129b0b472 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 26 Jun 2020 11:02:59 +0000 Subject: [PATCH 17/33] Addressed review comments --- .../src/main/gateway/config/encass.yml | 14 ++++++++------ .../src/main/gateway/config/jdbc-connections.yml | 8 ++++---- .../src/main/gateway/config/policies.yml | 10 ++++------ .../gateway/config/stored-passwords.properties | 2 +- ...cass_env_policy.xml => find-internal-users.xml} | 7 ++----- .../encass/{encass_policy.xml => hello-world.xml} | 7 +++++-- settings.gradle | 1 + 7 files changed, 25 insertions(+), 24 deletions(-) rename encass-annotations/src/main/gateway/policy/encass/{encass_env_policy.xml => find-internal-users.xml} (62%) rename encass-annotations/src/main/gateway/policy/encass/{encass_policy.xml => hello-world.xml} (54%) diff --git a/encass-annotations/src/main/gateway/config/encass.yml b/encass-annotations/src/main/gateway/config/encass.yml index 664c6bb..4d0995e 100644 --- a/encass-annotations/src/main/gateway/config/encass.yml +++ b/encass-annotations/src/main/gateway/config/encass.yml @@ -1,8 +1,8 @@ -encass_with_annotation: +find-internal-users: annotations: - type: "@bundle" name: "encass-annotations" - policy: "encass/encass_env_policy" + policy: "encass/find-internal-users" arguments: - type: "string" name: "encass_in_param1" @@ -14,10 +14,12 @@ encass_with_annotation: properties: paletteFolder: "internalAssertions" allowTracing: "false" - description: "My Encass for testing" + description: "find internal users" passMetricsToParent: "false" -encass_test: - policy: "encass/encass_policy" +hello-world: + annotations: + - "@bundle" + policy: "encass/hello-world" arguments: - name: "encass_in_param1" type: "string" @@ -28,5 +30,5 @@ encass_test: properties: paletteFolder: "internalAssertions" allowTracing: "false" - description: "My Encass for testing" + description: "hello world encass" passMetricsToParent: "false" \ No newline at end of file diff --git a/encass-annotations/src/main/gateway/config/jdbc-connections.yml b/encass-annotations/src/main/gateway/config/jdbc-connections.yml index edf1fef..d62ada7 100644 --- a/encass-annotations/src/main/gateway/config/jdbc-connections.yml +++ b/encass-annotations/src/main/gateway/config/jdbc-connections.yml @@ -1,18 +1,18 @@ -jdbc_con1: +internal-users-connection: driverClass: "com.l7tech.jdbc.mysql.MySQLDriver" jdbcUrl: "jdbc:l7tech:mysql://localhost:3306" properties: EnableCancelTimeout: "true" user: "gateway" - passwordRef: "jdbc_con_pass" + passwordRef: "internal-users-password" minimumPoolSize: 3 maximumPoolSize: 15 -jdbc_con2: +internal-users-connection2: driverClass: "com.l7tech.jdbc.mysql.MySQLDriver" jdbcUrl: "jdbc:l7tech:mysql://localhost:3305" properties: EnableCancelTimeout: "true" user: "gateway" - passwordRef: "jdbc_con_pass" + passwordRef: "internal-users-password" minimumPoolSize: 3 maximumPoolSize: 15 diff --git a/encass-annotations/src/main/gateway/config/policies.yml b/encass-annotations/src/main/gateway/config/policies.yml index ed89838..2d64729 100644 --- a/encass-annotations/src/main/gateway/config/policies.yml +++ b/encass-annotations/src/main/gateway/config/policies.yml @@ -1,14 +1,12 @@ -encass/encass_env_policy: +encass/find-internal-users: type: "Include" tag: subtag: usedEntities: - type: "JDBC_CONNECTION" - name: "jdbc_con1" + name: "internal-users-connection" - type: "SECURE_PASSWORD" - name: "jdbc_con_pass" -encass/encass_policy: - annotations: - - type: "@reusable" + name: "internal-users-password" +encass/hello-world: type: "Include" tag: \ No newline at end of file diff --git a/encass-annotations/src/main/gateway/config/stored-passwords.properties b/encass-annotations/src/main/gateway/config/stored-passwords.properties index 08ac572..dc87627 100644 --- a/encass-annotations/src/main/gateway/config/stored-passwords.properties +++ b/encass-annotations/src/main/gateway/config/stored-passwords.properties @@ -1 +1 @@ -jdbc_con_pass=7layer +internal-users-password=7layer diff --git a/encass-annotations/src/main/gateway/policy/encass/encass_env_policy.xml b/encass-annotations/src/main/gateway/policy/encass/find-internal-users.xml similarity index 62% rename from encass-annotations/src/main/gateway/policy/encass/encass_env_policy.xml rename to encass-annotations/src/main/gateway/policy/encass/find-internal-users.xml index 81bbcb7..064ec7a 100644 --- a/encass-annotations/src/main/gateway/policy/encass/encass_env_policy.xml +++ b/encass-annotations/src/main/gateway/policy/encass/find-internal-users.xml @@ -1,13 +1,10 @@ - + - - - - + diff --git a/encass-annotations/src/main/gateway/policy/encass/encass_policy.xml b/encass-annotations/src/main/gateway/policy/encass/hello-world.xml similarity index 54% rename from encass-annotations/src/main/gateway/policy/encass/encass_policy.xml rename to encass-annotations/src/main/gateway/policy/encass/hello-world.xml index a075e68..75f16f0 100644 --- a/encass-annotations/src/main/gateway/policy/encass/encass_policy.xml +++ b/encass-annotations/src/main/gateway/policy/encass/hello-world.xml @@ -1,10 +1,13 @@ - + - + + + + diff --git a/settings.gradle b/settings.gradle index f72c2fe..4e3d01c 100644 --- a/settings.gradle +++ b/settings.gradle @@ -13,4 +13,5 @@ include 'common-services', 'global', 'routings', 'service-metrics', + 'encass-annotations', 'deployment' \ No newline at end of file From d3de64998919d60334b192b2de8df4f9fbf07697 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Jul 2020 05:15:42 +0000 Subject: [PATCH 18/33] Zip task is modified to generate artifact for environment bundle --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 979dc17..dd06a68 100644 --- a/build.gradle +++ b/build.gradle @@ -51,7 +51,7 @@ tree.each { File file -> task "zip-${bundleName}"(type: Zip) { archiveName = bundleName + '.zip' from('build/gateway/bundle') { - include bundleName + '-*.bundle' + include bundleName + '*.bundle' include file.name } } From cbec108635904f4d101c1481f2a35f6e40ea9f89 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Jul 2020 05:39:50 +0000 Subject: [PATCH 19/33] Updated import bundle configuration --- build.gradle | 2 +- deployment/build.gradle | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index dd06a68..ef8e287 100644 --- a/build.gradle +++ b/build.gradle @@ -29,7 +29,7 @@ subprojects { } group 'com.ca.apim.gateway' - version = '0.10.1' + version = '0.10.2' repositories { mavenLocal() diff --git a/deployment/build.gradle b/deployment/build.gradle index 4162a5a..6be28bc 100644 --- a/deployment/build.gradle +++ b/deployment/build.gradle @@ -88,14 +88,11 @@ GatewaySourceConfig { // To achieve the required result, we set the import-bundle task to install the bundle that is the output // of the build-full-bundle task. This will install the solution merged bundle, containing the environment properties, // and the behaviour configurations. -// This is achieved by adding the 'dependsOn' declaration below, and setting the 'importFile' of the task to look into -// the generated full bundle of the other task. +// This is achieved by adding the 'dependsOn' declaration below, and setting the bundles property in GatewayImportConfig tasks.getByName("import-bundle").dependsOn("build-full-bundle") -project.afterEvaluate { - def gatewayDir = new File(project.buildDir, "gateway") - def bundleDir = new File(gatewayDir, "bundle") - def bundleFile = project.name + "-" + project.version + "-full.install.bundle" - tasks.getByName("import-bundle").importFile = new File(bundleDir, bundleFile) + +GatewayImportConfig { + bundles = files("./build/gateway/bundle/" + project.name + "-" + project.version + "-full.install.bundle") } // To try this whole solution, follow the steps below: From b69354ae9770b28a0b8cea6c00848b0d5ac421bd Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Jul 2020 05:50:45 +0000 Subject: [PATCH 20/33] Updated bundle-hints annotation for name --- encass-annotations/src/main/gateway/config/encass.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/encass-annotations/src/main/gateway/config/encass.yml b/encass-annotations/src/main/gateway/config/encass.yml index 4d0995e..bc03fdf 100644 --- a/encass-annotations/src/main/gateway/config/encass.yml +++ b/encass-annotations/src/main/gateway/config/encass.yml @@ -1,6 +1,7 @@ find-internal-users: annotations: - - type: "@bundle" + - "@bundle" + - type: "@bundle-hints" name: "encass-annotations" policy: "encass/find-internal-users" arguments: From 8b2794a105581b503390d6c3d0f7ef28d2201e5e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 18 Aug 2020 10:03:45 +0000 Subject: [PATCH 21/33] Added examples for each environment type --- cassandra-example/build.gradle | 30 +++++++++++++++ cassandra-example/settings.gradle | 7 ++++ .../gateway/config/cassandra-connections.yml | 11 ++++++ .../src/main/gateway/config/policies.yml | 9 +++++ .../src/main/gateway/config/services.yml | 10 +++++ .../Cassandra Connection Example.xml | 20 ++++++++++ clusterproperty-example/build.gradle | 30 +++++++++++++++ clusterproperty-example/settings.gradle | 7 ++++ .../main/gateway/config/global-env.properties | 1 + .../src/main/gateway/config/policies.yml | 11 ++++++ .../src/main/gateway/config/services.yml | 10 +++++ .../properties/Cluster Properties Example.xml | 31 +++++++++++++++ http2client-example/build.gradle | 30 +++++++++++++++ http2client-example/settings.gradle | 7 ++++ .../main/gateway/config/generic-entities.yml | 21 ++++++++++ .../src/main/gateway/config/policies.yml | 11 ++++++ .../src/main/gateway/config/private-keys.yml | 3 ++ .../src/main/gateway/config/services.yml | 10 +++++ .../policy/http2/Http2 Client Example.xml | 8 ++++ idprovider-example/build.gradle | 30 +++++++++++++++ idprovider-example/settings.gradle | 7 ++++ .../gateway/config/identity-providers.yml | 8 ++++ .../src/main/gateway/config/policies.yml | 9 +++++ .../src/main/gateway/config/services.yml | 10 +++++ .../policy/idprovider/Id provider example.xml | 7 ++++ jdbcconnection-example/build.gradle | 30 +++++++++++++++ jdbcconnection-example/settings.gradle | 7 ++++ .../main/gateway/config/jdbc-connections.yml | 11 ++++++ .../src/main/gateway/config/policies.yml | 9 +++++ .../src/main/gateway/config/services.yml | 10 +++++ .../policy/jdbc/JDBC Connection Example.xml | 18 +++++++++ jms-example/build.gradle | 30 +++++++++++++++ jms-example/settings.gradle | 7 ++++ .../main/gateway/config/jms-destinations.yml | 15 ++++++++ .../src/main/gateway/config/policies.yml | 9 +++++ .../src/main/gateway/config/services.yml | 10 +++++ .../main/gateway/policy/jms/JMS example.xml | 13 +++++++ mqnative-example/build.gradle | 30 +++++++++++++++ mqnative-example/settings.gradle | 7 ++++ .../main/gateway/config/active-connectors.yml | 22 +++++++++++ .../src/main/gateway/config/policies.yml | 9 +++++ .../src/main/gateway/config/services.yml | 10 +++++ .../policy/mqnative/MQ Native Example.xml | 15 ++++++++ password-example/build.gradle | 30 +++++++++++++++ password-example/settings.gradle | 7 ++++ .../main/gateway/config/jdbc-connections.yml | 12 ++++++ .../src/main/gateway/config/policies.yml | 11 ++++++ .../src/main/gateway/config/services.yml | 10 +++++ .../config/stored-passwords.properties | 1 + .../Stored Password Example.xml | 18 +++++++++ privatekey-example/build.gradle | 30 +++++++++++++++ privatekey-example/settings.gradle | 7 ++++ .../src/main/gateway/config/policies.yml | 9 +++++ .../src/main/gateway/config/private-keys.yml | 4 ++ .../main/gateway/config/privateKeys/test.p12 | Bin 0 -> 4133 bytes .../src/main/gateway/config/services.yml | 10 +++++ .../policy/privatekey/Private Key Example.xml | 34 +++++++++++++++++ service-annotations/build.gradle | 29 ++++++++++++++ service-annotations/settings.gradle | 7 ++++ .../config/certificates/www.google.com.pem | 28 ++++++++++++++ .../src/main/gateway/config/policies.yml | 11 ++++++ .../src/main/gateway/config/services.yml | 12 ++++++ .../src/main/gateway/config/trusted-certs.yml | 12 ++++++ .../certificate/Certificate Example.xml | 36 ++++++++++++++++++ settings.gradle | 13 ++++++- 65 files changed, 930 insertions(+), 1 deletion(-) create mode 100644 cassandra-example/build.gradle create mode 100644 cassandra-example/settings.gradle create mode 100644 cassandra-example/src/main/gateway/config/cassandra-connections.yml create mode 100644 cassandra-example/src/main/gateway/config/policies.yml create mode 100644 cassandra-example/src/main/gateway/config/services.yml create mode 100644 cassandra-example/src/main/gateway/policy/cassandra/Cassandra Connection Example.xml create mode 100644 clusterproperty-example/build.gradle create mode 100644 clusterproperty-example/settings.gradle create mode 100644 clusterproperty-example/src/main/gateway/config/global-env.properties create mode 100644 clusterproperty-example/src/main/gateway/config/policies.yml create mode 100644 clusterproperty-example/src/main/gateway/config/services.yml create mode 100644 clusterproperty-example/src/main/gateway/policy/properties/Cluster Properties Example.xml create mode 100644 http2client-example/build.gradle create mode 100644 http2client-example/settings.gradle create mode 100644 http2client-example/src/main/gateway/config/generic-entities.yml create mode 100644 http2client-example/src/main/gateway/config/policies.yml create mode 100644 http2client-example/src/main/gateway/config/private-keys.yml create mode 100644 http2client-example/src/main/gateway/config/services.yml create mode 100644 http2client-example/src/main/gateway/policy/http2/Http2 Client Example.xml create mode 100644 idprovider-example/build.gradle create mode 100644 idprovider-example/settings.gradle create mode 100644 idprovider-example/src/main/gateway/config/identity-providers.yml create mode 100644 idprovider-example/src/main/gateway/config/policies.yml create mode 100644 idprovider-example/src/main/gateway/config/services.yml create mode 100644 idprovider-example/src/main/gateway/policy/idprovider/Id provider example.xml create mode 100644 jdbcconnection-example/build.gradle create mode 100644 jdbcconnection-example/settings.gradle create mode 100644 jdbcconnection-example/src/main/gateway/config/jdbc-connections.yml create mode 100644 jdbcconnection-example/src/main/gateway/config/policies.yml create mode 100644 jdbcconnection-example/src/main/gateway/config/services.yml create mode 100644 jdbcconnection-example/src/main/gateway/policy/jdbc/JDBC Connection Example.xml create mode 100644 jms-example/build.gradle create mode 100644 jms-example/settings.gradle create mode 100644 jms-example/src/main/gateway/config/jms-destinations.yml create mode 100644 jms-example/src/main/gateway/config/policies.yml create mode 100644 jms-example/src/main/gateway/config/services.yml create mode 100644 jms-example/src/main/gateway/policy/jms/JMS example.xml create mode 100644 mqnative-example/build.gradle create mode 100644 mqnative-example/settings.gradle create mode 100644 mqnative-example/src/main/gateway/config/active-connectors.yml create mode 100644 mqnative-example/src/main/gateway/config/policies.yml create mode 100644 mqnative-example/src/main/gateway/config/services.yml create mode 100644 mqnative-example/src/main/gateway/policy/mqnative/MQ Native Example.xml create mode 100644 password-example/build.gradle create mode 100644 password-example/settings.gradle create mode 100644 password-example/src/main/gateway/config/jdbc-connections.yml create mode 100644 password-example/src/main/gateway/config/policies.yml create mode 100644 password-example/src/main/gateway/config/services.yml create mode 100644 password-example/src/main/gateway/config/stored-passwords.properties create mode 100644 password-example/src/main/gateway/policy/storedpassword/Stored Password Example.xml create mode 100644 privatekey-example/build.gradle create mode 100644 privatekey-example/settings.gradle create mode 100644 privatekey-example/src/main/gateway/config/policies.yml create mode 100644 privatekey-example/src/main/gateway/config/private-keys.yml create mode 100644 privatekey-example/src/main/gateway/config/privateKeys/test.p12 create mode 100644 privatekey-example/src/main/gateway/config/services.yml create mode 100644 privatekey-example/src/main/gateway/policy/privatekey/Private Key Example.xml create mode 100644 service-annotations/build.gradle create mode 100644 service-annotations/settings.gradle create mode 100644 service-annotations/src/main/gateway/config/certificates/www.google.com.pem create mode 100644 service-annotations/src/main/gateway/config/policies.yml create mode 100644 service-annotations/src/main/gateway/config/services.yml create mode 100644 service-annotations/src/main/gateway/config/trusted-certs.yml create mode 100644 service-annotations/src/main/gateway/policy/certificate/Certificate Example.xml diff --git a/cassandra-example/build.gradle b/cassandra-example/build.gradle new file mode 100644 index 0000000..2a351b7 --- /dev/null +++ b/cassandra-example/build.gradle @@ -0,0 +1,30 @@ +buildscript { + repositories { + gradlePluginPortal() + mavenCentral() + jcenter() + } + dependencies { + classpath "com.ca.apim.gateway:config-builder:0.10.+" + classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" + classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + } +} + +apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +group = "cassandraConnection" +version = '1.0.0' +repositories { + gradlePluginPortal() + mavenCentral() + jcenter() +} + +EnvironmentConfig{ + name="cassandraExample" + map=[ + "CASSANDRA_CONNECTION": file("./src/main/gateway/config/cassandra-connections.yml") + ] +} diff --git a/cassandra-example/settings.gradle b/cassandra-example/settings.gradle new file mode 100644 index 0000000..581a0e2 --- /dev/null +++ b/cassandra-example/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'cassandra-example' \ No newline at end of file diff --git a/cassandra-example/src/main/gateway/config/cassandra-connections.yml b/cassandra-example/src/main/gateway/config/cassandra-connections.yml new file mode 100644 index 0000000..11fa651 --- /dev/null +++ b/cassandra-example/src/main/gateway/config/cassandra-connections.yml @@ -0,0 +1,11 @@ +cassandraTestConnection: + keyspace: "qa" + contactPoint: "cassandratest.com" + port: 9042 + username: "" + compression: "NONE" + ssl: false + properties: {} + annotations: + - type: "@bundle-hints" + id: "650a44894bb5d14a6cfd2b061e222212" diff --git a/cassandra-example/src/main/gateway/config/policies.yml b/cassandra-example/src/main/gateway/config/policies.yml new file mode 100644 index 0000000..6c2dd2f --- /dev/null +++ b/cassandra-example/src/main/gateway/config/policies.yml @@ -0,0 +1,9 @@ +cassandra/Cassandra Connection Example: + type: + tag: + subtag: + hasRouting: true + usedEntities: + - type: "CASSANDRA_CONFIGURATION" + name: "cassandraTestConnection" + annotations: diff --git a/cassandra-example/src/main/gateway/config/services.yml b/cassandra-example/src/main/gateway/config/services.yml new file mode 100644 index 0000000..f740f3b --- /dev/null +++ b/cassandra-example/src/main/gateway/config/services.yml @@ -0,0 +1,10 @@ +cassandra/Cassandra Connection Example: + url: "/cassandra" + policy: "cassandra/Cassandra Connection Example" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} + wssProcessingEnabled: false diff --git a/cassandra-example/src/main/gateway/policy/cassandra/Cassandra Connection Example.xml b/cassandra-example/src/main/gateway/policy/cassandra/Cassandra Connection Example.xml new file mode 100644 index 0000000..f714fde --- /dev/null +++ b/cassandra-example/src/main/gateway/policy/cassandra/Cassandra Connection Example.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/clusterproperty-example/build.gradle b/clusterproperty-example/build.gradle new file mode 100644 index 0000000..6468d82 --- /dev/null +++ b/clusterproperty-example/build.gradle @@ -0,0 +1,30 @@ +buildscript { + repositories { + gradlePluginPortal() + mavenCentral() + jcenter() + } + dependencies { + classpath "com.ca.apim.gateway:config-builder:0.10.+" + classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" + classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + } +} + +apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +group = "clusterproperty" +version = '1.0.0' +repositories { + gradlePluginPortal() + mavenCentral() + jcenter() +} + +EnvironmentConfig{ + name="clusterPropertyExample" + map=[ + "PROPERTY": file("./src/main/gateway/config/global-env.properties") + ] +} \ No newline at end of file diff --git a/clusterproperty-example/settings.gradle b/clusterproperty-example/settings.gradle new file mode 100644 index 0000000..ba75b33 --- /dev/null +++ b/clusterproperty-example/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'clusterproperty-example' \ No newline at end of file diff --git a/clusterproperty-example/src/main/gateway/config/global-env.properties b/clusterproperty-example/src/main/gateway/config/global-env.properties new file mode 100644 index 0000000..7ce71bd --- /dev/null +++ b/clusterproperty-example/src/main/gateway/config/global-env.properties @@ -0,0 +1 @@ +gateway.http.host=example.com diff --git a/clusterproperty-example/src/main/gateway/config/policies.yml b/clusterproperty-example/src/main/gateway/config/policies.yml new file mode 100644 index 0000000..98d3b83 --- /dev/null +++ b/clusterproperty-example/src/main/gateway/config/policies.yml @@ -0,0 +1,11 @@ +properties/Cluster Properties Example: + type: + tag: + subtag: + hasRouting: true + usedEntities: + - type: "SSG_KEY_ENTRY" + name: "SSL" + - type: "ENVIRONMENT_PROPERTY" + name: "http.host" + annotations: diff --git a/clusterproperty-example/src/main/gateway/config/services.yml b/clusterproperty-example/src/main/gateway/config/services.yml new file mode 100644 index 0000000..507081c --- /dev/null +++ b/clusterproperty-example/src/main/gateway/config/services.yml @@ -0,0 +1,10 @@ +properties/Cluster Properties Example: + url: "/property" + policy: "properties/Cluster Properties Example" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} + wssProcessingEnabled: false diff --git a/clusterproperty-example/src/main/gateway/policy/properties/Cluster Properties Example.xml b/clusterproperty-example/src/main/gateway/policy/properties/Cluster Properties Example.xml new file mode 100644 index 0000000..9d64b88 --- /dev/null +++ b/clusterproperty-example/src/main/gateway/policy/properties/Cluster Properties Example.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/http2client-example/build.gradle b/http2client-example/build.gradle new file mode 100644 index 0000000..081d70c --- /dev/null +++ b/http2client-example/build.gradle @@ -0,0 +1,30 @@ +buildscript { + repositories { + gradlePluginPortal() + mavenCentral() + jcenter() + } + dependencies { + classpath "com.ca.apim.gateway:config-builder:0.10.+" + classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" + classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + } +} + +apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +group = "http2client" +version = '1.0.0' +repositories { + gradlePluginPortal() + mavenCentral() + jcenter() +} + +EnvironmentConfig{ + name="http2clientExample" + map=[ + "GENERIC": file("./src/main/gateway/config/generic-entities.yml") + ] +} diff --git a/http2client-example/settings.gradle b/http2client-example/settings.gradle new file mode 100644 index 0000000..295b952 --- /dev/null +++ b/http2client-example/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'http2client-example' \ No newline at end of file diff --git a/http2client-example/src/main/gateway/config/generic-entities.yml b/http2client-example/src/main/gateway/config/generic-entities.yml new file mode 100644 index 0000000..27d3468 --- /dev/null +++ b/http2client-example/src/main/gateway/config/generic-entities.yml @@ -0,0 +1,21 @@ +http2TestClient: + description: "" + entityClassName: "com.l7tech.external.assertions.http2.routing.model.Http2ClientConfigurationEntity" + valueXml: | + + + + + + + + http2TestClient + + + + + + + annotations: + - type: "@bundle-hints" + id: "425cdbc538217411656ef4481f0da28c" diff --git a/http2client-example/src/main/gateway/config/policies.yml b/http2client-example/src/main/gateway/config/policies.yml new file mode 100644 index 0000000..0523af3 --- /dev/null +++ b/http2client-example/src/main/gateway/config/policies.yml @@ -0,0 +1,11 @@ +http2/Http2 Client Example: + type: + tag: + subtag: + hasRouting: false + usedEntities: + - type: "SSG_KEY_ENTRY" + name: "apim_autotest_ssl" + - type: "GENERIC" + name: "http2TestClient" + annotations: diff --git a/http2client-example/src/main/gateway/config/private-keys.yml b/http2client-example/src/main/gateway/config/private-keys.yml new file mode 100644 index 0000000..aeb870a --- /dev/null +++ b/http2client-example/src/main/gateway/config/private-keys.yml @@ -0,0 +1,3 @@ +apim_autotest_ssl: + keystore: "Software DB" + algorithm: "RSA" diff --git a/http2client-example/src/main/gateway/config/services.yml b/http2client-example/src/main/gateway/config/services.yml new file mode 100644 index 0000000..b452ed5 --- /dev/null +++ b/http2client-example/src/main/gateway/config/services.yml @@ -0,0 +1,10 @@ +http2/Http2 Client Example: + url: "/http2" + policy: "http2/Http2 Client Example" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} + wssProcessingEnabled: false diff --git a/http2client-example/src/main/gateway/policy/http2/Http2 Client Example.xml b/http2client-example/src/main/gateway/policy/http2/Http2 Client Example.xml new file mode 100644 index 0000000..76910e6 --- /dev/null +++ b/http2client-example/src/main/gateway/policy/http2/Http2 Client Example.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/idprovider-example/build.gradle b/idprovider-example/build.gradle new file mode 100644 index 0000000..8555102 --- /dev/null +++ b/idprovider-example/build.gradle @@ -0,0 +1,30 @@ +buildscript { + repositories { + gradlePluginPortal() + mavenCentral() + jcenter() + } + dependencies { + classpath "com.ca.apim.gateway:config-builder:0.10.+" + classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" + classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + } +} + +apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +group = "idprovider" +version = '1.0.0' +repositories { + gradlePluginPortal() + mavenCentral() + jcenter() +} + +EnvironmentConfig{ + name="idproviderExample" + map=[ + "IDENTITY_PROVIDER": file("./src/main/gateway/config/identity-providers.yml") + ] +} diff --git a/idprovider-example/settings.gradle b/idprovider-example/settings.gradle new file mode 100644 index 0000000..aa312e4 --- /dev/null +++ b/idprovider-example/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'idprovider-example' \ No newline at end of file diff --git a/idprovider-example/src/main/gateway/config/identity-providers.yml b/idprovider-example/src/main/gateway/config/identity-providers.yml new file mode 100644 index 0000000..fdfdc6d --- /dev/null +++ b/idprovider-example/src/main/gateway/config/identity-providers.yml @@ -0,0 +1,8 @@ +Test Identity Provider: + type: "FEDERATED" + properties: + enableCredentialType.saml: false + enableCredentialType.x509: true + annotations: + - type: "@bundle-hints" + id: "650a44894bb5d14a6cfd2b061e2220e5" diff --git a/idprovider-example/src/main/gateway/config/policies.yml b/idprovider-example/src/main/gateway/config/policies.yml new file mode 100644 index 0000000..f14057a --- /dev/null +++ b/idprovider-example/src/main/gateway/config/policies.yml @@ -0,0 +1,9 @@ +idprovider/Id provider example: + type: + tag: + subtag: + hasRouting: false + usedEntities: + - type: "ID_PROVIDER_CONFIG" + name: "Test Identity Provider" + annotations: diff --git a/idprovider-example/src/main/gateway/config/services.yml b/idprovider-example/src/main/gateway/config/services.yml new file mode 100644 index 0000000..c3d8c2b --- /dev/null +++ b/idprovider-example/src/main/gateway/config/services.yml @@ -0,0 +1,10 @@ +idprovider/Id provider example: + url: "/idprovider" + policy: "idprovider/Id provider example" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} + wssProcessingEnabled: false diff --git a/idprovider-example/src/main/gateway/policy/idprovider/Id provider example.xml b/idprovider-example/src/main/gateway/policy/idprovider/Id provider example.xml new file mode 100644 index 0000000..54d12f5 --- /dev/null +++ b/idprovider-example/src/main/gateway/policy/idprovider/Id provider example.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/jdbcconnection-example/build.gradle b/jdbcconnection-example/build.gradle new file mode 100644 index 0000000..5b90528 --- /dev/null +++ b/jdbcconnection-example/build.gradle @@ -0,0 +1,30 @@ +buildscript { + repositories { + gradlePluginPortal() + mavenCentral() + jcenter() + } + dependencies { + classpath "com.ca.apim.gateway:config-builder:0.10.+" + classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" + classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + } +} + +apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +group = "jdbcconnection" +version = '1.0.0' +repositories { + gradlePluginPortal() + mavenCentral() + jcenter() +} + +EnvironmentConfig{ + name="jdbcExample" + map=[ + "JDBC_CONNECTION": file("./src/main/gateway/config/jdbc-connections.yml") + ] +} diff --git a/jdbcconnection-example/settings.gradle b/jdbcconnection-example/settings.gradle new file mode 100644 index 0000000..ca8574c --- /dev/null +++ b/jdbcconnection-example/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'jdbcconnection-example' \ No newline at end of file diff --git a/jdbcconnection-example/src/main/gateway/config/jdbc-connections.yml b/jdbcconnection-example/src/main/gateway/config/jdbc-connections.yml new file mode 100644 index 0000000..cd1f73c --- /dev/null +++ b/jdbcconnection-example/src/main/gateway/config/jdbc-connections.yml @@ -0,0 +1,11 @@ +mysql: + driverClass: "com.mysql.jdbc.Driver" + jdbcUrl: "jdbc:l7tech:mysql://localhost:3306" + properties: + EnableCancelTimeout: "true" + user: "root" + minimumPoolSize: 3 + maximumPoolSize: 15 + annotations: + - type: "@bundle-hints" + id: "650a44894bb5d14a6cfd2b061e22205c" diff --git a/jdbcconnection-example/src/main/gateway/config/policies.yml b/jdbcconnection-example/src/main/gateway/config/policies.yml new file mode 100644 index 0000000..74261c2 --- /dev/null +++ b/jdbcconnection-example/src/main/gateway/config/policies.yml @@ -0,0 +1,9 @@ +jdbc/JDBC Connection Example: + type: + tag: + subtag: + hasRouting: true + usedEntities: + - type: "JDBC_CONNECTION" + name: "mysql" + annotations: diff --git a/jdbcconnection-example/src/main/gateway/config/services.yml b/jdbcconnection-example/src/main/gateway/config/services.yml new file mode 100644 index 0000000..8036a7d --- /dev/null +++ b/jdbcconnection-example/src/main/gateway/config/services.yml @@ -0,0 +1,10 @@ +jdbc/JDBC Connection Example: + url: "/jdbc" + policy: "jdbc/JDBC Connection Example" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} + wssProcessingEnabled: false diff --git a/jdbcconnection-example/src/main/gateway/policy/jdbc/JDBC Connection Example.xml b/jdbcconnection-example/src/main/gateway/policy/jdbc/JDBC Connection Example.xml new file mode 100644 index 0000000..fd0d3fb --- /dev/null +++ b/jdbcconnection-example/src/main/gateway/policy/jdbc/JDBC Connection Example.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/jms-example/build.gradle b/jms-example/build.gradle new file mode 100644 index 0000000..1a66541 --- /dev/null +++ b/jms-example/build.gradle @@ -0,0 +1,30 @@ +buildscript { + repositories { + gradlePluginPortal() + mavenCentral() + jcenter() + } + dependencies { + classpath "com.ca.apim.gateway:config-builder:0.10.+" + classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" + classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + } +} + +apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +group = "jmsconnection" +version = '1.0.0' +repositories { + gradlePluginPortal() + mavenCentral() + jcenter() +} + +EnvironmentConfig{ + name="jmsExample" + map=[ + "JMS_DESTINATION": file("./src/main/gateway/config/jms-destinations.yml") + ] +} \ No newline at end of file diff --git a/jms-example/settings.gradle b/jms-example/settings.gradle new file mode 100644 index 0000000..64d6728 --- /dev/null +++ b/jms-example/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'jms-example' \ No newline at end of file diff --git a/jms-example/src/main/gateway/config/jms-destinations.yml b/jms-example/src/main/gateway/config/jms-destinations.yml new file mode 100644 index 0000000..b3cf111 --- /dev/null +++ b/jms-example/src/main/gateway/config/jms-destinations.yml @@ -0,0 +1,15 @@ +jmsDestination: + initialContextFactoryClassName: "testClass" + jndiUrl: "jndi:test" + destinationType: "QUEUE" + connectionFactoryName: "queue factory" + destinationName: "test" + outboundDetail: + replyType: "AUTOMATIC" + useRequestCorrelationId: false + messageFormat: "AUTOMATIC" + poolingType: "SESSION" + template: false + annotations: + - type: "@bundle-hints" + id: "650a44894bb5d14a6cfd2b061e22218c" diff --git a/jms-example/src/main/gateway/config/policies.yml b/jms-example/src/main/gateway/config/policies.yml new file mode 100644 index 0000000..4b9764d --- /dev/null +++ b/jms-example/src/main/gateway/config/policies.yml @@ -0,0 +1,9 @@ +jms/JMS example: + type: + tag: + subtag: + hasRouting: true + usedEntities: + - type: "JMS_ENDPOINT" + name: "jmsDestination" + annotations: diff --git a/jms-example/src/main/gateway/config/services.yml b/jms-example/src/main/gateway/config/services.yml new file mode 100644 index 0000000..89ea7c9 --- /dev/null +++ b/jms-example/src/main/gateway/config/services.yml @@ -0,0 +1,10 @@ +jms/JMS example: + url: "/jms" + policy: "jms/JMS example" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} + wssProcessingEnabled: false diff --git a/jms-example/src/main/gateway/policy/jms/JMS example.xml b/jms-example/src/main/gateway/policy/jms/JMS example.xml new file mode 100644 index 0000000..21f44ac --- /dev/null +++ b/jms-example/src/main/gateway/policy/jms/JMS example.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/mqnative-example/build.gradle b/mqnative-example/build.gradle new file mode 100644 index 0000000..bb11270 --- /dev/null +++ b/mqnative-example/build.gradle @@ -0,0 +1,30 @@ +buildscript { + repositories { + gradlePluginPortal() + mavenCentral() + jcenter() + } + dependencies { + classpath "com.ca.apim.gateway:config-builder:0.10.+" + classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" + classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + } +} + +apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +group = "mqnative" +version = '1.0.0' +repositories { + gradlePluginPortal() + mavenCentral() + jcenter() +} + +EnvironmentConfig{ + name="mqnativeExample" + map=[ + "SSG_ACTIVE_CONNECTOR": file("./src/main/gateway/config/active-connectors.yml") + ] +} \ No newline at end of file diff --git a/mqnative-example/settings.gradle b/mqnative-example/settings.gradle new file mode 100644 index 0000000..75cc4e7 --- /dev/null +++ b/mqnative-example/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'mqnative-example' \ No newline at end of file diff --git a/mqnative-example/src/main/gateway/config/active-connectors.yml b/mqnative-example/src/main/gateway/config/active-connectors.yml new file mode 100644 index 0000000..3fc65da --- /dev/null +++ b/mqnative-example/src/main/gateway/config/active-connectors.yml @@ -0,0 +1,22 @@ +mqnativeTestConn: + connectorType: "MqNative" + properties: + inbound: "false" + MqNativePort: "9878" + MqNativeHostName: "localhost" + MqNativeChannel: "SYSTEM.DEF.SVRCONN" + MqNativeOutboundIsTemplateQueue: "false" + MqNativeTargetQueueName: "testQueue" + MqNativeInboundIsOpenOptionsUsed: "false" + MqNativeIsQueueCredentialRequired: "false" + MqNativeInboundIsReplyQueuePutMessageOptionsUsed: "false" + MqNativeQueueManagerName: "testManager" + MqNativeInboundIsGetMessageOptionsUsed: "false" + MqNativeOutboundIsReplyQueueGetMessageOptionsUsed: "false" + MqNativeIsSslEnabled: "false" + MqNativeOutboundMessageFormat: "AUTOMATIC" + MqNativeInboundIsFailedQueuePutMessageOptionsUsed: "false" + MqNativeReplyType: "REPLY_NONE" + annotations: + - type: "@bundle-hints" + id: "650a44894bb5d14a6cfd2b061e22225b" diff --git a/mqnative-example/src/main/gateway/config/policies.yml b/mqnative-example/src/main/gateway/config/policies.yml new file mode 100644 index 0000000..4dcf5a3 --- /dev/null +++ b/mqnative-example/src/main/gateway/config/policies.yml @@ -0,0 +1,9 @@ +mqnative/MQ Native Example: + type: + tag: + subtag: + hasRouting: true + usedEntities: + - type: "SSG_ACTIVE_CONNECTOR" + name: "mqnativeTestConn" + annotations: diff --git a/mqnative-example/src/main/gateway/config/services.yml b/mqnative-example/src/main/gateway/config/services.yml new file mode 100644 index 0000000..4051416 --- /dev/null +++ b/mqnative-example/src/main/gateway/config/services.yml @@ -0,0 +1,10 @@ +mqnative/MQ Native Example: + url: "/mqnative" + policy: "mqnative/MQ Native Example" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} + wssProcessingEnabled: false diff --git a/mqnative-example/src/main/gateway/policy/mqnative/MQ Native Example.xml b/mqnative-example/src/main/gateway/policy/mqnative/MQ Native Example.xml new file mode 100644 index 0000000..5c48b8d --- /dev/null +++ b/mqnative-example/src/main/gateway/policy/mqnative/MQ Native Example.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/password-example/build.gradle b/password-example/build.gradle new file mode 100644 index 0000000..1483a7c --- /dev/null +++ b/password-example/build.gradle @@ -0,0 +1,30 @@ +buildscript { + repositories { + gradlePluginPortal() + mavenCentral() + jcenter() + } + dependencies { + classpath "com.ca.apim.gateway:config-builder:0.10.+" + classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" + classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + } +} + +apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +group = "storedpassword" +version = '1.0.0' +repositories { + gradlePluginPortal() + mavenCentral() + jcenter() +} + +EnvironmentConfig{ + name="passwordExample" + map=[ + "PASSWORD.jdbc_con_pass": file("./src/main/gateway/config/stored-passwords.properties") + ] +} \ No newline at end of file diff --git a/password-example/settings.gradle b/password-example/settings.gradle new file mode 100644 index 0000000..85dd370 --- /dev/null +++ b/password-example/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'password-example' \ No newline at end of file diff --git a/password-example/src/main/gateway/config/jdbc-connections.yml b/password-example/src/main/gateway/config/jdbc-connections.yml new file mode 100644 index 0000000..fe3ab8b --- /dev/null +++ b/password-example/src/main/gateway/config/jdbc-connections.yml @@ -0,0 +1,12 @@ +mysqlWithCredentials: + driverClass: "com.mysql.jdbc.Driver" + jdbcUrl: "jdbc:l7tech:mysql://localhost:3306" + properties: + EnableCancelTimeout: "true" + user: "root" + passwordRef: "jdbc_con_pass" + minimumPoolSize: 3 + maximumPoolSize: 15 + annotations: + - type: "@bundle-hints" + id: "650a44894bb5d14a6cfd2b061e2223b0" diff --git a/password-example/src/main/gateway/config/policies.yml b/password-example/src/main/gateway/config/policies.yml new file mode 100644 index 0000000..e1a0f03 --- /dev/null +++ b/password-example/src/main/gateway/config/policies.yml @@ -0,0 +1,11 @@ +storedpassword/Stored Password Example: + type: + tag: + subtag: + hasRouting: true + usedEntities: + - type: "JDBC_CONNECTION" + name: "mysqlWithCredentials" + - type: "SECURE_PASSWORD" + name: "jdbc_con_pass" + annotations: diff --git a/password-example/src/main/gateway/config/services.yml b/password-example/src/main/gateway/config/services.yml new file mode 100644 index 0000000..fd663c1 --- /dev/null +++ b/password-example/src/main/gateway/config/services.yml @@ -0,0 +1,10 @@ +storedpassword/Stored Password Example: + url: "/password" + policy: "storedpassword/Stored Password Example" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} + wssProcessingEnabled: false diff --git a/password-example/src/main/gateway/config/stored-passwords.properties b/password-example/src/main/gateway/config/stored-passwords.properties new file mode 100644 index 0000000..bff70e9 --- /dev/null +++ b/password-example/src/main/gateway/config/stored-passwords.properties @@ -0,0 +1 @@ +jdbc_con_pass=password diff --git a/password-example/src/main/gateway/policy/storedpassword/Stored Password Example.xml b/password-example/src/main/gateway/policy/storedpassword/Stored Password Example.xml new file mode 100644 index 0000000..2e95727 --- /dev/null +++ b/password-example/src/main/gateway/policy/storedpassword/Stored Password Example.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/privatekey-example/build.gradle b/privatekey-example/build.gradle new file mode 100644 index 0000000..4a15eb8 --- /dev/null +++ b/privatekey-example/build.gradle @@ -0,0 +1,30 @@ +buildscript { + repositories { + gradlePluginPortal() + mavenCentral() + jcenter() + } + dependencies { + classpath "com.ca.apim.gateway:config-builder:0.10.+" + classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" + classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + } +} + +apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +group = "privatekey" +version = '1.0.0' +repositories { + gradlePluginPortal() + mavenCentral() + jcenter() +} + +EnvironmentConfig{ + name="privateKeyExample" + map=[ + "PRIVATE_KEY.test": file("./src/main/gateway/config/private-keys.yml") + ] +} diff --git a/privatekey-example/settings.gradle b/privatekey-example/settings.gradle new file mode 100644 index 0000000..fdc5dcd --- /dev/null +++ b/privatekey-example/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'privatekey-example' \ No newline at end of file diff --git a/privatekey-example/src/main/gateway/config/policies.yml b/privatekey-example/src/main/gateway/config/policies.yml new file mode 100644 index 0000000..5e156d2 --- /dev/null +++ b/privatekey-example/src/main/gateway/config/policies.yml @@ -0,0 +1,9 @@ +privatekey/Private Key Example: + type: + tag: + subtag: + hasRouting: true + usedEntities: + - type: "SSG_KEY_ENTRY" + name: "test" + annotations: diff --git a/privatekey-example/src/main/gateway/config/private-keys.yml b/privatekey-example/src/main/gateway/config/private-keys.yml new file mode 100644 index 0000000..ee88372 --- /dev/null +++ b/privatekey-example/src/main/gateway/config/private-keys.yml @@ -0,0 +1,4 @@ +test: + keystore: "Software DB" + algorithm: "RSA" + privateKeyFile: \ No newline at end of file diff --git a/privatekey-example/src/main/gateway/config/privateKeys/test.p12 b/privatekey-example/src/main/gateway/config/privateKeys/test.p12 new file mode 100644 index 0000000000000000000000000000000000000000..60a40330bc0bd59beadc189901cec7e2f5889dcf GIT binary patch literal 4133 zcmY+GWmFRm+lRLiO8m*ur3`6dfaDNRx~01nkPt@W5M;nWkQgB$gV8BCkRFZFBHf*% zloCY1$M-$&`#k6QaG(2}>v!M3&leO)a~A|8f+DHsNXZ0I8mRMsfVY5HB=sOMlDhXV z?uH`Cw*M<4n;}M$P5i~*{>~67#s7U#k^@0lBpKo_41@}hlK(&cTh2xd=9$rFFvTL@ z?v~t{)mZv;?4v=?4LOK}D64Z1wLMvdF*CYvFq?^z;aNU&~jDY6?c*vg@e`Q8;syoPi^ss%e*D2?OulAaLsAJ zgB?4(>q1#WK)2Jjz5y!$=F?DpoTM~M8pB+t^=!Px9rLm1G z!VFMK8$Q!}%mZ`Fcfj%fR%)9kKz&|3*=4+&NQWu4*SY4@{l#EQ^R;RMfybC+;CYM` zjxn~w?G|zTufg_mtr7U(B4r>O1c{-_e$UAW7n*(&B(-v6SuJ|@JnMlJM1<3qdA;>I zy3EN9btz?I#4c32FJ_y2v$}~P7N?0j=%DudT4%b=o>=v(s_<8&TqXG#qVn6^&q;s5 z9YwKCn_an?68})_?izCu9tTwT&C0M?CSap zUoZMb;*j1NAKr8V1V?0_{MsAD-bcbpkJqw-+r}(YI`hb+t+(8 z8S2*ur0Q=8mjD$r7>-cfs%sw&I4oXLG<#-auYMgx9@#tUy^|&KgD@>)Z}M?A8ONfu zMC(`a@Rf;sfPF&KJvLYW$eoC}pmc__q9FfUZqxzcLNz*@7uh1>8#%_8#4tZ(JOmp&zlqH&n+3>k9swgtD+;U8RlUBFANYNAx$k*<+#1E@#tZ-I@ zt*+;3tyINn>GKXHS3luY7IsGK?yz*&FkNMsJG10Yr%p&==3p?9(4rYS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bz)a&+LnH5mTX)|O__KI1%DA_>afKp$HvJ7nwJ)VkEeRCXjkIUl8+>HnmCk*Me^drB8+pt^JK}VfAL<#z) zA|$3kL6n&}h?}thYqOb)uvVAfB#N~B4ObL42BmC|HfQs7lpW@>h*Wb_a+hOqi3&$# zC1STL7(GudHwXHSwpSj&m)=)uGqcTlh*?@iTP6r~+ZktepG-8*!+Q6JAgFk84xvzV z6Uvmde6zI`0ul(uyy*2VczHP-v6jrqe1*GuJ0<2J=stQ3VJ=?|E9@MyP>)_8E$8dt zYHt^IJaHi|1-!B*sU^qK+GI7fCd*tqe zI66H!f|35FB%{0Q>g0-$K{Wv?p3}h+C+0>d(Lowoj^YHt`xBrUqlgI ztdn-)RPS-qfq0h{kC-<1gC-!T49Zu(yw!L@BJ|l=-NjBu(fezms$F8h&8byCVAqzw z;J0ZnCZ6*GssOzUB_kyfq9OvZk^qRoLQ>NXSdvEN-=ekfKhnzTrT3o|5QC-J2(S9n Y`(!(R#QS%Dqb%24bYlS#0h0j#0)Q{$a{vGU literal 0 HcmV?d00001 diff --git a/privatekey-example/src/main/gateway/config/services.yml b/privatekey-example/src/main/gateway/config/services.yml new file mode 100644 index 0000000..7fb5e0a --- /dev/null +++ b/privatekey-example/src/main/gateway/config/services.yml @@ -0,0 +1,10 @@ +privatekey/Private Key Example: + url: "/privatekey" + policy: "privatekey/Private Key Example" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} + wssProcessingEnabled: false diff --git a/privatekey-example/src/main/gateway/policy/privatekey/Private Key Example.xml b/privatekey-example/src/main/gateway/policy/privatekey/Private Key Example.xml new file mode 100644 index 0000000..5d88c57 --- /dev/null +++ b/privatekey-example/src/main/gateway/policy/privatekey/Private Key Example.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/service-annotations/build.gradle b/service-annotations/build.gradle new file mode 100644 index 0000000..17e8bd7 --- /dev/null +++ b/service-annotations/build.gradle @@ -0,0 +1,29 @@ +buildscript { + repositories { + gradlePluginPortal() + mavenCentral() + jcenter() + } + dependencies { + classpath "com.ca.apim.gateway:config-builder:0.10.+" + classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" + classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + } +} + +apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +group = "service" +version = '1.0.0' +repositories { + gradlePluginPortal() + mavenCentral() + jcenter() +} +EnvironmentConfig{ + name="CertificateExample" + map = ["CERTIFICATE.www.google.com":file("./src/main/gateway/config/trusted-certs.yml"), + "CERTIFICATE_FILE.www.google.com.pem":file("./src/main/gateway/config/certificates/www.google.com.pem")] +} + diff --git a/service-annotations/settings.gradle b/service-annotations/settings.gradle new file mode 100644 index 0000000..0aac79c --- /dev/null +++ b/service-annotations/settings.gradle @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2018 CA. All rights reserved. + * This software may be modified and distributed under the terms + * of the MIT license. See the LICENSE file for details. + */ + +rootProject.name = 'service-annotations' \ No newline at end of file diff --git a/service-annotations/src/main/gateway/config/certificates/www.google.com.pem b/service-annotations/src/main/gateway/config/certificates/www.google.com.pem new file mode 100644 index 0000000..6abfbfc --- /dev/null +++ b/service-annotations/src/main/gateway/config/certificates/www.google.com.pem @@ -0,0 +1,28 @@ +-----BEGIN CERTIFICATE----- +MIIExTCCA62gAwIBAgIQarjYTUDInIQIAAAAAE2feDANBgkqhkiG9w0BAQsFADBC +MQswCQYDVQQGEwJVUzEeMBwGA1UEChMVR29vZ2xlIFRydXN0IFNlcnZpY2VzMRMw +EQYDVQQDEwpHVFMgQ0EgMU8xMB4XDTIwMDcxNTA4MzQzM1oXDTIwMTAwNzA4MzQz +M1owaDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcT +DU1vdW50YWluIFZpZXcx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WOVJJz6HiB/YYk85Nnp9qEaC2x1lh +jjlCH/8hMLG4cSGa0Oyq6oQxSEh4tvvvpunisl0l2i/bTSFw4X+fuGXnXo790T5F +8jntiPJdip45alRnXHwplKwT3GP/5mbzcl4d6cHtR2eBSB9hKjsTWaMac6bcGv/I +zDjphn/W30u+3i0FLhzIbj/8VwOTcVo/5TmeI2g7a56brqZTAN3t5gM9sRT5p2Z2 +b1clHL3NVAopsKXRb68TqUxdGAldefp58381GDxSNk5ElqNUpK6sDEwSu2IaUNiZ +rrp0xgyHUUTGbifRM3ej24y3wg/o2JbvxQ== +-----END CERTIFICATE----- \ No newline at end of file diff --git a/service-annotations/src/main/gateway/config/policies.yml b/service-annotations/src/main/gateway/config/policies.yml new file mode 100644 index 0000000..f10d2be --- /dev/null +++ b/service-annotations/src/main/gateway/config/policies.yml @@ -0,0 +1,11 @@ +certificate/Certificate Example: + type: + tag: + subtag: + hasRouting: true + usedEntities: + - type: "SSG_KEY_ENTRY" + name: "SSL" + - type: "TRUSTED_CERT" + name: "www.google.com" + annotations: diff --git a/service-annotations/src/main/gateway/config/services.yml b/service-annotations/src/main/gateway/config/services.yml new file mode 100644 index 0000000..5caef58 --- /dev/null +++ b/service-annotations/src/main/gateway/config/services.yml @@ -0,0 +1,12 @@ +certificate/Certificate Example: + url: "/cert_demo" + policy: "certificate/Certificate Example" + httpMethods: + - "DELETE" + - "POST" + - "GET" + - "PUT" + properties: {} + wssProcessingEnabled: false + annotations: + - "@bundle" diff --git a/service-annotations/src/main/gateway/config/trusted-certs.yml b/service-annotations/src/main/gateway/config/trusted-certs.yml new file mode 100644 index 0000000..de41010 --- /dev/null +++ b/service-annotations/src/main/gateway/config/trusted-certs.yml @@ -0,0 +1,12 @@ +www.google.com: + verifyHostname: false + trustedForSsl: true + trustedAsSamlAttestingEntity: false + trustAnchor: true + revocationCheckingEnabled: true + trustedForSigningClientCerts: false + trustedForSigningServerCerts: false + trustedAsSamlIssuer: false + annotations: + - type: "@bundle-hints" + id: "650a44894bb5d14a6cfd2b061e221f4a" diff --git a/service-annotations/src/main/gateway/policy/certificate/Certificate Example.xml b/service-annotations/src/main/gateway/policy/certificate/Certificate Example.xml new file mode 100644 index 0000000..22b3240 --- /dev/null +++ b/service-annotations/src/main/gateway/policy/certificate/Certificate Example.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/settings.gradle b/settings.gradle index 4e3d01c..26b1894 100644 --- a/settings.gradle +++ b/settings.gradle @@ -14,4 +14,15 @@ include 'common-services', 'routings', 'service-metrics', 'encass-annotations', - 'deployment' \ No newline at end of file + 'deployment' +include 'service-annotations' +include 'clusterproperty-example' +include 'jdbcconnection-example' +include 'idprovider-example' +include 'jms-example' +include 'cassandra-example' +include 'mqnative-example' +include 'http2client-example' +include 'password-example' +include 'privatekey-example' + From 00867017f354f519c84018dcfb662f231e7381ca Mon Sep 17 00:00:00 2001 From: root Date: Tue, 18 Aug 2020 11:32:11 +0000 Subject: [PATCH 22/33] Modified folder, policy and service names --- cassandra-example/src/main/gateway/config/policies.yml | 2 +- cassandra-example/src/main/gateway/config/services.yml | 4 ++-- .../cassandra-policy.xml} | 0 clusterproperty-example/src/main/gateway/config/policies.yml | 2 +- clusterproperty-example/src/main/gateway/config/services.yml | 4 ++-- .../clusterproperty-policy.xml} | 0 http2client-example/src/main/gateway/config/policies.yml | 2 +- http2client-example/src/main/gateway/config/services.yml | 4 ++-- .../http2client-policy.xml} | 0 idprovider-example/src/main/gateway/config/policies.yml | 2 +- idprovider-example/src/main/gateway/config/services.yml | 4 ++-- .../idprovider-policy.xml} | 0 jdbcconnection-example/src/main/gateway/config/policies.yml | 2 +- jdbcconnection-example/src/main/gateway/config/services.yml | 4 ++-- .../jdbcconnection-policy.xml} | 0 jms-example/src/main/gateway/config/policies.yml | 2 +- jms-example/src/main/gateway/config/services.yml | 4 ++-- .../policy/{jms/JMS example.xml => jms-folder/jms-policy.xml} | 0 mqnative-example/src/main/gateway/config/policies.yml | 2 +- mqnative-example/src/main/gateway/config/services.yml | 4 ++-- .../mqnative-policy.xml} | 0 password-example/src/main/gateway/config/policies.yml | 2 +- password-example/src/main/gateway/config/services.yml | 4 ++-- .../password-policy.xml} | 0 privatekey-example/src/main/gateway/config/policies.yml | 2 +- privatekey-example/src/main/gateway/config/services.yml | 4 ++-- .../privatekey-policy.xml} | 0 service-annotations/src/main/gateway/config/services.yml | 2 ++ 28 files changed, 29 insertions(+), 27 deletions(-) rename cassandra-example/src/main/gateway/policy/{cassandra/Cassandra Connection Example.xml => cassandra-folder/cassandra-policy.xml} (100%) rename clusterproperty-example/src/main/gateway/policy/{properties/Cluster Properties Example.xml => clusterproperty-folder/clusterproperty-policy.xml} (100%) rename http2client-example/src/main/gateway/policy/{http2/Http2 Client Example.xml => http2client-folder/http2client-policy.xml} (100%) rename idprovider-example/src/main/gateway/policy/{idprovider/Id provider example.xml => idprovider-folder/idprovider-policy.xml} (100%) rename jdbcconnection-example/src/main/gateway/policy/{jdbc/JDBC Connection Example.xml => jdbcconnection-folder/jdbcconnection-policy.xml} (100%) rename jms-example/src/main/gateway/policy/{jms/JMS example.xml => jms-folder/jms-policy.xml} (100%) rename mqnative-example/src/main/gateway/policy/{mqnative/MQ Native Example.xml => mqnative-folder/mqnative-policy.xml} (100%) rename password-example/src/main/gateway/policy/{storedpassword/Stored Password Example.xml => password-folder/password-policy.xml} (100%) rename privatekey-example/src/main/gateway/policy/{privatekey/Private Key Example.xml => privatekey-folder/privatekey-policy.xml} (100%) diff --git a/cassandra-example/src/main/gateway/config/policies.yml b/cassandra-example/src/main/gateway/config/policies.yml index 6c2dd2f..8983378 100644 --- a/cassandra-example/src/main/gateway/config/policies.yml +++ b/cassandra-example/src/main/gateway/config/policies.yml @@ -1,4 +1,4 @@ -cassandra/Cassandra Connection Example: +cassandra-folder/cassandra-policy: type: tag: subtag: diff --git a/cassandra-example/src/main/gateway/config/services.yml b/cassandra-example/src/main/gateway/config/services.yml index f740f3b..93fbe55 100644 --- a/cassandra-example/src/main/gateway/config/services.yml +++ b/cassandra-example/src/main/gateway/config/services.yml @@ -1,6 +1,6 @@ -cassandra/Cassandra Connection Example: +cassandra-folder/cassandra-service: url: "/cassandra" - policy: "cassandra/Cassandra Connection Example" + policy: "cassandra-folder/cassandra-policy" httpMethods: - "DELETE" - "POST" diff --git a/cassandra-example/src/main/gateway/policy/cassandra/Cassandra Connection Example.xml b/cassandra-example/src/main/gateway/policy/cassandra-folder/cassandra-policy.xml similarity index 100% rename from cassandra-example/src/main/gateway/policy/cassandra/Cassandra Connection Example.xml rename to cassandra-example/src/main/gateway/policy/cassandra-folder/cassandra-policy.xml diff --git a/clusterproperty-example/src/main/gateway/config/policies.yml b/clusterproperty-example/src/main/gateway/config/policies.yml index 98d3b83..f11764c 100644 --- a/clusterproperty-example/src/main/gateway/config/policies.yml +++ b/clusterproperty-example/src/main/gateway/config/policies.yml @@ -1,4 +1,4 @@ -properties/Cluster Properties Example: +clusterproperty-folder/clusterproperty-policy: type: tag: subtag: diff --git a/clusterproperty-example/src/main/gateway/config/services.yml b/clusterproperty-example/src/main/gateway/config/services.yml index 507081c..1817bfe 100644 --- a/clusterproperty-example/src/main/gateway/config/services.yml +++ b/clusterproperty-example/src/main/gateway/config/services.yml @@ -1,6 +1,6 @@ -properties/Cluster Properties Example: +clusterproperty-folder/clusterproperty-service: url: "/property" - policy: "properties/Cluster Properties Example" + policy: "clusterproperty-folder/clusterproperty-policy" httpMethods: - "DELETE" - "POST" diff --git a/clusterproperty-example/src/main/gateway/policy/properties/Cluster Properties Example.xml b/clusterproperty-example/src/main/gateway/policy/clusterproperty-folder/clusterproperty-policy.xml similarity index 100% rename from clusterproperty-example/src/main/gateway/policy/properties/Cluster Properties Example.xml rename to clusterproperty-example/src/main/gateway/policy/clusterproperty-folder/clusterproperty-policy.xml diff --git a/http2client-example/src/main/gateway/config/policies.yml b/http2client-example/src/main/gateway/config/policies.yml index 0523af3..51d2d0f 100644 --- a/http2client-example/src/main/gateway/config/policies.yml +++ b/http2client-example/src/main/gateway/config/policies.yml @@ -1,4 +1,4 @@ -http2/Http2 Client Example: +http2client-folder/http2client-policy: type: tag: subtag: diff --git a/http2client-example/src/main/gateway/config/services.yml b/http2client-example/src/main/gateway/config/services.yml index b452ed5..4a24f5b 100644 --- a/http2client-example/src/main/gateway/config/services.yml +++ b/http2client-example/src/main/gateway/config/services.yml @@ -1,6 +1,6 @@ -http2/Http2 Client Example: +http2client-folder/http2client-service: url: "/http2" - policy: "http2/Http2 Client Example" + policy: "http2client-folder/http2client-policy" httpMethods: - "DELETE" - "POST" diff --git a/http2client-example/src/main/gateway/policy/http2/Http2 Client Example.xml b/http2client-example/src/main/gateway/policy/http2client-folder/http2client-policy.xml similarity index 100% rename from http2client-example/src/main/gateway/policy/http2/Http2 Client Example.xml rename to http2client-example/src/main/gateway/policy/http2client-folder/http2client-policy.xml diff --git a/idprovider-example/src/main/gateway/config/policies.yml b/idprovider-example/src/main/gateway/config/policies.yml index f14057a..dc6e645 100644 --- a/idprovider-example/src/main/gateway/config/policies.yml +++ b/idprovider-example/src/main/gateway/config/policies.yml @@ -1,4 +1,4 @@ -idprovider/Id provider example: +idprovider-folder/idprovider-policy: type: tag: subtag: diff --git a/idprovider-example/src/main/gateway/config/services.yml b/idprovider-example/src/main/gateway/config/services.yml index c3d8c2b..aa11074 100644 --- a/idprovider-example/src/main/gateway/config/services.yml +++ b/idprovider-example/src/main/gateway/config/services.yml @@ -1,6 +1,6 @@ -idprovider/Id provider example: +idprovider-folder/idprovider-service: url: "/idprovider" - policy: "idprovider/Id provider example" + policy: "idprovider-folder/idprovider-policy" httpMethods: - "DELETE" - "POST" diff --git a/idprovider-example/src/main/gateway/policy/idprovider/Id provider example.xml b/idprovider-example/src/main/gateway/policy/idprovider-folder/idprovider-policy.xml similarity index 100% rename from idprovider-example/src/main/gateway/policy/idprovider/Id provider example.xml rename to idprovider-example/src/main/gateway/policy/idprovider-folder/idprovider-policy.xml diff --git a/jdbcconnection-example/src/main/gateway/config/policies.yml b/jdbcconnection-example/src/main/gateway/config/policies.yml index 74261c2..0d76cfe 100644 --- a/jdbcconnection-example/src/main/gateway/config/policies.yml +++ b/jdbcconnection-example/src/main/gateway/config/policies.yml @@ -1,4 +1,4 @@ -jdbc/JDBC Connection Example: +jdbcconnection-folder/jdbcconnection-policy: type: tag: subtag: diff --git a/jdbcconnection-example/src/main/gateway/config/services.yml b/jdbcconnection-example/src/main/gateway/config/services.yml index 8036a7d..2ad99c1 100644 --- a/jdbcconnection-example/src/main/gateway/config/services.yml +++ b/jdbcconnection-example/src/main/gateway/config/services.yml @@ -1,6 +1,6 @@ -jdbc/JDBC Connection Example: +jdbcconnection-folder/jdbcconnection-service: url: "/jdbc" - policy: "jdbc/JDBC Connection Example" + policy: "jdbcconnection-folder/jdbcconnection-policy" httpMethods: - "DELETE" - "POST" diff --git a/jdbcconnection-example/src/main/gateway/policy/jdbc/JDBC Connection Example.xml b/jdbcconnection-example/src/main/gateway/policy/jdbcconnection-folder/jdbcconnection-policy.xml similarity index 100% rename from jdbcconnection-example/src/main/gateway/policy/jdbc/JDBC Connection Example.xml rename to jdbcconnection-example/src/main/gateway/policy/jdbcconnection-folder/jdbcconnection-policy.xml diff --git a/jms-example/src/main/gateway/config/policies.yml b/jms-example/src/main/gateway/config/policies.yml index 4b9764d..b0d95a5 100644 --- a/jms-example/src/main/gateway/config/policies.yml +++ b/jms-example/src/main/gateway/config/policies.yml @@ -1,4 +1,4 @@ -jms/JMS example: +jms-folder/jms-policy: type: tag: subtag: diff --git a/jms-example/src/main/gateway/config/services.yml b/jms-example/src/main/gateway/config/services.yml index 89ea7c9..44e7506 100644 --- a/jms-example/src/main/gateway/config/services.yml +++ b/jms-example/src/main/gateway/config/services.yml @@ -1,6 +1,6 @@ -jms/JMS example: +jms-folder/jms-service: url: "/jms" - policy: "jms/JMS example" + policy: "jms-folder/jms-policy" httpMethods: - "DELETE" - "POST" diff --git a/jms-example/src/main/gateway/policy/jms/JMS example.xml b/jms-example/src/main/gateway/policy/jms-folder/jms-policy.xml similarity index 100% rename from jms-example/src/main/gateway/policy/jms/JMS example.xml rename to jms-example/src/main/gateway/policy/jms-folder/jms-policy.xml diff --git a/mqnative-example/src/main/gateway/config/policies.yml b/mqnative-example/src/main/gateway/config/policies.yml index 4dcf5a3..008b70d 100644 --- a/mqnative-example/src/main/gateway/config/policies.yml +++ b/mqnative-example/src/main/gateway/config/policies.yml @@ -1,4 +1,4 @@ -mqnative/MQ Native Example: +mqnative-folder/mqnative-policy: type: tag: subtag: diff --git a/mqnative-example/src/main/gateway/config/services.yml b/mqnative-example/src/main/gateway/config/services.yml index 4051416..a51c369 100644 --- a/mqnative-example/src/main/gateway/config/services.yml +++ b/mqnative-example/src/main/gateway/config/services.yml @@ -1,6 +1,6 @@ -mqnative/MQ Native Example: +mqnative-folder/mqnative-service: url: "/mqnative" - policy: "mqnative/MQ Native Example" + policy: "mqnative-folder/mqnative-policy" httpMethods: - "DELETE" - "POST" diff --git a/mqnative-example/src/main/gateway/policy/mqnative/MQ Native Example.xml b/mqnative-example/src/main/gateway/policy/mqnative-folder/mqnative-policy.xml similarity index 100% rename from mqnative-example/src/main/gateway/policy/mqnative/MQ Native Example.xml rename to mqnative-example/src/main/gateway/policy/mqnative-folder/mqnative-policy.xml diff --git a/password-example/src/main/gateway/config/policies.yml b/password-example/src/main/gateway/config/policies.yml index e1a0f03..c9441e4 100644 --- a/password-example/src/main/gateway/config/policies.yml +++ b/password-example/src/main/gateway/config/policies.yml @@ -1,4 +1,4 @@ -storedpassword/Stored Password Example: +password-folder/password-policy: type: tag: subtag: diff --git a/password-example/src/main/gateway/config/services.yml b/password-example/src/main/gateway/config/services.yml index fd663c1..e178ddd 100644 --- a/password-example/src/main/gateway/config/services.yml +++ b/password-example/src/main/gateway/config/services.yml @@ -1,6 +1,6 @@ -storedpassword/Stored Password Example: +password-folder/password-service: url: "/password" - policy: "storedpassword/Stored Password Example" + policy: "password-folder/password-policy" httpMethods: - "DELETE" - "POST" diff --git a/password-example/src/main/gateway/policy/storedpassword/Stored Password Example.xml b/password-example/src/main/gateway/policy/password-folder/password-policy.xml similarity index 100% rename from password-example/src/main/gateway/policy/storedpassword/Stored Password Example.xml rename to password-example/src/main/gateway/policy/password-folder/password-policy.xml diff --git a/privatekey-example/src/main/gateway/config/policies.yml b/privatekey-example/src/main/gateway/config/policies.yml index 5e156d2..1eec25f 100644 --- a/privatekey-example/src/main/gateway/config/policies.yml +++ b/privatekey-example/src/main/gateway/config/policies.yml @@ -1,4 +1,4 @@ -privatekey/Private Key Example: +privatekey-folder/privatekey-policy: type: tag: subtag: diff --git a/privatekey-example/src/main/gateway/config/services.yml b/privatekey-example/src/main/gateway/config/services.yml index 7fb5e0a..5de8375 100644 --- a/privatekey-example/src/main/gateway/config/services.yml +++ b/privatekey-example/src/main/gateway/config/services.yml @@ -1,6 +1,6 @@ -privatekey/Private Key Example: +privatekey-folder/privatekey-service: url: "/privatekey" - policy: "privatekey/Private Key Example" + policy: "privatekey-folder/privatekey-policy" httpMethods: - "DELETE" - "POST" diff --git a/privatekey-example/src/main/gateway/policy/privatekey/Private Key Example.xml b/privatekey-example/src/main/gateway/policy/privatekey-folder/privatekey-policy.xml similarity index 100% rename from privatekey-example/src/main/gateway/policy/privatekey/Private Key Example.xml rename to privatekey-example/src/main/gateway/policy/privatekey-folder/privatekey-policy.xml diff --git a/service-annotations/src/main/gateway/config/services.yml b/service-annotations/src/main/gateway/config/services.yml index 5caef58..3474204 100644 --- a/service-annotations/src/main/gateway/config/services.yml +++ b/service-annotations/src/main/gateway/config/services.yml @@ -10,3 +10,5 @@ certificate/Certificate Example: wssProcessingEnabled: false annotations: - "@bundle" + - type : "@bundle-hints" + name: "service-annotations" From 567f99847b9aaf0c87022a5841c68a0e56d7695e Mon Sep 17 00:00:00 2001 From: root Date: Wed, 19 Aug 2020 04:29:45 +0000 Subject: [PATCH 23/33] Removed privateKey attribute from yml file --- privatekey-example/src/main/gateway/config/private-keys.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/privatekey-example/src/main/gateway/config/private-keys.yml b/privatekey-example/src/main/gateway/config/private-keys.yml index ee88372..0f75358 100644 --- a/privatekey-example/src/main/gateway/config/private-keys.yml +++ b/privatekey-example/src/main/gateway/config/private-keys.yml @@ -1,4 +1,3 @@ test: keystore: "Software DB" - algorithm: "RSA" - privateKeyFile: \ No newline at end of file + algorithm: "RSA" \ No newline at end of file From 038316ec9ce86d220bd853c178de1dbac9e3fa5d Mon Sep 17 00:00:00 2001 From: root Date: Wed, 19 Aug 2020 09:53:20 +0000 Subject: [PATCH 24/33] Updated private key --- .../main/gateway/config/privateKeys/test.p12 | Bin 4133 -> 2437 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/privatekey-example/src/main/gateway/config/privateKeys/test.p12 b/privatekey-example/src/main/gateway/config/privateKeys/test.p12 index 60a40330bc0bd59beadc189901cec7e2f5889dcf..01aabc187874c704fc64b02e299422bc58114c85 100644 GIT binary patch delta 2396 zcmV-i38VI-q@ZYO#|e0{Og>cS zk%AbkBe%+b@VIHxuTnDV+!|^bF;*CoG?CoQ9ULsfLP7_OJ^2G3_lB<2T76r8iFMtB zWZ^w97#vqPb>cE<-|;|3Y0~{|jLOw>V_U#c9wPC6+o!Ej0s~0bs~{?*%Ro>>Ko}J~ z2T9NJ^(&klC+$9?0zC9e3z3Lulj#(84Ztw+0-tPu#_&!oo8ot=k(8$KSR**ml%RL? zCQUxboSXDLs~4H3Oo-Qf2Gw8V<2bH=siNX`;ogTPMnaFJd%AOaN1FHfs7Hrt62tOf zcrOl-Z-Vv$jAAlqpcAumwTBq+Mf2@+>=K!gi%U1J*O}D>Y+nihmXziB+9i*9`$n9f z>>Toc0dy&}{uEza)Nr9ukgx&M;8o>|1&)Z)|A!M_2vA)YQcgp3i8#OvAmGQ^C?TO% zg3HX=yS{&1bac(ua4V`{*HeEN6=l7ltSM7}VdBNpbenES=aSWrOoc_ERKxW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# ziSmUdA6Zb^{w^0DJA!ZC@S?jSQo}`IOh*`eKro4`e2BMyJ}(#;cp?^~pk3vkdt666 z^k-3Ie2CC(~y(0oCd7W;@aHD$q z&4c2S9vJ+8vHXnIF>ESp(efi0s^5R4!OU4lhvU(zC%_-Szbs<&X9TDKeOv{z3ZM~P znzy}@IQ?d@29D@_xZiB`E!V4vnmdUde{zo;=^6wBh5Uo@^z-pM2Kx*I!|7+K1p4Wg zE_SKMlee75kfmmddaS{`GDO+5s#u)9KzzgtQ96fzg|rfY4okO8OVD|J^oT~)zXA1& z4r2@Wc2jd-(tDMVe5})2AZBq=g#PC}jI(0Z+Uq7X0kz6S1Yh)+!R-7Z)K9tWPK#A@ z!p)NOFlgW%`tZ5K;U|R=k62V-9)WdCcPEkRHUvs1gQXIRV@r?L$MU)DGQwLVF-sye zxd8%bsW2zD-{!dU1uMm7M`vF+KXA^ZMPHA0{`6bP0P0@p6?ElbF*2TRFg`FLFbM_) zD-Ht!8U+9Z6e~8@VW0)LL;EkYasM|%N2o1jqXZN;8|i(?m&iH6@QroD& Date: Wed, 16 Sep 2020 06:59:03 +0000 Subject: [PATCH 25/33] updated private key configuration --- privatekey-example/build.gradle | 3 ++- privatekey-example/src/main/gateway/config/private-keys.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/privatekey-example/build.gradle b/privatekey-example/build.gradle index 4a15eb8..9a9d01f 100644 --- a/privatekey-example/build.gradle +++ b/privatekey-example/build.gradle @@ -25,6 +25,7 @@ repositories { EnvironmentConfig{ name="privateKeyExample" map=[ - "PRIVATE_KEY.test": file("./src/main/gateway/config/private-keys.yml") + "PRIVATE_KEY.test": file("./src/main/gateway/config/private-keys.yml"), + "PRIVATE_KEY_FILE.test.p12": file("./src/main/gateway/config/privateKeys/test.p12") ] } diff --git a/privatekey-example/src/main/gateway/config/private-keys.yml b/privatekey-example/src/main/gateway/config/private-keys.yml index 0f75358..96b927f 100644 --- a/privatekey-example/src/main/gateway/config/private-keys.yml +++ b/privatekey-example/src/main/gateway/config/private-keys.yml @@ -1,3 +1,4 @@ test: keystore: "Software DB" - algorithm: "RSA" \ No newline at end of file + algorithm: "RSA" + keyPassword: "7layer" \ No newline at end of file From c469e32faa56a408358d4c0696ec2b542eef5940 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 24 Sep 2020 10:34:14 +0000 Subject: [PATCH 26/33] Renamed gateway developer plugin to gateway-policy-plugin --- build.gradle | 4 ++-- cassandra-example/build.gradle | 4 ++-- clusterproperty-example/build.gradle | 4 ++-- encass-annotations/build.gradle | 4 ++-- http2client-example/build.gradle | 4 ++-- idprovider-example/build.gradle | 4 ++-- jdbcconnection-example/build.gradle | 4 ++-- jms-example/build.gradle | 4 ++-- mqnative-example/build.gradle | 4 ++-- password-example/build.gradle | 4 ++-- privatekey-example/build.gradle | 4 ++-- service-annotations/build.gradle | 4 ++-- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/build.gradle b/build.gradle index ef8e287..e084a0d 100644 --- a/build.gradle +++ b/build.gradle @@ -13,14 +13,14 @@ buildscript { } dependencies { // "+" will always pull the latest available - classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" classpath "com.ca.apim.gateway:gateway-import-plugin:0.10.+" } } subprojects { - apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' + apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' if (!project.name.equals('deployment')) { apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' GatewayConnection { diff --git a/cassandra-example/build.gradle b/cassandra-example/build.gradle index 2a351b7..39970cc 100644 --- a/cassandra-example/build.gradle +++ b/cassandra-example/build.gradle @@ -7,13 +7,13 @@ buildscript { dependencies { classpath "com.ca.apim.gateway:config-builder:0.10.+" classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" } } apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "cassandraConnection" version = '1.0.0' repositories { diff --git a/clusterproperty-example/build.gradle b/clusterproperty-example/build.gradle index 6468d82..f9c8761 100644 --- a/clusterproperty-example/build.gradle +++ b/clusterproperty-example/build.gradle @@ -7,13 +7,13 @@ buildscript { dependencies { classpath "com.ca.apim.gateway:config-builder:0.10.+" classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" } } apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "clusterproperty" version = '1.0.0' repositories { diff --git a/encass-annotations/build.gradle b/encass-annotations/build.gradle index aff3b27..76a86df 100644 --- a/encass-annotations/build.gradle +++ b/encass-annotations/build.gradle @@ -7,13 +7,13 @@ buildscript { dependencies { classpath "com.ca.apim.gateway:config-builder:0.10.+" classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" } } apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "encassExample" version = '1.0.0' repositories { diff --git a/http2client-example/build.gradle b/http2client-example/build.gradle index 081d70c..a4b5a71 100644 --- a/http2client-example/build.gradle +++ b/http2client-example/build.gradle @@ -7,13 +7,13 @@ buildscript { dependencies { classpath "com.ca.apim.gateway:config-builder:0.10.+" classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" } } apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "http2client" version = '1.0.0' repositories { diff --git a/idprovider-example/build.gradle b/idprovider-example/build.gradle index 8555102..635d267 100644 --- a/idprovider-example/build.gradle +++ b/idprovider-example/build.gradle @@ -7,13 +7,13 @@ buildscript { dependencies { classpath "com.ca.apim.gateway:config-builder:0.10.+" classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" } } apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "idprovider" version = '1.0.0' repositories { diff --git a/jdbcconnection-example/build.gradle b/jdbcconnection-example/build.gradle index 5b90528..ff143e3 100644 --- a/jdbcconnection-example/build.gradle +++ b/jdbcconnection-example/build.gradle @@ -7,13 +7,13 @@ buildscript { dependencies { classpath "com.ca.apim.gateway:config-builder:0.10.+" classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" } } apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "jdbcconnection" version = '1.0.0' repositories { diff --git a/jms-example/build.gradle b/jms-example/build.gradle index 1a66541..a896448 100644 --- a/jms-example/build.gradle +++ b/jms-example/build.gradle @@ -7,13 +7,13 @@ buildscript { dependencies { classpath "com.ca.apim.gateway:config-builder:0.10.+" classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" } } apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "jmsconnection" version = '1.0.0' repositories { diff --git a/mqnative-example/build.gradle b/mqnative-example/build.gradle index bb11270..24beeb0 100644 --- a/mqnative-example/build.gradle +++ b/mqnative-example/build.gradle @@ -7,13 +7,13 @@ buildscript { dependencies { classpath "com.ca.apim.gateway:config-builder:0.10.+" classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" } } apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "mqnative" version = '1.0.0' repositories { diff --git a/password-example/build.gradle b/password-example/build.gradle index 1483a7c..1b33dc5 100644 --- a/password-example/build.gradle +++ b/password-example/build.gradle @@ -7,13 +7,13 @@ buildscript { dependencies { classpath "com.ca.apim.gateway:config-builder:0.10.+" classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" } } apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "storedpassword" version = '1.0.0' repositories { diff --git a/privatekey-example/build.gradle b/privatekey-example/build.gradle index 9a9d01f..6a815c9 100644 --- a/privatekey-example/build.gradle +++ b/privatekey-example/build.gradle @@ -7,13 +7,13 @@ buildscript { dependencies { classpath "com.ca.apim.gateway:config-builder:0.10.+" classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" } } apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "privatekey" version = '1.0.0' repositories { diff --git a/service-annotations/build.gradle b/service-annotations/build.gradle index 17e8bd7..ae9cfcc 100644 --- a/service-annotations/build.gradle +++ b/service-annotations/build.gradle @@ -7,13 +7,13 @@ buildscript { dependencies { classpath "com.ca.apim.gateway:config-builder:0.10.+" classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-developer-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" } } apply plugin: 'com.ca.apim.gateway.gateway-export-plugin' -apply plugin: 'com.ca.apim.gateway.gateway-developer-plugin' +apply plugin: 'com.ca.apim.gateway.gateway-policy-plugin' group = "service" version = '1.0.0' repositories { From fa689c545ce4a37ad85b20914c816f3297803203 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 28 Sep 2020 05:40:29 +0000 Subject: [PATCH 27/33] Updated plugin version --- build.gradle | 6 +++--- cassandra-example/build.gradle | 8 ++++---- clusterproperty-example/build.gradle | 8 ++++---- encass-annotations/build.gradle | 8 ++++---- http2client-example/build.gradle | 8 ++++---- idprovider-example/build.gradle | 8 ++++---- jdbcconnection-example/build.gradle | 8 ++++---- jms-example/build.gradle | 8 ++++---- mqnative-example/build.gradle | 8 ++++---- password-example/build.gradle | 8 ++++---- privatekey-example/build.gradle | 8 ++++---- service-annotations/build.gradle | 8 ++++---- 12 files changed, 47 insertions(+), 47 deletions(-) diff --git a/build.gradle b/build.gradle index e084a0d..c4525a6 100644 --- a/build.gradle +++ b/build.gradle @@ -13,9 +13,9 @@ buildscript { } dependencies { // "+" will always pull the latest available - classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" - classpath "com.ca.apim.gateway:gateway-import-plugin:0.10.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" + classpath "com.ca.apim.gateway:gateway-import-plugin:1.0.+" } } diff --git a/cassandra-example/build.gradle b/cassandra-example/build.gradle index 39970cc..92a3b96 100644 --- a/cassandra-example/build.gradle +++ b/cassandra-example/build.gradle @@ -5,10 +5,10 @@ buildscript { jcenter() } dependencies { - classpath "com.ca.apim.gateway:config-builder:0.10.+" - classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + classpath "com.ca.apim.gateway:config-builder:1.0.+" + classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" } } diff --git a/clusterproperty-example/build.gradle b/clusterproperty-example/build.gradle index f9c8761..d53efe2 100644 --- a/clusterproperty-example/build.gradle +++ b/clusterproperty-example/build.gradle @@ -5,10 +5,10 @@ buildscript { jcenter() } dependencies { - classpath "com.ca.apim.gateway:config-builder:0.10.+" - classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + classpath "com.ca.apim.gateway:config-builder:1.0.+" + classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" } } diff --git a/encass-annotations/build.gradle b/encass-annotations/build.gradle index 76a86df..db06207 100644 --- a/encass-annotations/build.gradle +++ b/encass-annotations/build.gradle @@ -5,10 +5,10 @@ buildscript { jcenter() } dependencies { - classpath "com.ca.apim.gateway:config-builder:0.10.+" - classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + classpath "com.ca.apim.gateway:config-builder:1.0.+" + classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" } } diff --git a/http2client-example/build.gradle b/http2client-example/build.gradle index a4b5a71..418a1b3 100644 --- a/http2client-example/build.gradle +++ b/http2client-example/build.gradle @@ -5,10 +5,10 @@ buildscript { jcenter() } dependencies { - classpath "com.ca.apim.gateway:config-builder:0.10.+" - classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + classpath "com.ca.apim.gateway:config-builder:1.0.+" + classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" } } diff --git a/idprovider-example/build.gradle b/idprovider-example/build.gradle index 635d267..ef80a3d 100644 --- a/idprovider-example/build.gradle +++ b/idprovider-example/build.gradle @@ -5,10 +5,10 @@ buildscript { jcenter() } dependencies { - classpath "com.ca.apim.gateway:config-builder:0.10.+" - classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + classpath "com.ca.apim.gateway:config-builder:1.0.+" + classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" } } diff --git a/jdbcconnection-example/build.gradle b/jdbcconnection-example/build.gradle index ff143e3..a58728f 100644 --- a/jdbcconnection-example/build.gradle +++ b/jdbcconnection-example/build.gradle @@ -5,10 +5,10 @@ buildscript { jcenter() } dependencies { - classpath "com.ca.apim.gateway:config-builder:0.10.+" - classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + classpath "com.ca.apim.gateway:config-builder:1.0.+" + classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" } } diff --git a/jms-example/build.gradle b/jms-example/build.gradle index a896448..de0a00d 100644 --- a/jms-example/build.gradle +++ b/jms-example/build.gradle @@ -5,10 +5,10 @@ buildscript { jcenter() } dependencies { - classpath "com.ca.apim.gateway:config-builder:0.10.+" - classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + classpath "com.ca.apim.gateway:config-builder:1.0.+" + classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" } } diff --git a/mqnative-example/build.gradle b/mqnative-example/build.gradle index 24beeb0..e82c4d9 100644 --- a/mqnative-example/build.gradle +++ b/mqnative-example/build.gradle @@ -5,10 +5,10 @@ buildscript { jcenter() } dependencies { - classpath "com.ca.apim.gateway:config-builder:0.10.+" - classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + classpath "com.ca.apim.gateway:config-builder:1.0.+" + classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" } } diff --git a/password-example/build.gradle b/password-example/build.gradle index 1b33dc5..da46b78 100644 --- a/password-example/build.gradle +++ b/password-example/build.gradle @@ -5,10 +5,10 @@ buildscript { jcenter() } dependencies { - classpath "com.ca.apim.gateway:config-builder:0.10.+" - classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + classpath "com.ca.apim.gateway:config-builder:1.0.+" + classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" } } diff --git a/privatekey-example/build.gradle b/privatekey-example/build.gradle index 6a815c9..4aabd1f 100644 --- a/privatekey-example/build.gradle +++ b/privatekey-example/build.gradle @@ -5,10 +5,10 @@ buildscript { jcenter() } dependencies { - classpath "com.ca.apim.gateway:config-builder:0.10.+" - classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + classpath "com.ca.apim.gateway:config-builder:1.0.+" + classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" } } diff --git a/service-annotations/build.gradle b/service-annotations/build.gradle index ae9cfcc..e803b22 100644 --- a/service-annotations/build.gradle +++ b/service-annotations/build.gradle @@ -5,10 +5,10 @@ buildscript { jcenter() } dependencies { - classpath "com.ca.apim.gateway:config-builder:0.10.+" - classpath "com.ca.apim.gateway:environment-creator-application:0.10.+" - classpath "com.ca.apim.gateway:gateway-policy-plugin:0.10.+" - classpath "com.ca.apim.gateway:gateway-export-plugin:0.10.+" + classpath "com.ca.apim.gateway:config-builder:1.0.+" + classpath "com.ca.apim.gateway:environment-creator-application:1.0.+" + classpath "com.ca.apim.gateway:gateway-policy-plugin:1.0.+" + classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.+" } } From 389bd14debbe0336712a6efeb98f52870eaf8753 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 29 Sep 2020 06:30:48 +0000 Subject: [PATCH 28/33] Removed gw7 reference --- docker-compose.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3c58119..9e8ac24 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,6 @@ services: - "8000:8000" volumes: - /opt/SecureSpan/Gateway/node/default/etc/bootstrap/services/restman - - ./deployment/build/gateway/deployment-0.8.0.gw7:/opt/docker/rc.d/deployment.gw7 secrets: - source: license target: /opt/SecureSpan/Gateway/node/default/etc/bootstrap/license/license.xml From f33a9de1413634ef82e24f39af4c3b59fa816b29 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 29 Sep 2020 07:12:57 +0000 Subject: [PATCH 29/33] Updated docker compose with bundles --- build.gradle | 2 +- docker-compose.yml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index c4525a6..cb72e8f 100644 --- a/build.gradle +++ b/build.gradle @@ -29,7 +29,7 @@ subprojects { } group 'com.ca.apim.gateway' - version = '0.10.2' + version = '1.0.0' repositories { mavenLocal() diff --git a/docker-compose.yml b/docker-compose.yml index 9e8ac24..d4561ba 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,6 +13,13 @@ services: - "8000:8000" volumes: - /opt/SecureSpan/Gateway/node/default/etc/bootstrap/services/restman + - ./common-services/build/gateway/bundle/common-services-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/common-services-1.0.0-full.install.bundle + - ./business-integrations/build/gateway/bundle/business-integrations-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/business-integrations-1.0.0-full.install.bundle + - ./consumer-solutions/build/gateway/bundle/consumer-solutions-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/consumer-solutions-1.0.0-full.install.bundle + #- ./audit/build/gateway/bundle/audit-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/audit-1.0.0-full.install.bundle + - ./global/build/gateway/bundle/global-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/global-1.0.0-full.install.bundle + - ./routings/build/gateway/bundle/routings-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/routings-1.0.0-full.install.bundle + - ./service-metrics/build/gateway/bundle/service-metrics-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/service-metrics-1.0.0-full.install.bundle secrets: - source: license target: /opt/SecureSpan/Gateway/node/default/etc/bootstrap/license/license.xml From a45d09f006331abe9b45784afda0f0041d8639d1 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 29 Sep 2020 07:38:40 +0000 Subject: [PATCH 30/33] Added entity bundles in docker compose file --- docker-compose.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index d4561ba..b5c152c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,10 +16,17 @@ services: - ./common-services/build/gateway/bundle/common-services-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/common-services-1.0.0-full.install.bundle - ./business-integrations/build/gateway/bundle/business-integrations-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/business-integrations-1.0.0-full.install.bundle - ./consumer-solutions/build/gateway/bundle/consumer-solutions-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/consumer-solutions-1.0.0-full.install.bundle - #- ./audit/build/gateway/bundle/audit-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/audit-1.0.0-full.install.bundle - ./global/build/gateway/bundle/global-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/global-1.0.0-full.install.bundle - ./routings/build/gateway/bundle/routings-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/routings-1.0.0-full.install.bundle - ./service-metrics/build/gateway/bundle/service-metrics-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/service-metrics-1.0.0-full.install.bundle + - ./cassandra-example/build/gateway/bundle/cassandra-example-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/cassandra-example-1.0.0-full.install.bundle + - ./clusterproperty-example/build/gateway/bundle/clusterproperty-example-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/clusterproperty-example-1.0.0-full.install.bundle + - ./encass-annotations/build/gateway/bundle/encass-annotations-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/encass-annotations-1.0.0-full.install.bundle + - ./idprovider-example/build/gateway/bundle/idprovider-example-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/idprovider-example-1.0.0-full.install.bundle + - ./jms-example/build/gateway/bundle/jms-example-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/jms-example-1.0.0-full.install.bundle + - ./mqnative-example/build/gateway/bundle/mqnative-example-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/mqnative-example-1.0.0-full.install.bundle + - ./password-example/build/gateway/bundle/password-example-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/password-example-1.0.0-full.install.bundle + - ./service-annotations/build/gateway/bundle/service-annotations-1.0.0-full.install.bundle:/opt/SecureSpan/Gateway/node/default/etc/bootstrap/bundle/service-annotations-1.0.0-full.install.bundle secrets: - source: license target: /opt/SecureSpan/Gateway/node/default/etc/bootstrap/license/license.xml From 9ab377e415003c46ef8a777986c21be8cb418d3f Mon Sep 17 00:00:00 2001 From: malathibondili <69790579+malathibondili@users.noreply.github.com> Date: Thu, 1 Oct 2020 14:42:42 +0530 Subject: [PATCH 31/33] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 968c5ab..e059ec5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ +# About +This is an example repository that demonstrates how to use [API Gateway Policy Plugin](https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/layer7-api-management/gateway-policy-plugin/1-0.html) + + From a2cac51d2ca2e6127858a8b7dfffdeccae6ef23f Mon Sep 17 00:00:00 2001 From: malathibondili <69790579+malathibondili@users.noreply.github.com> Date: Thu, 1 Oct 2020 14:43:10 +0530 Subject: [PATCH 32/33] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e059ec5..83734de 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # About -This is an example repository that demonstrates how to use [API Gateway Policy Plugin](https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/layer7-api-management/gateway-policy-plugin/1-0.html) +This is an example repository that demonstrates how to use [API Gateway Policy Plugin.](https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/layer7-api-management/gateway-policy-plugin/1-0.html) +Repo has been moved. Please go to https://github.com/Layer7-Community/Utilities/tree/main/policy-plugin-examples