Skip to content

The process-event API could use stricter validation #261

@martialblog

Description

@martialblog

The process-event API could use stricter validation. Here's what I mean:

cat 2.json 
{
}

curl -u 'source-2:whatisatypename123' -d '@2.json' 'http://localhost:5680/process-event'
invalid event: tags must not be empty

Ok good so far, but what about:

cat 3.json 
{
  "tags": {
    "": ""
  }
}

curl -i -u 'source-2:whatisatypename123' -d '@3.json' 'http://localhost:5680/process-event'
event processed successfully

Resulting in:
screenshot_2024-07-25-143104

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