Skip to content

Instantly share code, notes, and snippets.

@hodrigohamalho
Created March 31, 2020 20:50
Show Gist options
  • Save hodrigohamalho/44c0902337c7f44323607e63e257669a to your computer and use it in GitHub Desktop.
Save hodrigohamalho/44c0902337c7f44323607e63e257669a to your computer and use it in GitHub Desktop.
3scale-liquid-debug
{
"host": "api-3scale-apicast-staging.apps.latam-559c.open.redhat.com",
"next": {
"current": {
"configuration": {
"services": {
"hasht": {},
"node2key": {},
"key2node": {}
},
"cache": {
"hasht": {},
"node2key": {},
"key2node": {}
}
}
},
"next": {
"current": {
"already_seen": "ALREADY SEEN - NOT CALCULATING AGAIN TO AVOID CIRCULAR REFS"
},
"next": {
"current": {
"already_seen": "ALREADY SEEN - NOT CALCULATING AGAIN TO AVOID CIRCULAR REFS"
},
"next": {
"current": {
"already_seen": "ALREADY SEEN - NOT CALCULATING AGAIN TO AVOID CIRCULAR REFS"
},
"next": {
"already_seen": "ALREADY SEEN - NOT CALCULATING AGAIN TO AVOID CIRCULAR REFS"
}
}
}
}
},
"http_method": "GET",
"server_addr": "10.1.2.52",
"remote_addr": "10.1.6.1",
"already_seen": "ALREADY SEEN - NOT CALCULATING AGAIN TO AVOID CIRCULAR REFS",
"uri": "/",
"current": {
"host": "api-3scale-apicast-staging.apps.latam-559c.open.redhat.com",
"original_request": {
"current": {
"host": "api-3scale-apicast-staging.apps.latam-559c.open.redhat.com",
"query": "user_key=1a9e63ccf40aa635a9d56205021acd5c",
"path": "/",
"headers": {
"host": "api-3scale-apicast-staging.apps.latam-559c.open.redhat.com",
"x-forwarded-host": "api-3scale-apicast-staging.apps.latam-559c.open.redhat.com",
"x-forwarded-for": "179.214.5.19",
"user-agent": "curl/7.64.1",
"forwarded": "for=179.214.5.19;host=api-3scale-apicast-staging.apps.latam-559c.open.redhat.com;proto=https;proto-version=",
"x-forwarded-port": "443",
"x-forwarded-proto": "https",
"accept": "*/*"
},
"uri": "/",
"server_addr": "10.1.2.52"
},
"next": {
"already_seen": "ALREADY SEEN - NOT CALCULATING AGAIN TO AVOID CIRCULAR REFS"
}
},
"proxy": {
"configuration": {
"already_seen": "ALREADY SEEN - NOT CALCULATING AGAIN TO AVOID CIRCULAR REFS"
},
"extra_params_backend_authrep": {},
"cache_handler": {
"handler": "strict"
},
"cache": {}
},
"usage": {
"deltas": {
"hits": 1
},
"metrics": [
"hits"
]
},
"service": {
"oidc": {},
"no_match_status": 404,
"backend": {
"endpoint": "http://backend-listener:3000",
"host": "backend-listener"
},
"limits_exceeded_headers": "text/plain; charset=us-ascii",
"policy_chain": {
"1": {},
"2": {
"config": {
"request": [
{
"op": "set",
"value": "ramalho-app",
"header": "application-name",
"value_type": "plain",
"template_string": {
"string": "ramalho-app"
}
},
{
"op": "set",
"value": "{{ application.name }}",
"header": "application-name-liquid",
"value_type": "liquid",
"template_string": {
"parser": {
"doc": [
{
"value": {
"field": {
"token": {
"value": "name",
"token_type": "ID"
},
"value": "name"
},
"var": {
"field": {
"token": {
"value": "application",
"token_type": "ID"
},
"value": "application"
}
}
}
}
]
}
}
}
],
"response": {}
}
},
"3": {},
"config": {
"current": {},
"next": {
"current": {
"already_seen": "ALREADY SEEN - NOT CALCULATING AGAIN TO AVOID CIRCULAR REFS"
},
"next": {
"current": {
"already_seen": "ALREADY SEEN - NOT CALCULATING AGAIN TO AVOID CIRCULAR REFS"
},
"next": {
"already_seen": "ALREADY SEEN - NOT CALCULATING AGAIN TO AVOID CIRCULAR REFS"
}
}
}
}
},
"no_match_headers": "text/plain; charset=us-ascii",
"limits_exceeded_status": 429,
"serializable": {
"state": "incomplete",
"id": 2,
"draft_name": "",
"default_application_plan_id": 7,
"buyer_plan_change_permission": "request",
"support_email": "customer-admin@example.com",
"updated_at": "2020-03-31T20:46:41Z",
"default_service_plan_id": 5,
"tenant_id": 2,
"created_at": "2020-03-31T18:06:06Z",
"name": "API",
"backend_authentication_value": "02f191847770d1d54ab6bba4b5496903edb0fd9d9503f032092071501784e221",
"proxy": {
"error_headers_no_match": "text/plain; charset=us-ascii",
"error_no_match": "No Mapping Rule matched",
"backend": {
"endpoint": "https://backend-3scale.apps.latam-559c.open.redhat.com",
"host": "backend-3scale.apps.latam-559c.open.redhat.com"
},
"authentication_method": "1",
"error_status_limits_exceeded": 429,
"production_domain": "api-3scale-apicast-production.apps.latam-559c.open.redhat.com",
"error_headers_limits_exceeded": "text/plain; charset=us-ascii",
"created_at": "2020-03-31T18:06:06Z",
"hostname_rewrite_for_sandbox": "echo-api.3scale.net",
"error_headers_auth_failed": "text/plain; charset=us-ascii",
"endpoint": "https://api-3scale-apicast-production.apps.latam-559c.open.redhat.com:443",
"error_headers_auth_missing": "text/plain; charset=us-ascii",
"error_auth_failed": "Authentication failed",
"error_status_auth_failed": 403,
"lock_version": 2,
"id": 2,
"sandbox_endpoint": "https://api-3scale-apicast-staging.apps.latam-559c.open.redhat.com:443",
"staging_domain": "api-3scale-apicast-staging.apps.latam-559c.open.redhat.com",
"service_backend_version": "1",
"updated_at": "2020-03-31T20:46:41Z",
"error_limits_exceeded": "Usage limit exceeded",
"policy_chain": [
{
"name": "liquid_context_debug",
"configuration": {},
"version": "builtin"
},
{
"name": "headers",
"configuration": {
"already_seen": "ALREADY SEEN - NOT CALCULATING AGAIN TO AVOID CIRCULAR REFS"
},
"version": "builtin"
},
{
"name": "apicast",
"configuration": {},
"version": "builtin"
}
],
"tenant_id": 2,
"proxy_rules": [
{
"tenant_id": 2,
"created_at": "2020-03-31T18:06:06Z",
"proxy_id": 2,
"pattern": "/",
"http_method": "GET",
"delta": 1,
"owner_id": 2,
"owner_type": "Proxy",
"updated_at": "2020-03-31T18:06:06Z",
"id": 2,
"position": 1,
"metric_id": 6,
"metric_system_name": "hits"
}
],
"service_id": 2,
"endpoint_port": 443,
"hosts": [
"api-3scale-apicast-production.apps.latam-559c.open.redhat.com",
"api-3scale-apicast-staging.apps.latam-559c.open.redhat.com"
],
"api_backend": "https://echo-api.3scale.net:443",
"auth_app_key": "app_key",
"oidc_issuer_type": "keycloak",
"credentials_location": "query",
"error_status_no_match": 404,
"error_status_auth_missing": 403,
"auth_app_id": "app_id",
"auth_user_key": "user_key",
"api_test_path": "/",
"error_auth_missing": "Authentication parameters missing",
"secret_token": "Shared_secret_sent_from_proxy_to_API_backend_08258524ad91b8b7"
},
"backend_authentication_type": "service_token",
"deployment_option": "hosted",
"account_id": 2,
"backend_version": "1",
"system_name": "api",
"act_as_product": 0
},
"error_limits_exceeded": "Usage limit exceeded",
"backend_authentication": {
"value": "02f191847770d1d54ab6bba4b5496903edb0fd9d9503f032092071501784e221",
"type": "service_token"
},
"auth_failed_headers": "text/plain; charset=us-ascii",
"backend_version": "1",
"id": "2",
"error_no_match": "No Mapping Rule matched",
"hosts": {
"already_seen": "ALREADY SEEN - NOT CALCULATING AGAIN TO AVOID CIRCULAR REFS"
},
"api_backend": "https://echo-api.3scale.net:443",
"authentication_method": "1",
"rules": [
{
"pattern": "/",
"method": "GET",
"regexpified_pattern": "/",
"system_name": "hits",
"delta": 1
}
],
"auth_failed_status": 403,
"error_auth_missing": "Authentication parameters missing",
"error_auth_failed": "Authentication failed",
"auth_missing_status": 403,
"auth_missing_headers": "text/plain; charset=us-ascii",
"credentials": {
"user_key": "user_key",
"app_id": "app_id",
"location": "query",
"app_key": "app_key"
},
"system_name": "api",
"secret_token": "Shared_secret_sent_from_proxy_to_API_backend_08258524ad91b8b7"
},
"credentials": {
"user_key": "1a9e63ccf40aa635a9d56205021acd5c"
},
"configuration": {
"cache_size": 1000,
"cache": {
"hasht": {
"api-3scale-apicast-production.apps.latam-559c.open.redhat.com": [
{
"already_seen": "ALREADY SEEN - NOT CALCULATING AGAIN TO AVOID CIRCULAR REFS"
}
],
"api-3scale-apicast-staging.apps.latam-559c.open.redhat.com": [
{
"already_seen": "ALREADY SEEN - NOT CALCULATING AGAIN TO AVOID CIRCULAR REFS"
}
]
},
"node2key": {
"1.4005099005678e+14": "api-3scale-apicast-production.apps.latam-559c.open.redhat.com",
"1.4005099005681e+14": "api-3scale-apicast-staging.apps.latam-559c.open.redhat.com"
},
"key2node": {}
},
"services": {
"hasht": {
"2": {
"already_seen": "ALREADY SEEN - NOT CALCULATING AGAIN TO AVOID CIRCULAR REFS"
}
},
"node2key": {
"1.4005098978744e+14": "2"
},
"key2node": {}
}
},
"policy_chain": {
"already_seen": "ALREADY SEEN - NOT CALCULATING AGAIN TO AVOID CIRCULAR REFS"
}
},
"headers": {
"host": "api-3scale-apicast-staging.apps.latam-559c.open.redhat.com",
"x-forwarded-host": "api-3scale-apicast-staging.apps.latam-559c.open.redhat.com",
"accept": "*/*",
"application-name": "ramalho-app",
"x-forwarded-proto": "https",
"x-forwarded-for": "179.214.5.19",
"user-agent": "curl/7.64.1",
"forwarded": "for=179.214.5.19;host=api-3scale-apicast-staging.apps.latam-559c.open.redhat.com;proto=https;proto-version=",
"x-forwarded-port": "443"
},
"scheme": "http",
"remote_port": "47998",
"server_port": "8080"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment