Skip to content

Enforce immutability for incoming task document #142

Closed

Description

@Ayush5120

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.

Activity

  1. uniqueg commented on Mar 8, 2023

    @uniqueg
    Member

    Isn't this already accounted for by #141, @Ayush5120? If so, you can close this issue.

  2. Ayush5120 commented on Mar 8, 2023

    @Ayush5120
    ContributorAuthor

    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.

  3. uniqueg commented on Mar 8, 2023

    @uniqueg
    Member

    So you really wanna make it immutable. Nice. I like that :)

  4. uniqueg commented on Oct 22, 2026

    @uniqueg
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions