Skip to content

Consider using python objects for defining threats #327

@NoodlesNZ

Description

@NoodlesNZ

The current system of using threats defined in JSON is a little bit hard to use/maintain. The conditions for a threat are written as a string, then eval'ed which is not ideal.

With the pydantic models, it should be easy to define threats as python classes and allow for type hinting, unit tests, linting etc

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