Exemplo n.º 1
0
customer_client.inBoundary = Customer_Client_Web
# user.levels = [2]

merchant_web = Server("Merchant Web Server")
merchant_web.inBoundary = Merchant_Web
merchant_web.OS = "Ubuntu"
merchant_web.isHardened = True
merchant_web.onAWS = True
# web.levels = [2]

stripe_api = ExternalEntity("Stripe API service")
stripe_api.inBoundary = Stripe_API
stripe_api.onAWS = False

stripe_process = Process("Stripe Payment Service")
stripe_process.inBoundary = Stripe_API

customer_to_customer_client = Dataflow(
    customer, customer_client, "Customer logs into the merchant site (*)")
customer_to_customer_client.protocol = "HTTPS"
customer_to_customer_client.dstPort = 443
customer_to_customer_client.data = 'OAuth'

customer_to_customer_client = Dataflow(
    customer, customer_client,
    "Customer proceeds to payment page to make a purchase (*)")
customer_to_customer_client.protocol = "HTTPS"
customer_to_customer_client.dstPort = 443

customer_client_to_merchant_web = Dataflow(
    customer_client, merchant_web,