You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enforce immutability for incoming task document #142
The incoming task document serves as a log/reference to what the user sent, which is needed for accounting/audit purposes. Therefore, only the parts that are provided by the client should be immutable, and the outgoing request can be modified according to middleware configuration.
No, as discussed this was supposed to be done once the naming issue was fixed and now I can see the naming of the TES task was fixed in #141 , will fix this soon in the upcoming Prs.
In the current code, the incoming task (task_original) is written once, before any middleware runs, and later updates only change task, tes_endpoint and the state. So it is immutable in practice, but nothing guards it. #207 adds a regression test for this, and its PR will close this issue.
Activity
uniqueg commentedon Mar 8, 2023
Isn't this already accounted for by #141, @Ayush5120? If so, you can close this issue.
Ayush5120 commentedon Mar 8, 2023
No, as discussed this was supposed to be done once the naming issue was fixed and now I can see the naming of the TES task was fixed in #141 , will fix this soon in the upcoming Prs.
uniqueg commentedon Mar 8, 2023
So you really wanna make it immutable. Nice. I like that :)
uniqueg commentedon Oct 22, 2026
In the current code, the incoming task (
task_original) is written once, before any middleware runs, and later updates only changetask,tes_endpointand the state. So it is immutable in practice, but nothing guards it. #207 adds a regression test for this, and its PR will close this issue.