Taegis Magic is a Jupyter Notebook and Command Line Interface for interacting with the Secureworks Taegis™ security platform. The Magics project is intended to assist users with workflows and analysis through Jupyter Notebook integrations and Pandas DataFrames.
The if cascade could better be implemented by a coalesce-like (or first valid) function that take a dict, list of keys, and a default value. Support for other automation tools, like Papermill, will be easier to manage and safer than a cascading if/elif block. Another goal is the the hope will be that first-party support for getting a notebook name will become available and we would be able to easily switch as this isn't something we want to maintain.
Third:
The report naming is currently outside the scope of the magic. The only integrations that should be included are those that are required for magic functionality, in this case for caching the results to the notebook. This should be implemented on the side that will be producing the report as there is no tooling around it in the magic.
@rcobb-scwx
First this needs a DCO commit:
https://www.secondstate.io/articles/dco/
Second:
The
if
cascade could better be implemented by acoalesce
-like (or first valid) function that take a dict, list of keys, and a default value. Support for other automation tools, like Papermill, will be easier to manage and safer than a cascadingif/elif
block. Another goal is the the hope will be that first-party support for getting a notebook name will become available and we would be able to easily switch as this isn't something we want to maintain.Third:
The
report
naming is currently outside the scope of the magic. The only integrations that should be included are those that are required for magic functionality, in this case for caching the results to the notebook. This should be implemented on the side that will be producing the report as there is no tooling around it in the magic.