-
Notifications
You must be signed in to change notification settings - Fork 275
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
Add validation guidelines #1130
Comments
secure-systems-lab/code-style-guidelines#18 has an interesting discussion about input validation, control flow and program consistency. |
The approach I would take to this research project, is: Understand the current validation mechanism in use:
Review existing external/3rd-party solutions:
Understand options for custom validation logic
For each of the three possible new approaches suggested above, I would expect some prototype code to be written to get a feel for how the approach fits with our new code. I'd be inclined to base on #1279, if it has not already been merged by the time we get to experimenting with new approaches. Goals:
Outcomes:
Considerations:
Next steps:
See also, the related issue on input validation for metadata API: #1140 Other possibly useful references:
|
The initial version of the ADR addressing this issue is out: #1301. |
Update on what has happened so far:
I will unassign myself from this issue for now, because I am not actively working on validation guidelines ADR. |
Together with @lukpueh we have discussed that a formal ADR about validation guidelines seems too much of work and we are not sure we needed it as we have already implemented validation for all Metadata classes (see #1140 (comment)). Even if there is no ADR there is a sense in providing some guidance about how the maintainers feel about validation, what validations options were discussed and what requirements should be taken into account when adding validation to python-tuf. It seems that the best place to answer those questions is in a blogpost published on https://theupdateframework.github.io/python-tuf/ and together with @lukpueh agree that this is the logical step that will close this issue. |
There seems to be agreement to discontinue the securesystemslib schema facility (see secure-systems-lab/securesystemslib#183). We still need to be able to validate all inputs at the user boundary (type annotations should make this a lot easier), and provide tools to check if metadata is spec compliant (maybe we can use something like JSON schema?).
At any rate, it would be helpful for contributors to provide guidelines for validation.
The text was updated successfully, but these errors were encountered: