-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
New metadata API #17942
New metadata API #17942
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -367,7 +367,9 @@ | |
"Parser", | ||
"Watchlist", | ||
"WatchlistTemplate", | ||
"Solution" | ||
"Solution", | ||
"AzureFunction", | ||
"LogicAppsCustomConnector" | ||
], | ||
"x-ms-enum": { | ||
"modelAsString": true, | ||
|
@@ -414,6 +416,12 @@ | |
}, | ||
{ | ||
"value": "Solution" | ||
}, | ||
{ | ||
"value": "AzureFunction" | ||
}, | ||
{ | ||
"value": "LogicAppsCustomConnector" | ||
} | ||
] | ||
} | ||
|
@@ -628,6 +636,63 @@ | |
"type": "string", | ||
"format": "date" | ||
}, | ||
"metadataCustomVersion": { | ||
"description": "The custom version of the content. A optional free text", | ||
"type": "string" | ||
}, | ||
"metadataContentSchemaVersion": { | ||
"description": "Schema version of the content. Can be used to distinguish between different flow based on the schema version", | ||
"type": "string" | ||
}, | ||
"metadataIcon": { | ||
"description": "the icon identifier. this id can later be fetched from the solution template", | ||
"type": "string" | ||
}, | ||
"metadataThreatAnalysisTactics": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We expect this to be pretty dynamic. It changes in a high frequency. |
||
"description": "the tactics the resource covers", | ||
"type": "array", | ||
"example": [ | ||
"reconnaissance", | ||
"exfiltration" | ||
], | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"metadataThreatAnalysisTechniques": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Techniques can't be an enum, new techniques are added on a high cadence |
||
"description": "the techniques the resource covers, these have to be aligned with the tactics being used", | ||
"type": "array", | ||
"example": [ | ||
"T1548", | ||
"T1548.001", | ||
"T1134.003" | ||
], | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"metadataPreviewImages": { | ||
"description": "preview image file names. These will be taken from the solution artifacts", | ||
"type": "array", | ||
"example": [ | ||
"example.png", | ||
"example2.jpeg" | ||
], | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"metadataPreviewImagesDark": { | ||
"description": "preview image file names. These will be taken from the solution artifacts. used for dark theme support", | ||
"type": "array", | ||
"example": [ | ||
"example.png", | ||
"example2.jpeg" | ||
], | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"metadataProperties": { | ||
"description": "Metadata property bag.", | ||
"required": [ | ||
|
@@ -683,6 +748,34 @@ | |
"lastPublishDate": { | ||
"$ref": "#/definitions/lastPublishDate", | ||
"description": "last publish date for the solution content item" | ||
}, | ||
"customVersion": { | ||
"$ref": "#/definitions/metadataCustomVersion", | ||
"description": "The custom version of the content. A optional free text" | ||
}, | ||
"contentSchemaVersion": { | ||
"$ref": "#/definitions/metadataContentSchemaVersion", | ||
"description": "Schema version of the content. Can be used to distinguish between different flow based on the schema version" | ||
}, | ||
"icon": { | ||
"$ref": "#/definitions/metadataIcon", | ||
"description": "the icon identifier. this id can later be fetched from the solution template" | ||
}, | ||
"threatAnalysisTactics": { | ||
"$ref": "#/definitions/metadataThreatAnalysisTactics", | ||
"description": "the tactics the resource covers" | ||
}, | ||
"threatAnalysisTechniques": { | ||
"$ref": "#/definitions/metadataThreatAnalysisTechniques", | ||
"description": "the techniques the resource covers, these have to be aligned with the tactics being used" | ||
}, | ||
"previewImages": { | ||
"$ref": "#/definitions/metadataPreviewImages", | ||
"description": "preview image file names. These will be taken from the solution artifacts" | ||
}, | ||
"previewImagesDark": { | ||
"$ref": "#/definitions/metadataPreviewImagesDark", | ||
"description": "preview image file names. These will be taken from the solution artifacts. used for dark theme support" | ||
} | ||
} | ||
}, | ||
|
@@ -737,6 +830,34 @@ | |
"lastPublishDate": { | ||
"$ref": "#/definitions/lastPublishDate", | ||
"description": "last publish date for the solution content item" | ||
}, | ||
"customVersion": { | ||
"$ref": "#/definitions/metadataCustomVersion", | ||
"description": "The custom version of the content. A optional free text" | ||
}, | ||
"contentSchemaVersion": { | ||
"$ref": "#/definitions/metadataContentSchemaVersion", | ||
"description": "Schema version of the content. Can be used to distinguish between different flow based on the schema version" | ||
}, | ||
"icon": { | ||
"$ref": "#/definitions/metadataIcon", | ||
"description": "the icon identifier. this id can later be fetched from the solution template" | ||
}, | ||
"threatAnalysisTactics": { | ||
"$ref": "#/definitions/metadataThreatAnalysisTactics", | ||
"description": "the tactics the resource covers" | ||
}, | ||
"threatAnalysisTechniques": { | ||
"$ref": "#/definitions/metadataThreatAnalysisTechniques", | ||
"description": "the techniques the resource covers, these have to be aligned with the tactics being used" | ||
}, | ||
"previewImages": { | ||
"$ref": "#/definitions/metadataPreviewImages", | ||
"description": "preview image file names. These will be taken from the solution artifacts" | ||
}, | ||
"previewImagesDark": { | ||
"$ref": "#/definitions/metadataPreviewImagesDark", | ||
"description": "preview image file names. These will be taken from the solution artifacts. used for dark theme support" | ||
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a known identifier? (e.g. a Guid?) might be good to specify the id format (in case there's one)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, just a name, can be "bob", "roey", "random_name2"