-
Notifications
You must be signed in to change notification settings - Fork 174
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
allow automatic ordering of dataflows #66
Conversation
DeepCode's analysis on #ba4d14 found:
💬 This comment has been generated by the DeepCode bot, installed by the owner of the repository. The DeepCode bot protects your repository by detecting and commenting on security vulnerabilities or other critical issues. |
I'm not quite sure on this one - it creates a situation where the developer has to keep dataflow state in mind when writing the threat model. Using just element.order they are free to describe flows in any order and then apply order. Can you convince me otherwise? |
I'll certainly try! I think there are 3 main workflows:
For 1 and 2, auto ordering is disabled by default. Turning it on with having only some Dataflows manually ordered would result in having duplicates. This is on purpose to avoid adding complex logic. For 3, I found that I do keep As a workaround, I used something like this:
but this is unnecessarily verbose. I admit I have not tried combining Dataflows from multiple files but again, the option for auto numbering is off by default. |
You make a very good point. Could you perhaps summarize it in the README.md ? Perhaps a section on "TM global attributes" is in order. Also, would you say it should be flippable by command line argument? |
ef50929
to
fe08497
Compare
Updating the README warrants a whole new MR. I do noticed that most of the properties are not self-explanatory and they badly need a description. I'd add it to For this MR I only updated the example in the README. I don't think this should be added as a cli param since it's part of the model and changing it on the fly would make the output less deterministic. |
fe08497
to
ba4d14b
Compare
This is ready to be merged |
Allow automatic ordering of dataflows by setting the
TM.isOrdered
property to True. Only Dataflows without an order assigned are automatically enumerated. This might be slightly confusing if any/not all Dataflows are ordered manually but should not be an issue sinceisOrdered
defaults to False.