Skip to content

Commit

Permalink
Updated examples with new formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hyakuhei committed Jul 24, 2021
1 parent 53fb3be commit 4b54c70
Show file tree
Hide file tree
Showing 58 changed files with 232 additions and 195 deletions.
40 changes: 20 additions & 20 deletions examples/OPA_orchestration/AggregatedDfd-dfd
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
digraph "Aggregated DFD" {
edge [dir=forward]
color=blue rankdir=LR
node [fontname=Arial fontsize=14]
digraph all {
color=blue fontname=Arial rankdir=LR
node [fontname=Arial fontsize=11 shape=box style=rounded]
edge [fontname=Arial fontsize=11]
Developer
subgraph "cluster_Control Cluster" {
graph [color=red fontname=Arial fontsize=12 label="Control Cluster" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Control Cluster" style=dashed]
"Cluster Orchestrator"
}
subgraph cluster_AWS {
graph [color=red fontname=Arial fontsize=12 label=AWS line=dotted]
graph [color=red fontname=Arial fontsize=11 label=AWS style=dashed]
IAM
EKS
}
subgraph "cluster_New AWS Account" {
graph [color=red fontname=Arial fontsize=12 label="New AWS Account" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="New AWS Account" style=dashed]
subgraph "cluster_New Kubernetes Cluster" {
graph [color=red fontname=Arial fontsize=12 label="New Kubernetes Cluster" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="New Kubernetes Cluster" style=dashed]
"k8s API"
}
}
subgraph "cluster_Cluster Orchestrator" {
graph [color=red fontname=Arial fontsize=12 label="Cluster Orchestrator" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Cluster Orchestrator" style=dashed]
"Admission Controller"
OPA
}
subgraph "cluster_Version Control" {
graph [color=red fontname=Arial fontsize=12 label="Version Control" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Version Control" style=dashed]
"Policy Repo"
}
Developer -> "Cluster Orchestrator"
"Cluster Orchestrator" -> "Cluster Orchestrator"
"Cluster Orchestrator" -> IAM
"Cluster Orchestrator" -> EKS
"Cluster Orchestrator" -> "k8s API"
Developer -> "k8s API"
"k8s API" -> "Admission Controller"
"Admission Controller" -> OPA
OPA -> "Policy Repo"
OPA -> "k8s API"
Developer -> "Cluster Orchestrator" [dir=forward]
"Cluster Orchestrator" -> "Cluster Orchestrator" [dir=forward]
"Cluster Orchestrator" -> IAM [dir=both]
"Cluster Orchestrator" -> EKS [dir=both]
"Cluster Orchestrator" -> "k8s API" [dir=forward]
Developer -> "k8s API" [dir=both]
"k8s API" -> "Admission Controller" [dir=forward]
"Admission Controller" -> OPA [dir=forward]
OPA -> "Policy Repo" [dir=both]
OPA -> "k8s API" [dir=forward]
}
Binary file modified examples/OPA_orchestration/AggregatedDfd-dfd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions examples/OPA_orchestration/Developer creates a pod-dfd
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
digraph "Developer creates a pod" {
color=blue rankdir=LR
node [fontname=Arial fontsize=14]
color=blue fontname=Arial rankdir=LR
node [fontname=Arial fontsize=11 shape=box style=rounded]
edge [fontname=Arial fontsize=11]
Developer
subgraph "cluster_New AWS Account" {
graph [color=red fontname=Arial fontsize=12 label="New AWS Account" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="New AWS Account" style=dashed]
subgraph "cluster_New Kubernetes Cluster" {
graph [color=red fontname=Arial fontsize=12 label="New Kubernetes Cluster" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="New Kubernetes Cluster" style=dashed]
"k8s API"
}
}
subgraph "cluster_Cluster Orchestrator" {
graph [color=red fontname=Arial fontsize=12 label="Cluster Orchestrator" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Cluster Orchestrator" style=dashed]
"Admission Controller"
OPA
}
subgraph "cluster_Version Control" {
graph [color=red fontname=Arial fontsize=12 label="Version Control" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Version Control" style=dashed]
"Policy Repo"
}
Developer -> "k8s API" [label="(1) Create POD"]
Expand Down
Binary file modified examples/OPA_orchestration/Developer creates a pod-dfd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions examples/OPA_orchestration/Developer requests a new cluster-dfd
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
digraph "Developer requests a new cluster" {
color=blue rankdir=LR
node [fontname=Arial fontsize=14]
color=blue fontname=Arial rankdir=LR
node [fontname=Arial fontsize=11 shape=box style=rounded]
edge [fontname=Arial fontsize=11]
Developer
subgraph "cluster_Control Cluster" {
graph [color=red fontname=Arial fontsize=12 label="Control Cluster" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Control Cluster" style=dashed]
"Cluster Orchestrator"
}
subgraph cluster_AWS {
graph [color=red fontname=Arial fontsize=12 label=AWS line=dotted]
graph [color=red fontname=Arial fontsize=11 label=AWS style=dashed]
IAM
EKS
}
subgraph "cluster_New AWS Account" {
graph [color=red fontname=Arial fontsize=12 label="New AWS Account" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="New AWS Account" style=dashed]
subgraph "cluster_New Kubernetes Cluster" {
graph [color=red fontname=Arial fontsize=12 label="New Kubernetes Cluster" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="New Kubernetes Cluster" style=dashed]
"k8s API"
}
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 8 additions & 7 deletions examples/aws-eks-add-on-permissions/AggregatedDfd-dfd
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
digraph all {
color=blue rankdir=LR
node [fontname=Arial fontsize=14]
color=blue fontname=Arial rankdir=LR
node [fontname=Arial fontsize=11 shape=box style=rounded]
edge [fontname=Arial fontsize=11]
User
subgraph "cluster_AWS SVCs" {
graph [color=red fontname=Arial fontsize=12 label="AWS SVCs" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="AWS SVCs" style=dashed]
EKS
IAM
VPC
}
subgraph "cluster_Single Tenant VPC" {
graph [color=red fontname=Arial fontsize=12 label="Single Tenant VPC" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Single Tenant VPC" style=dashed]
subgraph "cluster_Kubernetes Control Plane" {
graph [color=red fontname=Arial fontsize=12 label="Kubernetes Control Plane" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Kubernetes Control Plane" style=dashed]
"Kube API"
"eks-pod-identity-webhook"
}
}
subgraph "cluster_Customer Account" {
graph [color=red fontname=Arial fontsize=12 label="Customer Account" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Customer Account" style=dashed]
subgraph "cluster_Kubernetes Data Plane" {
graph [color=red fontname=Arial fontsize=12 label="Kubernetes Data Plane" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Kubernetes Data Plane" style=dashed]
Kubelet
"CNI Pod"
}
Expand Down
Binary file modified examples/aws-eks-add-on-permissions/AggregatedDfd-dfd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
digraph "Associate IAM role to a cluster service account" {
color=blue rankdir=LR
node [fontname=Arial fontsize=14]
color=blue fontname=Arial rankdir=LR
node [fontname=Arial fontsize=11 shape=box style=rounded]
edge [fontname=Arial fontsize=11]
User
subgraph "cluster_Single Tenant VPC" {
graph [color=red fontname=Arial fontsize=12 label="Single Tenant VPC" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Single Tenant VPC" style=dashed]
subgraph "cluster_Kubernetes Control Plane" {
graph [color=red fontname=Arial fontsize=12 label="Kubernetes Control Plane" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Kubernetes Control Plane" style=dashed]
"Kube API"
}
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions examples/aws-eks-add-on-permissions/CNI configures VPC-dfd
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
digraph "CNI configures VPC" {
color=blue rankdir=LR
node [fontname=Arial fontsize=14]
color=blue fontname=Arial rankdir=LR
node [fontname=Arial fontsize=11 shape=box style=rounded]
edge [fontname=Arial fontsize=11]
subgraph "cluster_Customer Account" {
graph [color=red fontname=Arial fontsize=12 label="Customer Account" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Customer Account" style=dashed]
subgraph "cluster_Kubernetes Data Plane" {
graph [color=red fontname=Arial fontsize=12 label="Kubernetes Data Plane" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Kubernetes Data Plane" style=dashed]
"CNI Pod"
}
}
subgraph "cluster_AWS SVCs" {
graph [color=red fontname=Arial fontsize=12 label="AWS SVCs" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="AWS SVCs" style=dashed]
VPC
}
"CNI Pod" -> VPC [label="(1) Update VPC configuration,
Expand Down
Binary file modified examples/aws-eks-add-on-permissions/CNI configures VPC-dfd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
digraph "Create an IAM OIDC provider for cluster" {
color=blue rankdir=LR
node [fontname=Arial fontsize=14]
color=blue fontname=Arial rankdir=LR
node [fontname=Arial fontsize=11 shape=box style=rounded]
edge [fontname=Arial fontsize=11]
User
subgraph "cluster_AWS SVCs" {
graph [color=red fontname=Arial fontsize=12 label="AWS SVCs" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="AWS SVCs" style=dashed]
EKS
IAM
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
digraph "Create an IAM policy & role to allow CPI addon to manage VPC" {
color=blue rankdir=LR
node [fontname=Arial fontsize=14]
color=blue fontname=Arial rankdir=LR
node [fontname=Arial fontsize=11 shape=box style=rounded]
edge [fontname=Arial fontsize=11]
User
subgraph "cluster_AWS SVCs" {
graph [color=red fontname=Arial fontsize=12 label="AWS SVCs" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="AWS SVCs" style=dashed]
IAM
}
User -> IAM [label="(1) Create Policy"]
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 8 additions & 7 deletions examples/aws-eks-add-on-permissions/Deploy Addon-dfd
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
digraph "Deploy Addon" {
color=blue rankdir=LR
node [fontname=Arial fontsize=14]
color=blue fontname=Arial rankdir=LR
node [fontname=Arial fontsize=11 shape=box style=rounded]
edge [fontname=Arial fontsize=11]
User
subgraph "cluster_AWS SVCs" {
graph [color=red fontname=Arial fontsize=12 label="AWS SVCs" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="AWS SVCs" style=dashed]
EKS
}
subgraph "cluster_Single Tenant VPC" {
graph [color=red fontname=Arial fontsize=12 label="Single Tenant VPC" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Single Tenant VPC" style=dashed]
subgraph "cluster_Kubernetes Control Plane" {
graph [color=red fontname=Arial fontsize=12 label="Kubernetes Control Plane" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Kubernetes Control Plane" style=dashed]
"Kube API"
"eks-pod-identity-webhook"
}
}
subgraph "cluster_Customer Account" {
graph [color=red fontname=Arial fontsize=12 label="Customer Account" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Customer Account" style=dashed]
subgraph "cluster_Kubernetes Data Plane" {
graph [color=red fontname=Arial fontsize=12 label="Kubernetes Data Plane" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Kubernetes Data Plane" style=dashed]
Kubelet
"CNI Pod"
}
Expand Down
Binary file modified examples/aws-eks-add-on-permissions/Deploy Addon-dfd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions examples/aws-iam-authenticator/API traffic-dfd
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
digraph "API traffic" {
color=blue rankdir=LR
node [fontname=Arial fontsize=14]
color=blue fontname=Arial rankdir=LR
node [fontname=Arial fontsize=11 shape=box style=rounded]
edge [fontname=Arial fontsize=11]
subgraph "cluster_User Machine" {
graph [color=red fontname=Arial fontsize=12 label="User Machine" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="User Machine" style=dashed]
kubectl
}
subgraph "cluster_AWS Cloud" {
graph [color=red fontname=Arial fontsize=12 label="AWS Cloud" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="AWS Cloud" style=dashed]
"AWS STS"
subgraph "cluster_EKS Cluster" {
graph [color=red fontname=Arial fontsize=12 label="EKS Cluster" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="EKS Cluster" style=dashed]
"Kubernetes API"
"aws-iam-authenticator"
}
Expand Down
Binary file modified examples/aws-iam-authenticator/API traffic-dfd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions examples/aws-iam-authenticator/AggregatedDfd-dfd
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
digraph all {
color=blue rankdir=LR
node [fontname=Arial fontsize=14]
color=blue fontname=Arial rankdir=LR
node [fontname=Arial fontsize=11 shape=box style=rounded]
edge [fontname=Arial fontsize=11]
subgraph "cluster_User Machine" {
graph [color=red fontname=Arial fontsize=12 label="User Machine" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="User Machine" style=dashed]
kubectl
"aws-cli"
}
subgraph "cluster_AWS Cloud" {
graph [color=red fontname=Arial fontsize=12 label="AWS Cloud" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="AWS Cloud" style=dashed]
"AWS STS"
subgraph "cluster_EKS Cluster" {
graph [color=red fontname=Arial fontsize=12 label="EKS Cluster" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="EKS Cluster" style=dashed]
"Kubernetes API"
"aws-iam-authenticator"
}
Expand Down
Binary file modified examples/aws-iam-authenticator/AggregatedDfd-dfd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
digraph "kubectl gets pre-signed URL" {
color=blue rankdir=LR
node [fontname=Arial fontsize=14]
color=blue fontname=Arial rankdir=LR
node [fontname=Arial fontsize=11 shape=box style=rounded]
edge [fontname=Arial fontsize=11]
subgraph "cluster_User Machine" {
graph [color=red fontname=Arial fontsize=12 label="User Machine" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="User Machine" style=dashed]
kubectl
"aws-cli"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 11 additions & 14 deletions examples/bookstore/AggregatedDfd-dfd
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
digraph "Aggregated DFD" {
edge [dir=forward]
color=blue rankdir=LR
node [fontname=Arial fontsize=14]
digraph all {
color=blue fontname=Arial rankdir=LR
node [fontname=Arial fontsize=11 shape=box style=rounded]
edge [fontname=Arial fontsize=11]
Customer
subgraph "cluster_Front End" {
graph [color=red fontname=Arial fontsize=12 label="Front End" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Front End" style=dashed]
Nginx
}
subgraph "cluster_Back End" {
graph [color=red fontname=Arial fontsize=12 label="Back End" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Back End" style=dashed]
"User Database"
}
subgraph "cluster_Back End" {
graph [color=red fontname=Arial fontsize=12 label="Back End" line=dotted]
"Stock Database"
}
subgraph "cluster_External CDN" {
graph [color=red fontname=Arial fontsize=12 label="External CDN" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="External CDN" style=dashed]
CDN
}
Customer -> Nginx
Nginx -> "User Database"
Nginx -> "Stock Database"
Customer -> CDN
Customer -> Nginx [dir=both]
Nginx -> "User Database" [dir=both]
Nginx -> "Stock Database" [dir=both]
Customer -> CDN [dir=forward]
}
Binary file modified examples/bookstore/AggregatedDfd-dfd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions examples/bookstore/Customer Lists Books-dfd
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
digraph "Customer Lists Books" {
color=blue rankdir=LR
node [fontname=Arial fontsize=14]
color=blue fontname=Arial rankdir=LR
node [fontname=Arial fontsize=11 shape=box style=rounded]
edge [fontname=Arial fontsize=11]
Customer
subgraph "cluster_Front End" {
graph [color=red fontname=Arial fontsize=12 label="Front End" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Front End" style=dashed]
Nginx
}
subgraph "cluster_Back End" {
graph [color=red fontname=Arial fontsize=12 label="Back End" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Back End" style=dashed]
"Stock Database"
}
Customer -> Nginx [label="(1) GET /list, Login Cookie"]
Expand Down
Binary file modified examples/bookstore/Customer Lists Books-dfd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions examples/bookstore/Customer Login-dfd
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
digraph "Customer Login" {
color=blue rankdir=LR
node [fontname=Arial fontsize=14]
color=blue fontname=Arial rankdir=LR
node [fontname=Arial fontsize=11 shape=box style=rounded]
edge [fontname=Arial fontsize=11]
Customer
subgraph "cluster_Front End" {
graph [color=red fontname=Arial fontsize=12 label="Front End" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Front End" style=dashed]
Nginx
}
subgraph "cluster_Back End" {
graph [color=red fontname=Arial fontsize=12 label="Back End" line=dotted]
graph [color=red fontname=Arial fontsize=11 label="Back End" style=dashed]
"User Database"
}
Customer -> Nginx [label="(1) GET /Login credentials"]
Expand Down
Binary file modified examples/bookstore/Customer Login-dfd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4b54c70

Please sign in to comment.