Skip to content
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

render Boundary.inBoundary in the DFD #52

Merged
merged 1 commit into from
Nov 5, 2019

Conversation

redshiftzero
Copy link
Contributor

Here's a simple approach to render nested Boundary objects (fixes #13), let me know what you think

Example:

#!/usr/bin/env python3
from pytm.pytm import Actor, Boundary, TM, Process, Server

tm = TM("example")
tm.description = "my threat model"

datacenter = Boundary("datacenter")
server_rack = Boundary("server rack")
server_rack.inBoundary = datacenter

app_server = Server("application server")
app_server.inBoundary = server_rack

mon_server = Server("monitoring server")
mon_server.inBoundary = server_rack

admin = Actor("admin")
admin.inBoundary = datacenter

tm.process()

before this patch:

dfd

after this patch:

dfd

@ghost
Copy link

ghost commented Nov 5, 2019

DeepCode Report (#29518a)

DeepCode analyzed this pull request.
There are no new issues.

@rgacote
Copy link

rgacote commented Nov 5, 2019 via email

Copy link
Collaborator

@izar izar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, simple and elegant, thank you!

@izar izar merged commit 2bd1aff into OWASP:master Nov 5, 2019
@redshiftzero
Copy link
Contributor Author

thanks for the fast review!

@redshiftzero redshiftzero deleted the nested-boundaries branch November 5, 2019 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Boundary.inBoundary does not render in the DFD
3 participants