forked from wso2/product-microgateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ShanJayaweera/jbal2
Jbal2
- Loading branch information
Showing
50 changed files
with
637 additions
and
594 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
components/micro-gateway-cli/src/main/resources/templates/useAPIProdEp.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{{#if endpointConfig.prodEndpoints.endpointListEtcdEnabled}} | ||
{{#endpointConfig.prodEndpoints}}{{>endpointReinit}}{{/endpointConfig.prodEndpoints}} | ||
if (!reinitFailed) { | ||
clientResponse = {{qualifiedServiceName}}_prod->forward(urlPostfix, req); | ||
clientResponse = {{qualifiedServiceName}}_prod->forward(urlPostfix, <@untainted>req); | ||
} | ||
{{else}} | ||
clientResponse = {{qualifiedServiceName}}_prod->forward(urlPostfix, req); | ||
clientResponse = {{qualifiedServiceName}}_prod->forward(urlPostfix, <@untainted>req); | ||
{{/if}} | ||
invocationContext.attributes["destination"] = "{{endpointConfig.prodEndpoints.endpoints.0.endpointUrl}}"; |
4 changes: 2 additions & 2 deletions
4
components/micro-gateway-cli/src/main/resources/templates/useApiSandEp.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{{#if endpointConfig.sandEndpoints.endpointListEtcdEnabled}} | ||
{{#endpointConfig.sandEndpoints}}{{>endpointReinit}}{{/endpointConfig.sandEndpoints}} | ||
if (!reinitFailed) { | ||
clientResponse = {{qualifiedServiceName}}_sand->forward(urlPostfix, req); | ||
clientResponse = {{qualifiedServiceName}}_sand->forward(urlPostfix, <@untainted>req); | ||
} | ||
{{else}} | ||
clientResponse = {{qualifiedServiceName}}_sand->forward(urlPostfix, req); | ||
clientResponse = {{qualifiedServiceName}}_sand->forward(urlPostfix, <@untainted>req); | ||
{{/if}} | ||
invocationContext.attributes["destination"] = "{{endpointConfig.sandEndpoints.endpoints.0.endpointUrl}}"; |
4 changes: 2 additions & 2 deletions
4
components/micro-gateway-cli/src/main/resources/templates/useResourceProdEp.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{{#if epConfig.prodEndpoints.endpointListEtcdEnabled}} | ||
{{#epConfig.prodEndpoints}}{{>endpointReinit}}{{/epConfig.prodEndpoints}} | ||
if (!reinitFailed) { | ||
clientResponse = {{operationId}}_prod->forward(urlPostfix, req); | ||
clientResponse = {{operationId}}_prod->forward(urlPostfix, <@untainted>req); | ||
} | ||
{{else}} | ||
clientResponse = {{operationId}}_prod->forward(urlPostfix, req); | ||
clientResponse = {{operationId}}_prod->forward(urlPostfix, <@untainted>req); | ||
{{/if}} | ||
invocationContext.attributes["destination"] = "{{epConfig.prodEndpoints.endpoints.0.endpointUrl}}"; |
4 changes: 2 additions & 2 deletions
4
components/micro-gateway-cli/src/main/resources/templates/useResourceSandEp.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{{#if epConfig.sandEndpoints.endpointListEtcdEnabled}} | ||
{{#epConfig.sandEndpoints}}{{>endpointReinit}}{{/epConfig.sandEndpoints}} | ||
if (!reinitFailed) { | ||
clientResponse = {{operationId}}_sand->forward(urlPostfix, req); | ||
clientResponse = {{operationId}}_sand->forward(urlPostfix, <@untainted>req); | ||
} | ||
{{else}} | ||
clientResponse = {{operationId}}_sand->forward(urlPostfix, req); | ||
clientResponse = {{operationId}}_sand->forward(urlPostfix, <@untainted>req); | ||
{{/if}} | ||
invocationContext.attributes["destination"] = "{{epConfig.sandEndpoints.endpoints.0.endpointUrl}}"; |
58 changes: 58 additions & 0 deletions
58
...s/micro-gateway-core/src/main/ballerina/src/gateway/constants/observability_constants.bal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | ||
// | ||
// WSO2 Inc. licenses this file to you under the Apache License, | ||
// Version 2.0 (the "License"); you may not use this file except | ||
// in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
public const string PRE_AUTHN_FILTER_REQUEST = "Pre_Authen_Filter_Request"; | ||
public const string BASICAUTH_PROVIDER = "BasicAuth_Provider"; | ||
public const string HASHING_MECHANISM = "Hashing_Mechanism"; | ||
public const string BALLERINA_INBOUND_BASICAUTH = "Ballerina_Inbound_BasicAuth"; | ||
|
||
public const string JWT_AUTHENHANDLER_PROCESS = "Jwt_AuthenHandler_Process"; | ||
public const string JWT_PROVIDER_AUTHENTICATE = "JWT_Provider_Authenticate"; | ||
public const string JWT_CACHE = "Jwt_Cache"; | ||
public const string KEY_VALIDATION_HANDLER_PROCESS = "KeyValidation_Handler_Process"; | ||
public const string OAUTH_VALIDATION_PROVIDER_CACHE_CHECK = "OAuth_ValidationProvider_CacheCheck"; | ||
public const string OAUTH_AUTHPROVIDER_INVOKEKEYVALIDATION = "OAuth_AuthProvider_InvokeKeyValidation"; | ||
|
||
public const string ANALY_FILTER_REQUEST = "Analytics_Filter_Request"; | ||
public const string ANALY_FILTER_RESPONSE = "Analytics_Filter_Response"; | ||
|
||
public const string AUTHZ_FILTER_REQUEST = "Authz_Filter_Request"; | ||
public const string AUTHZ_FILTER_RESPONSE = "Authz_Filter_Response"; | ||
public const string BALLERINA_AUTHZ_FILTER = "Ballerina_authzFilter"; | ||
|
||
public const string MUTUALSSL_FILTER_PROCESS = "MutualSSL_Filter_Process"; | ||
|
||
public const string SUBSCRIPTION_FILTER_REQUEST = "Subscription_FilterRequest"; | ||
|
||
public const string THROTTLE_FILTER_REQUEST = "Throttle_Filter_Request"; | ||
|
||
public const string REQUEST_METHOD = "REQUEST_METHOD"; | ||
public const string REQUEST_RAWPATH = "REQUEST_RAWPATH"; | ||
|
||
// public const string VALIDATION_FILTER_REQUEST = "Validation_Filter_Request"; | ||
// public const string VALIDATION_FILTER_RESPONSE = "Validation_Filter_Response"; | ||
// public const string GETTTING_PAYLOAD = "Getting_Payload"; | ||
|
||
public const string FIL_AUTHENTICATION = "Authentiation"; | ||
public const string FIL_ANALYTICS = "Analytics"; | ||
public const string FIL_THROTTLING = "Throttling"; | ||
public const string PER_REQ_DURATION = "Per_Request_Duration"; | ||
public const string REQ_FLTER_DURATION = "Request_Filter_Duration"; | ||
public const string REQ_DURATION_TOTAL = "Request_Duration_Total"; | ||
public const string FILTER_TOTAL_DURATION = "Filter_Total_Duration"; | ||
public const string ANALYTIC_GAUGE_TAGS = "ANALYTIC_GAUGE_TAGS"; | ||
public const string ANALYTIC_REQUEST_TIME = "ANALYTIC_REQUEST_TIME"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.