change merge properties sequence for defaults#2576
Conversation
|
Purely from the description - is this something we want given the security risk? We sometimes have settings in schemas stored in the api app that we should never override... |
|
We had a discussion around this. The concern is template schema could override values set for system reasons in the API schema, this could be a security issue, or cause functionality issues.
@tamirkamara @stuartleeks is that a reflection of the discussion? Thoughts? |
|
@tamirkamara @damoodamoo can we look at this again, and clarify the issue why this approach isn't ideal? |
|
I'm fine with this - @lenisha correct me if I'm wrong but as I understand it this just allows a template author to specify a property for in their template and have that override the static json file stored with the API? So I could define my own If so, I think it's good work, and what we need. @tamirkamara not sure where the security risk would come from? |
After another looks and chat, this doesn't change the behavior of user provided values so I don't think there's a risk here. |
|
/test 068aace |
|
🤖 pr-bot 🤖 🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3397604028 (with refid (in response to this comment from @marrobi) |
Pull request was converted to draft
|
/test 3982821 |
|
🤖 pr-bot 🤖 🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/3623248460 (with refid (in response to this comment from @marrobi) |
|
Recreated PR at #2953 |
|
/test-extended 484a4b7 |
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3647741977 (with refid (in response to this comment from @tamirkamara) |
|
@tamirkamara how did you get this merged in the end? @lenisha thank you, it's taken a while, but now merged :) |
@marrobi The issue was around security of which action is allowed to report UT results. I hardened it a few weeks ago allowing most check just for 1st part actions, but for the UT to support our forks it needs to be "any action" which is how I defined it today. |
Resolves #2575
What is being addressed
Defaults set by Admins in bundle template definition are overridden by API default template
How is this addressed