Setting the file. One moment.
Subchapter 46.5
examples/data-flow-diagram.mdMarkdown814 BView on GitHub
Use Mermaid syntax for text-based DFDs that can be version-controlled.
Bitwarden is moving toward a Structurizr-based approach for persistent architecture diagrams. For ad-hoc threat modeling, Mermaid or Excalidraw are acceptable.
graph LR
subgraph Trust Boundary: Client
A[Browser Extension] --> B[Client SDK]
end
subgraph Trust Boundary: Network
B -->|TLS| C[API Gateway]
end
subgraph Trust Boundary: Server
C --> D[Identity Service]
C --> E[API Service]
E --> F[(Database)]
E --> G[Key Management]
end
style A fill:#e1f5fe
style F fill:#fff3e0Include: components, data stores, external entities, data flows with protocols, and trust boundaries.