Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Masking User IP value #2296

Closed
dilshanfardil opened this issue Nov 30, 2023 · 1 comment · Fixed by wso2/carbon-apimgt#12190
Closed

Masking User IP value #2296

dilshanfardil opened this issue Nov 30, 2023 · 1 comment · Fixed by wso2/carbon-apimgt#12190

Comments

@dilshanfardil
Copy link

Problem

Hi Team,

In this ticket, the customer mentioned when the analytic event collects data [1] and publishing, it sends the user IP value in an event to Choreo Analytics.

So, the customer has a requirement to mask the last 2 octet of the user IP address due to this information being classisfied as sensitive in their case.

Example: 10.102.92.23 must be changed to 10.102..

We would like to know since these information is sensitive in their usecase, is there a way to overcome this issue?

Highly appreciate your input on this.

Solution

Rather than passing the same value we can mask the value [1]

https://github.com/wso2-support/carbon-apimgt/blob/support-9.28.116.x-full/components/apimgt/org.wso2.carbon.apimgt.common.analytics/src/main/java/org/wso2/carbon/apimgt/common/analytics/collectors/impl/SuccessRequestDataCollector.java#L93

Affected Component

APIM

Version

4.2.0

Implementation

No response

Related Issues

No response

Suggested Labels

No response

@YasasRangika
Copy link

Public PR: wso2/carbon-apimgt#12190

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants