# owasp/docker-security architecture

> Architecture diagram of the GitHub repository owasp/docker-security, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/owasp/docker-security
- Repository: https://github.com/owasp/docker-security

## Overview

This repository is a documentary security guide, not a runtime application. Its workflow is for an engineer or auditor to use the guide as a specification or audit aid, consider the threat model first, then consult its ten proactive security-control chapters. The chapters cover identity, patching, network boundaries, hardening, security context, secrets, resources, image integrity, immutability, and logging. The README documents the threat-model-first structure and intended uses; no chapter excerpts were provided, so relationships between individual control chapters are not inferred.

Main entry points: [`README.md`](https://github.com/owasp/docker-security/blob/main/README.md) (Docker Security guide), [`001 - Threats.md`](https://github.com/owasp/docker-security/blob/main/001%20-%20Threats.md) (Threat model), [`D00 - Overview.md`](https://github.com/owasp/docker-security/blob/main/D00%20-%20Overview.md) (Control overview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_framing["Guide framing"]
  node_guide["Docker Security guide<br/>[README.md]"]
  node_introduction["Introduction"]
  node_threats["Threat model<br/>[001 - Threats.md]"]
  node_overview["Control overview<br/>[D00 - Overview.md]"]
  node_next["What's next"]
end

subgraph group_design["Design controls"]
  node_user_mapping["Secure user mapping"]
  node_network["Network segmentation"]
  node_hardening["Secure defaults"]
  node_image_integrity["Image integrity"]
end

subgraph group_runtime["Runtime controls"]
  node_security_context["Security contexts"]
  node_secrets["Secret protection"]
  node_resources["Resource protection"]
  node_immutable["Immutable paradigm"]
end

subgraph group_operations["Operational controls"]
  node_patch_management["Patch management"]
  node_logging["Logging<br/>[D10 - Logging.md]"]
end

node_engineer(("Engineer or auditor"))

node_engineer -->|"uses as specification or audit guide"| node_guide
node_guide -->|"models threats upfront"| node_threats
node_threats -->|"precedes controls"| node_overview

click node_guide "https://github.com/owasp/docker-security/blob/main/README.md"
click node_introduction "https://github.com/owasp/docker-security/blob/main/000%20-%20Introduction.md"
click node_threats "https://github.com/owasp/docker-security/blob/main/001%20-%20Threats.md"
click node_overview "https://github.com/owasp/docker-security/blob/main/D00%20-%20Overview.md"
click node_user_mapping "https://github.com/owasp/docker-security/blob/main/D01%20-%20Secure%20User%20Mapping.md"
click node_patch_management "https://github.com/owasp/docker-security/blob/main/D02%20-%20Patch%20Management%20Strategy.md"
click node_network "https://github.com/owasp/docker-security/blob/main/D03%20-%20Network%20Segmentation%20and%20Firewalling.md"
click node_hardening "https://github.com/owasp/docker-security/blob/main/D04%20-%20Secure%20Defaults%20and%20Hardening.md"
click node_security_context "https://github.com/owasp/docker-security/blob/main/D05%20-%20Maintain%20Security%20Contexts.md"
click node_secrets "https://github.com/owasp/docker-security/blob/main/D06%20-%20Protect%20Secrets.md"
click node_resources "https://github.com/owasp/docker-security/blob/main/D07%20-%20Resource%20Protection.md"
click node_image_integrity "https://github.com/owasp/docker-security/blob/main/D08%20-%20Container%20Image%20Integrity%20and%20Origin.md"
click node_immutable "https://github.com/owasp/docker-security/blob/main/D09%20-%20Follow%20Immutable%20Paradigm.md"
click node_logging "https://github.com/owasp/docker-security/blob/main/D10%20-%20Logging.md"
click node_next "https://github.com/owasp/docker-security/blob/main/E11%20-%20What's%20Next%3F.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_guide,node_introduction,node_threats,node_overview,node_next toneBlue
class node_user_mapping,node_network,node_hardening,node_image_integrity toneAmber
class node_security_context,node_secrets,node_resources,node_immutable toneMint
class node_patch_management,node_logging toneRose
class node_engineer toneIndigo
```

## Components

### Guide framing

- [Docker Security guide](https://github.com/owasp/docker-security/blob/main/README.md): `README.md`
- [Introduction](https://github.com/owasp/docker-security/blob/main/000%20-%20Introduction.md): `000 - Introduction.md`
- [Threat model](https://github.com/owasp/docker-security/blob/main/001%20-%20Threats.md): `001 - Threats.md`
- [Control overview](https://github.com/owasp/docker-security/blob/main/D00%20-%20Overview.md): `D00 - Overview.md`
- [What's next](https://github.com/owasp/docker-security/blob/main/E11%20-%20What's%20Next%3F.md): `E11 - What's Next?.md`

### Design controls

- [Secure user mapping](https://github.com/owasp/docker-security/blob/main/D01%20-%20Secure%20User%20Mapping.md): `D01 - Secure User Mapping.md`
- [Network segmentation](https://github.com/owasp/docker-security/blob/main/D03%20-%20Network%20Segmentation%20and%20Firewalling.md): `D03 - Network Segmentation and Firewalling.md`
- [Secure defaults](https://github.com/owasp/docker-security/blob/main/D04%20-%20Secure%20Defaults%20and%20Hardening.md): `D04 - Secure Defaults and Hardening.md`
- [Image integrity](https://github.com/owasp/docker-security/blob/main/D08%20-%20Container%20Image%20Integrity%20and%20Origin.md): `D08 - Container Image Integrity and Origin.md`

### Runtime controls

- [Security contexts](https://github.com/owasp/docker-security/blob/main/D05%20-%20Maintain%20Security%20Contexts.md): `D05 - Maintain Security Contexts.md`
- [Secret protection](https://github.com/owasp/docker-security/blob/main/D06%20-%20Protect%20Secrets.md): `D06 - Protect Secrets.md`
- [Resource protection](https://github.com/owasp/docker-security/blob/main/D07%20-%20Resource%20Protection.md): `D07 - Resource Protection.md`
- [Immutable paradigm](https://github.com/owasp/docker-security/blob/main/D09%20-%20Follow%20Immutable%20Paradigm.md): `D09 - Follow Immutable Paradigm.md`

### Operational controls

- [Patch management](https://github.com/owasp/docker-security/blob/main/D02%20-%20Patch%20Management%20Strategy.md): `D02 - Patch Management Strategy.md`
- [Logging](https://github.com/owasp/docker-security/blob/main/D10%20-%20Logging.md): `D10 - Logging.md`

### Other components

- **Engineer or auditor**

## Connections

- Engineer or auditor → Docker Security guide: uses as specification or audit guide (evidence: `README.md`)
- Docker Security guide → Threat model: models threats upfront (evidence: `README.md`)
- Threat model → Control overview: precedes controls (evidence: `README.md`)
