-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
dns: add missing dns keywords to schema.json #10193
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 |
---|---|---|
|
@@ -1083,6 +1083,21 @@ | |
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"sshfp": { | ||
"type": "object", | ||
"properties": { | ||
"fingerprint": { | ||
"type": "string" | ||
}, | ||
"algo": { | ||
"type": "integer" | ||
}, | ||
"type": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
|
@@ -1156,6 +1171,15 @@ | |
"opcode": { | ||
"description": "DNS opcode as an integer", | ||
"type": "integer" | ||
}, | ||
"aa": { | ||
"type": "boolean" | ||
}, | ||
"tc": { | ||
"type": "boolean" | ||
}, | ||
"z": { | ||
"type": "boolean" | ||
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. z is already present as well. @jasonish do you know how to test in CI for duplicate keys in this schema.json ? 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. Extract the code out of check-eve.py back into a standalone script could be one option. 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. Adding things to the schema in alphabetic order could also be useful for catching this on review. 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. I think the first version of the schema had all key alphabetically order, but that was a pain, and I did not know how to enforce it (or even if it should be enforced) 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. Once done, its easy to keep done right? Then its pretty obvious. I think you can only enforce with review though, or doing a custom JSON parser of sorts, as most throw order out. 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 not look easy to me...
Automation looks more trustworthy to me 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. Out of scope for this PR tho. 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.
Sure cf https://redmine.openinfosecfoundation.org/issues/6691 |
||
} | ||
}, | ||
"additionalProperties": false | ||
|
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.
@jasonish should we add description for these added fields ?
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.
aa
is already present !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.
Yes, will help with documentation generation.