Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AA: handle multiline content in log events #615

Commits on Jul 17, 2024

  1. AA: handle multiline content in log events

    The NELR spec doesn't prescribe a format for the `content` payload of an
    event. However, since a line break is semantic in the log file, the
    content cannot be a multi-line string:
    
    ```
    content = "one two\nthree four five"
                   |
                   v
    my-domain my-operation one two
    three four five
    ```
    
    The result would be ambiguous. This change enforces this assertion.
    
    Also added tests for the event log and moved the init log line
    generation to the eventlog module (as the digest calc is already there)
    
    Signed-off-by: Magnus Kulke <magnuskulke@microsoft.com>
    mkulke committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    88c7d34 View commit details
    Browse the repository at this point in the history