{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • General /
avatar image
0
Question by Gopala krishnan Periyasamy · Sep 28, 2020 at 12:07 AM · 109 Views proxy configurationdata masking

How to implement Masked API Proxy Request and Proxy Response

I have a requirement to implement Masking the data while trace and while do logging. Please help me with the process of implementing masking. if possible share a sample.

Masking required for both request and response JSON/XML. For logging, we are using Splunk.

Is their any changes required in the domain level or Proxy level changes are fine?

I tried with the below URL, but help me with some samples,

https://docs.apigee.com/api-platform/security/data-masking

Thanks

Gopala Krishnan

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

2 Answers

  • Sort: 
avatar image
0

Answer by Kurt Googler Kanaskie · Sep 28, 2020 at 03:37 PM

Hi @Gopala krishnan Periyasamy,

You can create mask configs at the organization or proxy level, they apply only to the Trace window.

This mask config applies to the `features-v1` proxy and masks all of the values for the fields in a request and response for both JSON and XML:

curl -n -X POST 'https://api.enterprise.apigee.com/v1/organizations/$ORG/apis/features-v1/maskconfigs' \
--header 'Content-Type: application/json' \
--data-raw '{
  "jSONPathsFault": [
    "$.*"
  ],
  "jSONPathsRequest": [
    "$.*"
  ],
  "jSONPathsResponse": [
    "$.*"
  ],
  "name": "default",
  "xPathsRequest": [
    "/*"
  ],
  "xPathsResponse": [
    "/*"
  ]
}'

The view in Trace for JSON:

and for XML:

This mask config will mask the entire request and response content.

curl -n -X POST 'https://api.enterprise.apigee.com/v1/organizations/$ORG/apis/features-v1/maskconfigs' \
--header 'Content-Type: application/json' \
--data-raw '{
  "name": "default",
  "variables": [
    "request.content",
    "response.content"
  ]
}'

The view in Trace:

To mask values that are sent to your logging solution, you'll have to take care to mask those values in the message that you send. This can be done using a JavaScript policy.


screen-shot-2020-09-28-at-111125-am.png (17.8 kB)
screen-shot-2020-09-28-at-111259-am.png (9.2 kB)
screen-shot-2020-09-28-at-113555-am.png (25.9 kB)
Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Gopala krishnan Periyasamy · Oct 21, 2020 at 02:21 AM

thanks For your answer.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

55 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Does Apigee Allow ResourceFiles from Org/Env Level to be Used Directly in a Step? 1 Answer

How to Parse a Query string Array Parameter using a SOAP proxy 2 Answers

Error Deploying Revision 1 to test 1 Answer

Reverse proxy directing instead of acting as a reverse proxy 1 Answer

How do I append a variable and value in x-www-form-urlencoded form of POST body? 1 Answer

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges