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

Masks IP Addresses in json responses (HAWNG-824) #563

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

phantomjinx
Copy link
Member

  • gateway-api.ts

    • Adds response interceptor to proxy to capture the body and mask any ip addresses in the body string
  • jolokia-agent.ts

    • Before sending back the response, ip addresses are masked in the body
  • utils.ts

    • Regex matched and replacement function
  • Only response that cannot be masked is the responses from the websockets as these are never intercepted by the express server.

@phantomjinx phantomjinx self-assigned this Oct 23, 2024
@phantomjinx phantomjinx force-pushed the main branch 3 times, most recently from 9c49674 to ee3636f Compare October 23, 2024 16:47
* gateway-api.ts
 * Adds response interceptor to proxy to capture the body and mask any ip
   addresses in the body string

* jolokia-agent.ts
 * Before sending back the response, ip addresses are masked in the body

* utils.ts
 * Regex matched and replacement function

* Only response that cannot be masked is the responses from the websockets
  as these are never intercepted by the express server.
@phantomjinx phantomjinx merged commit 052e56a into hawtio:main Oct 23, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant