Example #1
0
pods.inBoundary = contain
scheduler.inBoundary = mcomps
controllers.inBoundary = mcomps
pods.inBoundary = contain
iptables.inBoundary = worker
miu.inBoundary = apisrv
ia.inBoundary = contain
ea.inBoundary = inet
admin.inBoundary = apisrv
dev.inBoundary = inet
eu.inBoundary = inet

# Dataflows

apiserver2etcd = Dataflow(apiserver, etcd, "All kube-apiserver data")
apiserver2etcd.isEncrypted = True
apiserver2etcd.protocol = "HTTPS"

apiserver2kubelet = Dataflow(apiserver, kubelet,
                             "kubelet Health, Status, &c.")
apiserver2kubelet.isEncrypted = False
apiserver2kubelet.protocol = "HTTP"

apiserver2kubeproxy = Dataflow(apiserver, kubeproxy,
                               "kube-proxy Health, Status, &c.")
apiserver2kubeproxy.isEncrypted = False
apiserver2kubeproxy.protocol = "HTTP"

apiserver2scheduler = Dataflow(apiserver, scheduler,
                               "kube-scheduler Health, Status, &c.")
apiserver2scheduler.isEncrypted = False
Example #2
0
db_search = Datastore("Restaurants")
db_search.inBoundary = DB
db_search.inScope = True
db_search.authenticatesSource = True

db_rating = Datastore("Ratings")
db_rating.inBoundary = DB
db_rating.inScope = False

db_reservations = Datastore("Reservations")
db_reservations.inBoundary = DB
db_reservations.inScope = False

# Define flows
search_user_to_api = Dataflow(user, api_search, "User enters search")
search_user_to_api.isEncrypted = True #JIRA TEST-0001
search_user_to_api.order =1
search_api_to_db = Dataflow(api_search, db_search, "Search critirea")
search_api_to_db.order = 2
search_db_to_api = Dataflow(db_search, api_search, "Results")
search_db_to_api.order = 3
search_api_to_user = Dataflow(api_search, user, "Results")
search_api_to_user.order = 4

reservation_user_to_api = Dataflow(user, api_reservation, "User enters reservation")
reservation_user_to_api.isEncrypted = True
reservation_user_to_api.order =5
reservation_api_to_db = Dataflow(api_reservation, db_reservations, "Check availability")
reservation_api_to_db.order = 6
reservation_db_to_api = Dataflow(db_reservations, api_reservation, "Returns availability")
reservation_db_to_api.order = 7