-
Notifications
You must be signed in to change notification settings - Fork 14
fix: enable positive_data_acceptance fuzz checks via spec tightening and test hooks #1720
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
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 | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -736,10 +736,12 @@ components: | |||||||||||||||||||||||
| it must be unique among all the artifacts of the same artifact type within | ||||||||||||||||||||||||
| a database instance and cannot be changed once set. | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| minLength: 1 | ||||||||||||||||||||||||
| id: | ||||||||||||||||||||||||
| format: int64 | ||||||||||||||||||||||||
| description: The unique server generated id of the resource. | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| readOnly: true | ||||||||||||||||||||||||
| - $ref: "#/components/schemas/BaseResourceDates" | ||||||||||||||||||||||||
| BaseResourceDates: | ||||||||||||||||||||||||
| description: Common timestamp fields for resources | ||||||||||||||||||||||||
|
|
@@ -1711,6 +1713,7 @@ components: | |||||||||||||||||||||||
| MetadataBoolValue: | ||||||||||||||||||||||||
| description: A bool property value. | ||||||||||||||||||||||||
| type: object | ||||||||||||||||||||||||
| additionalProperties: false | ||||||||||||||||||||||||
| required: | ||||||||||||||||||||||||
| - metadataType | ||||||||||||||||||||||||
| - bool_value | ||||||||||||||||||||||||
|
|
@@ -1719,11 +1722,13 @@ components: | |||||||||||||||||||||||
| type: boolean | ||||||||||||||||||||||||
| metadataType: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| example: MetadataBoolValue | ||||||||||||||||||||||||
| enum: | ||||||||||||||||||||||||
| - MetadataBoolValue | ||||||||||||||||||||||||
| default: MetadataBoolValue | ||||||||||||||||||||||||
| MetadataDoubleValue: | ||||||||||||||||||||||||
| description: A double property value. | ||||||||||||||||||||||||
| type: object | ||||||||||||||||||||||||
| additionalProperties: false | ||||||||||||||||||||||||
| required: | ||||||||||||||||||||||||
| - metadataType | ||||||||||||||||||||||||
| - double_value | ||||||||||||||||||||||||
|
|
@@ -1733,25 +1738,30 @@ components: | |||||||||||||||||||||||
| type: number | ||||||||||||||||||||||||
| metadataType: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| example: MetadataDoubleValue | ||||||||||||||||||||||||
| enum: | ||||||||||||||||||||||||
| - MetadataDoubleValue | ||||||||||||||||||||||||
| default: MetadataDoubleValue | ||||||||||||||||||||||||
| MetadataIntValue: | ||||||||||||||||||||||||
| description: An integer (int64) property value. | ||||||||||||||||||||||||
| description: An integer (int32) property value. | ||||||||||||||||||||||||
| type: object | ||||||||||||||||||||||||
| additionalProperties: false | ||||||||||||||||||||||||
| required: | ||||||||||||||||||||||||
| - metadataType | ||||||||||||||||||||||||
| - int_value | ||||||||||||||||||||||||
| properties: | ||||||||||||||||||||||||
| int_value: | ||||||||||||||||||||||||
| format: int64 | ||||||||||||||||||||||||
| format: int32 | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| pattern: "^-?[0-9]{1,9}$" | ||||||||||||||||||||||||
| metadataType: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| example: MetadataIntValue | ||||||||||||||||||||||||
| enum: | ||||||||||||||||||||||||
| - MetadataIntValue | ||||||||||||||||||||||||
| default: MetadataIntValue | ||||||||||||||||||||||||
| MetadataProtoValue: | ||||||||||||||||||||||||
| description: A proto property value. | ||||||||||||||||||||||||
| type: object | ||||||||||||||||||||||||
| additionalProperties: false | ||||||||||||||||||||||||
| required: | ||||||||||||||||||||||||
| - metadataType | ||||||||||||||||||||||||
| - type | ||||||||||||||||||||||||
|
|
@@ -1763,13 +1773,16 @@ components: | |||||||||||||||||||||||
| proto_value: | ||||||||||||||||||||||||
| description: Base64 encoded bytes for proto value | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| format: byte | ||||||||||||||||||||||||
| metadataType: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| example: MetadataProtoValue | ||||||||||||||||||||||||
| enum: | ||||||||||||||||||||||||
| - MetadataProtoValue | ||||||||||||||||||||||||
| default: MetadataProtoValue | ||||||||||||||||||||||||
| MetadataStringValue: | ||||||||||||||||||||||||
| description: A string property value. | ||||||||||||||||||||||||
| type: object | ||||||||||||||||||||||||
| additionalProperties: false | ||||||||||||||||||||||||
| required: | ||||||||||||||||||||||||
| - metadataType | ||||||||||||||||||||||||
| - string_value | ||||||||||||||||||||||||
|
|
@@ -1778,21 +1791,25 @@ components: | |||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| metadataType: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| example: MetadataStringValue | ||||||||||||||||||||||||
| enum: | ||||||||||||||||||||||||
| - MetadataStringValue | ||||||||||||||||||||||||
| default: MetadataStringValue | ||||||||||||||||||||||||
| MetadataStructValue: | ||||||||||||||||||||||||
| description: A struct property value. | ||||||||||||||||||||||||
| type: object | ||||||||||||||||||||||||
| additionalProperties: false | ||||||||||||||||||||||||
| required: | ||||||||||||||||||||||||
| - metadataType | ||||||||||||||||||||||||
| - struct_value | ||||||||||||||||||||||||
| properties: | ||||||||||||||||||||||||
| struct_value: | ||||||||||||||||||||||||
| description: Base64 encoded bytes for struct value | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| format: byte | ||||||||||||||||||||||||
| metadataType: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| example: MetadataStructValue | ||||||||||||||||||||||||
| enum: | ||||||||||||||||||||||||
| - MetadataStructValue | ||||||||||||||||||||||||
| default: MetadataStructValue | ||||||||||||||||||||||||
| MetadataValue: | ||||||||||||||||||||||||
| oneOf: | ||||||||||||||||||||||||
|
|
@@ -2081,6 +2098,7 @@ components: | |||||||||||||||||||||||
| - `(license = "Apache 2.0" OR license = "MIT") AND verifiedSource = true` | ||||||||||||||||||||||||
| schema: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| pattern: "^[\\x20-\\x7E]*$" | ||||||||||||||||||||||||
| in: query | ||||||||||||||||||||||||
| required: false | ||||||||||||||||||||||||
| mcpToolFilterQuery: | ||||||||||||||||||||||||
|
|
@@ -2105,6 +2123,7 @@ components: | |||||||||||||||||||||||
| - `(accessType = "read_only" OR accessType = "execute") AND name LIKE "%model%"` | ||||||||||||||||||||||||
| schema: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| pattern: "^[\\x20-\\x7E]*$" | ||||||||||||||||||||||||
| in: query | ||||||||||||||||||||||||
| required: false | ||||||||||||||||||||||||
| filterQuery: | ||||||||||||||||||||||||
|
|
@@ -2142,6 +2161,7 @@ components: | |||||||||||||||||||||||
| - Escaped property: `` `mlflow.source.type` = "notebook" `` | ||||||||||||||||||||||||
| schema: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| pattern: "^[\\x20-\\x7E]*$" | ||||||||||||||||||||||||
| in: query | ||||||||||||||||||||||||
| required: false | ||||||||||||||||||||||||
| artifactFilterQuery: | ||||||||||||||||||||||||
|
|
@@ -2179,6 +2199,7 @@ components: | |||||||||||||||||||||||
| - Escaped property: `` `custom-key` = "value" `` | ||||||||||||||||||||||||
| schema: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| pattern: "^[\\x20-\\x7E]*$" | ||||||||||||||||||||||||
| in: query | ||||||||||||||||||||||||
| required: false | ||||||||||||||||||||||||
| orderBy: | ||||||||||||||||||||||||
|
|
@@ -2337,6 +2358,8 @@ components: | |||||||||||||||||||||||
| description: The ID of resource. | ||||||||||||||||||||||||
| schema: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| format: int64 | ||||||||||||||||||||||||
| pattern: "^[1-9][0-9]{0,8}$" | ||||||||||||||||||||||||
|
Comment on lines
2360
to
+2362
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. ID regex narrows advertised Both parameters are marked Also applies to: 2394-2396 🤖 Prompt for AI Agents |
||||||||||||||||||||||||
| in: path | ||||||||||||||||||||||||
| required: true | ||||||||||||||||||||||||
| name: | ||||||||||||||||||||||||
|
|
@@ -2347,6 +2370,7 @@ components: | |||||||||||||||||||||||
| description: Name of entity to search. | ||||||||||||||||||||||||
| schema: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| pattern: "^[\\x20-\\x7E]+$" | ||||||||||||||||||||||||
| in: query | ||||||||||||||||||||||||
| required: false | ||||||||||||||||||||||||
| externalId: | ||||||||||||||||||||||||
|
|
@@ -2357,6 +2381,7 @@ components: | |||||||||||||||||||||||
| description: External ID of entity to search. | ||||||||||||||||||||||||
| schema: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| pattern: "^[\\x20-\\x7E]+$" | ||||||||||||||||||||||||
| in: query | ||||||||||||||||||||||||
| required: false | ||||||||||||||||||||||||
| parentResourceId: | ||||||||||||||||||||||||
|
|
@@ -2367,21 +2392,27 @@ components: | |||||||||||||||||||||||
| description: ID of the parent resource to use for search. | ||||||||||||||||||||||||
| schema: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| format: int64 | ||||||||||||||||||||||||
| pattern: "^[1-9][0-9]{0,8}$" | ||||||||||||||||||||||||
| in: query | ||||||||||||||||||||||||
| required: false | ||||||||||||||||||||||||
| pageSize: | ||||||||||||||||||||||||
| examples: | ||||||||||||||||||||||||
| pageSize: | ||||||||||||||||||||||||
| value: "100" | ||||||||||||||||||||||||
| value: 100 | ||||||||||||||||||||||||
| name: pageSize | ||||||||||||||||||||||||
| description: Number of entities in each page. | ||||||||||||||||||||||||
| schema: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| type: integer | ||||||||||||||||||||||||
| format: int32 | ||||||||||||||||||||||||
| minimum: 1 | ||||||||||||||||||||||||
| maximum: 2147483647 | ||||||||||||||||||||||||
|
Comment on lines
2405
to
+2409
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. Major: Exploit scenario: a caller can send 🔧 Remediation schema:
type: integer
format: int32
minimum: 1
- maximum: 2147483647
+ maximum: 1000 # replace with the handler's actual enforced capAs per coding guidelines, REVIEW PRIORITIES: 1. Security vulnerabilities (provide severity, exploit scenario, and remediation code). 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||
| in: query | ||||||||||||||||||||||||
| required: false | ||||||||||||||||||||||||
| nextPageToken: | ||||||||||||||||||||||||
| name: nextPageToken | ||||||||||||||||||||||||
| description: Token to use to retrieve next page of results. | ||||||||||||||||||||||||
| description: >- | ||||||||||||||||||||||||
| Opaque pagination token returned by a previous list call. Do not construct manually; use the value from a prior response's nextPageToken field. | ||||||||||||||||||||||||
| schema: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| in: query | ||||||||||||||||||||||||
|
|
@@ -2408,6 +2439,7 @@ components: | |||||||||||||||||||||||
| description: "Comma-separated list of step IDs to filter metrics by." | ||||||||||||||||||||||||
| schema: | ||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||
| pattern: "^[0-9]{1,9}(,[0-9]{1,9})*$" | ||||||||||||||||||||||||
| in: query | ||||||||||||||||||||||||
| required: false | ||||||||||||||||||||||||
| securitySchemes: | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
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.
int32constraint rejects validint32values.^-?[0-9]{1,9}$capsint_valueat 9 digits, so values like1000000000and-2147483648become schema-invalid even though this field is documented asint32. Either widen the constraint to the full signed int32 domain or stop advertisingint32here.🤖 Prompt for AI Agents