-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Adding new value to VA baseline name #3143
Changes from 3 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 |
---|---|---|
|
@@ -61,15 +61,16 @@ | |
{ | ||
"name": "baselineName", | ||
"in": "path", | ||
"description": "The name of the vulnerability assessment rule baseline.", | ||
"description": "The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).", | ||
"required": true, | ||
"type": "string", | ||
"enum": [ | ||
"default" | ||
"Master", | ||
"Default" | ||
], | ||
"x-ms-enum": { | ||
"name": "VulnerabilityAssessmentPolicyBaselineName", | ||
"modelAsString": true | ||
"modelAsString": false | ||
} | ||
}, | ||
{ | ||
|
@@ -140,15 +141,16 @@ | |
{ | ||
"name": "baselineName", | ||
"in": "path", | ||
"description": "The name of the vulnerability assessment rule baseline.", | ||
"description": "The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).", | ||
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. Does the server level rule apply to all databases in the server, or just this one? If it applies to all databases, then the api should be on the server. 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. currently we don't support a "server level" configuration. In the meantime, the user can set a server rule baseline only in the context of a single database 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. Ok, so if I set the master baseline for one database, that doesn't affect the master baseline for another database, is that right? When I look at my VA scan results, how do I know whether I need to update the current or master baseline? |
||
"required": true, | ||
"type": "string", | ||
"enum": [ | ||
"default" | ||
"Master", | ||
"Default" | ||
], | ||
"x-ms-enum": { | ||
"name": "VulnerabilityAssessmentPolicyBaselineName", | ||
"modelAsString": true | ||
"modelAsString": false | ||
} | ||
}, | ||
{ | ||
|
@@ -228,15 +230,16 @@ | |
{ | ||
"name": "baselineName", | ||
"in": "path", | ||
"description": "The name of the vulnerability assessment rule baseline.", | ||
"description": "The name of the vulnerability assessment rule baseline (default implies a baseline on a database level rule and master for server level rule).", | ||
"required": true, | ||
"type": "string", | ||
"enum": [ | ||
"default" | ||
"Master", | ||
"Default" | ||
], | ||
"x-ms-enum": { | ||
"name": "VulnerabilityAssessmentPolicyBaselineName", | ||
"modelAsString": true | ||
"modelAsString": false | ||
} | ||
}, | ||
{ | ||
|
@@ -295,12 +298,44 @@ | |
} | ||
} | ||
}, | ||
"Resource": { | ||
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. Please remove Resource & ProxyResource definitions 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. will do. |
||
"description": "ARM resource.", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"description": "Resource ID.", | ||
"type": "string", | ||
"readOnly": true | ||
}, | ||
"name": { | ||
"description": "Resource name.", | ||
"type": "string", | ||
"readOnly": true | ||
}, | ||
"type": { | ||
"description": "Resource type.", | ||
"type": "string", | ||
"readOnly": true | ||
} | ||
}, | ||
"x-ms-azure-resource": true | ||
}, | ||
"ProxyResource": { | ||
"description": "ARM proxy resource.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/Resource" | ||
} | ||
], | ||
"properties": {} | ||
}, | ||
"DatabaseVulnerabilityAssessmentRuleBaseline": { | ||
"description": "A database vulnerability assessment rule baseline.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "../../../common/v1/types.json#/definitions/ProxyResource" | ||
"$ref": "#/definitions/ProxyResource" | ||
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. Please undo this, the common/v1 definition should be used 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. will do. 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. Understood, I haven't yet updated generator :) |
||
} | ||
], | ||
"properties": { | ||
|
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.
I think this should be 'master' , 'default'. The C# code generator should capitalize the first letter for the enum name when it generated code.
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.
Sure