praetorian-inc / chariot-ui

Chariot Offensive Security Platform
https://preview.chariot.praetorian.com
MIT License
15 stars 6 forks source link

pull sow specific definitions based on attributes #128

Open praetorian-rad opened 1 week ago

praetorian-rad commented 1 week ago

In relation to https://github.com/praetorian-inc/praetorian-cli/pull/30, we'll pull the attributes for an asset and if any of the classes are SOW, we'll pull the definition file from the SOW folder.

subbiah2806 commented 1 week ago

@storbeck

This PR will break the Edit Description & Remediation and generate report, Both BE and UI definition upload should append SOW to it, to work properly

updateFile({
                            ignoreSnackbar: true,
                            name: `definitions/${prefix}/${name}`,
                            content: markdownValue,
});

and BE must add SOW prefix to file generated on /upgrade