-
Notifications
You must be signed in to change notification settings - Fork 183
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
DataFlow object attributes need work (or moves) #111
Comments
Just another related note on |
Since we mark dataflows as either requests or responses Sources already have a
Other sink attributes you mentioned also are treated as defaults. As for |
A minimum example:
a more verbose one:
where the Both examples will produce exactly same output. |
See Issue #35 for how implementsCommunicationProtocol is used (incorrectly) now... |
@nineinchnick Thanks for your feedback. Perhaps the response related items are properly used in DataFlow, but my other suggested changes I think are still valid, for the reasons I called out; and that the properties (such as |
I agree about |
|
Question on removing existing attrs: if a model attempts to set a non-existent attr, is the behavior to add it to the instance of the object? |
I was thinking of detecting when someone sets non-existing attributes to detect typos. This could be optional, similar to how we already detect duplicate dataflows. Anyway, removals are always breaking changes so we need to tread carefully here. We haven't yet adopted semver officially but this would go into 2.0 if at all. |
This may become a problem moving forward, imho. I can foresee (or would like to move us in the direction of) supporting the addition of attributes that do not yet have detection in rules. This could be metadata or documentation within a model, or attrs for which we don't yet have threats, or that threat definition may vary by consumer of a single model (the creator of a model is not always the consumer of the model). |
So interesting - there is no rule that looks for |
I'm trying to address the tls thingy here: #123 What's left in this issue? |
I also suggest removing |
There's no doubt that there is a lot of space for a semantic argument here of where any given attribute "belongs". I want to add to this discussion the dimension of "belongs according to whom?" . |
For these reasons pytm should provide an unambiguous set of attrs and be easily extendable. Still, this is fuzzy, so just as few as possible. And if we don't have threats or docs for an attr it should not be included. |
We also already have |
Many of the attributes defined for the DataFlow object belong elsewhere:
Correctly assigned:
Maybe correct:
Should be a property of the Source:
Should be a property of the Sink:
Should be a property of either source or sink:
The text was updated successfully, but these errors were encountered: