{"id":18291175,"url":"https://github.com/rhecosystemappeng/exate-response-interceptor-poc","last_synced_at":"2026-02-23T16:31:16.533Z","repository":{"id":193398289,"uuid":"688246729","full_name":"RHEcosystemAppEng/exate-response-interceptor-poc","owner":"RHEcosystemAppEng","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-20T09:17:34.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-29T03:53:52.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RHEcosystemAppEng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-07T00:45:35.000Z","updated_at":"2023-09-18T10:47:09.000Z","dependencies_parsed_at":"2023-09-08T03:08:01.497Z","dependency_job_id":"37fad878-84e1-4005-bce3-ae4ae8f0e1a0","html_url":"https://github.com/RHEcosystemAppEng/exate-response-interceptor-poc","commit_stats":null,"previous_names":["rhecosystemappeng/exate-response-interceptor-poc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RHEcosystemAppEng/exate-response-interceptor-poc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RHEcosystemAppEng%2Fexate-response-interceptor-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RHEcosystemAppEng%2Fexate-response-interceptor-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RHEcosystemAppEng%2Fexate-response-interceptor-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RHEcosystemAppEng%2Fexate-response-interceptor-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RHEcosystemAppEng","download_url":"https://codeload.github.com/RHEcosystemAppEng/exate-response-interceptor-poc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RHEcosystemAppEng%2Fexate-response-interceptor-poc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29748178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T14:13:25.860Z","updated_at":"2026-02-23T16:31:16.500Z","avatar_url":"https://github.com/RHEcosystemAppEng.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exate API-Gator Interceptor POC\n\n[Target Person Service](target-person-service/README.md) is a mock service returning a dummy JSON that will be used as the target application to\nintercept using the Interceptor App.\n\n\u003cdetails\u003e\n\u003csummary\u003eRun POC Locally\u003c/summary\u003e\n\n### Run the mock service\n\n```shell\npodman run --rm -p 8080:8080 quay.io/ecosystem-appeng/exate-poc-target-person-service:1.0.0-SNAPSHOT\n```\n\n#### Verify original dataset\n\n```shell\ncurl -sw \"\\n\" http://localhost:8080/v1/api/customers?id=56\n```\n\n```json\n{\"employees\":{\"employee\":[{\"id\":\"56\",\"firstName\":\"John\",\"lastName\":\"doe\",\"age\":51,\"accessToken\":\"someSecretAccessTokenValue\",\"secret\":\"someConfidentialSecretValue\"}]}}\n```\n\n### Run the interceptor app\n\n\u003e Note **network is set to host** in order to make the mock service accessible to the interceptor app.\u003cbr/\u003e\n\u003e Also note the usage of *TARGET_SERVER_PORT* introducing the mock service app. The *TARGET_SERVER_HOST* defaults to\n\u003e *localhost*.\u003cbr/\u003e\n\u003e Also note and replace the values of *API_GATOR_API_KEY*, *API_GATOR_CLIENT_ID*, *API_GATOR_CLIENT_SECRET*.\n\n```shell\npodman run --rm -p 8082:8082 --network=host \\\n-e TARGET_SERVER_PORT='8080' \\\n-e API_GATOR_API_KEY='api-key-goes-here' \\\n-e API_GATOR_CLIENT_ID='client-id-goes-here' \\\n-e API_GATOR_CLIENT_SECRET='client-secret-goes-here' \\\n-e API_GATOR_MANIFEST_NAME='Employee' \\\n-e API_GATOR_DATASET_TYPE='JSON' \\\n-e API_GATOR_JOB_TYPE='DataMasking' \\\n-e API_GATOR_COUNTRY_CODE='GB' \\\n-e API_GATOR_PROTECT_NULL_VALUES='false' \\\n-e API_GATOR_PRESERVE_STRING_LENGTH='true' \\\nquay.io/ecosystem-appeng/gator-api-interceptor:1.0.0-SNAPSHOT\n```\n\n#### Verify the masked dataset\n\n\u003e Note the usage of port 8082, the interceptor port, instead of port 8080, the target mock service port. \n\n```shell\ncurl -sw \"\\n\" http://localhost:8082/v1/api/customers?id=56\n```\n\n```json\n{\n    \"employees\": {\n        \"employee\": [\n            {\n                \"id\": \"56\",\n                \"firstName\": \"3968\",\n                \"lastName\": \"1b6\",\n                \"age\": 51,\n                \"accessToken\": \"someSecretAccessTokenValue\",\n                \"secret\": \"someConfidentialSecretValue\"\n            }\n        ]\n    }\n}\n```\n\n#### Verify bypassing API-Gator\n\n```shell\ncurl -H \"Api-Gator-Bypass: true\" -sw \"\\n\" http://localhost:8082/v1/api/customers?id=56\n```\n\n```json\n{\"employees\":{\"employee\":[{\"id\":\"56\",\"firstName\":\"John\",\"lastName\":\"doe\",\"age\":51,\"accessToken\":\"someSecretAccessTokenValue\",\"secret\":\"someConfidentialSecretValue\"}]}}\n```\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhecosystemappeng%2Fexate-response-interceptor-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhecosystemappeng%2Fexate-response-interceptor-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhecosystemappeng%2Fexate-response-interceptor-poc/lists"}