fix: use json.Marshal in CreateTestResult instead of string concatenation
Describe the bug
CreateTestResult is building JSON by hand… which is kinda fragile, so if serviceID / testEndpoint / secretName have quotes or \ → JSON can break or even allow extra fields to be injected… like http://helo.com", "injected":"val where payload gets messed up. so its better to switch to a struct + json.Marshal (handles escaping for you)
happy to open a PR if that works!!!
👋 @rubrx
Welcome to the Microcks community! 💖
Thanks and congrats 🎉 for opening your first issue here! Be sure to follow the issue template or please update it accordingly.
📢 If you're using Microcks in your organization, please add your company name to this list. 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.
If you need to know why and how to add yourself to the list, please read the blog post "Join the Microcks Adopters list and Empower the vibrant open source Community 🙌"
Hope you have a great time there!
happy to open a PR if that works!!!
Yes please! Go ahead!
This issue 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 issue, add a comment with a detailed explanation.
There can be many reasons why some specific issue 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 issue forward. Connect with us through one of many communication channels we established here.
Thank you for your patience :heart: