Hide metadata field from REST API responses using secure flag - #948
Conversation
PR Reviewer Guide 🔍(Review updated until commit 3b01abf)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 3b01abf
Previous suggestionsSuggestions up to commit d4e7209
|
Move metadata serialization inside the !secure block in Monitor.createXContentBuilder() so it is excluded from customer-facing REST responses (toXContent with secure=true) while still included in internal paths like index persistence and SQS payloads (toXContentWithUser with secure=false). This follows the same pattern used for the user field. Signed-off-by: Riya Saxena <riysaxen@amazon.com>
d4e7209 to
3b01abf
Compare
|
Persistent review updated to latest commit 3b01abf |
Move metadata serialization inside the !secure block in Monitor.createXContentBuilder() so it is excluded from customer-facing REST responses (toXContent with secure=true) while still included in internal paths like index persistence and SQS payloads (toXContentWithUser with secure=false). This follows the same pattern used for the user field.
Description
[Describe what this change achieves]
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
--signoff.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.