fix: use json.Marshal in CreateResult instead of string concatenation
CreateTestResult was building JSON with string concatenation, which could break or allow injection if inputs had quotes/backslashes.
Switched to a typed struct + json.Marshal for safe escaping, and properly unmarshaled filteredOperations, operationsHeaders, and oAuth2Context before combining...
Tests:
- Malicious input test to ensure no field injection
- Verify secretName is omitted when empty (omitempty)
fixes #266
👋 @rubrx
Welcome to the Microcks community! 💖
Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly.
Hope you have a great time there!
This pull request has been automatically marked as stale because it has not had recent activity :sleeping:
It will be closed in 30 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation.
There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. Microcks is a Cloud Native Computing Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.
Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here.
Thank you for your patience :heart: