# liorenline/honeypot architecture

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

- Interactive diagram: https://gitdiagram.com/liorenline/honeypot
- Repository: https://github.com/liorenline/honeypot

## Overview

The repository appears to define infrastructure for deploying and operating a Cowrie honeypot, with host configuration managed by Ansible and a Docker-based logging and dashboard stack. The README contains only the project name and no source excerpts were provided, so this map reflects the file tree; runtime relationships and the precise deployment workflow cannot be verified.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_provisioning["Cloud provisioning"]
  node_network["Network resources<br/>[network.tf]"]
  node_compute["Compute resources<br/>[compute.tf]"]
  node_security["Cloud security<br/>[security.tf]"]
  node_outputs["Deployment outputs<br/>[output.tf]"]
end

subgraph group_configuration["Host configuration"]
  node_ansible_site["Host playbook<br/>[site.yml]"]
  node_common_role["Common setup"]
  node_docker_role["Docker setup"]
  node_firewall_role["Firewall setup"]
  node_ssh_role["SSH hardening"]
  node_honeypot_role["Honeypot setup"]
end

subgraph group_honeypot["Honeypot runtime"]
  node_compose["Container stack<br/>[docker-compose.yml]"]
  node_cowrie["Cowrie service<br/>[cowrie.cfg]"]
end

subgraph group_observability["Monitoring"]
  node_alloy["Log collection<br/>[config.alloy]"]
  node_loki[("Log storage<br/>[loki-config.yaml]")]
  node_grafana["Dashboards"]
end

click node_network "https://github.com/liorenline/honeypot/blob/main/terraform/network.tf"
click node_compute "https://github.com/liorenline/honeypot/blob/main/terraform/compute.tf"
click node_security "https://github.com/liorenline/honeypot/blob/main/terraform/security.tf"
click node_outputs "https://github.com/liorenline/honeypot/blob/main/terraform/output.tf"
click node_ansible_site "https://github.com/liorenline/honeypot/blob/main/ansible/site.yml"
click node_common_role "https://github.com/liorenline/honeypot/tree/main/ansible/roles/common"
click node_docker_role "https://github.com/liorenline/honeypot/tree/main/ansible/roles/docker"
click node_firewall_role "https://github.com/liorenline/honeypot/tree/main/ansible/roles/firewall"
click node_ssh_role "https://github.com/liorenline/honeypot/tree/main/ansible/roles/ssh_hardening"
click node_honeypot_role "https://github.com/liorenline/honeypot/tree/main/ansible/roles/honeypot"
click node_compose "https://github.com/liorenline/honeypot/blob/main/docker/docker-compose.yml"
click node_cowrie "https://github.com/liorenline/honeypot/blob/main/docker/cowrie/cowrie.cfg"
click node_alloy "https://github.com/liorenline/honeypot/blob/main/docker/alloy/config.alloy"
click node_loki "https://github.com/liorenline/honeypot/blob/main/docker/loki/loki-config.yaml"
click node_grafana "https://github.com/liorenline/honeypot/blob/main/docker/grafana/dashboards/honeypot-overview.json"

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_network,node_compute,node_security,node_outputs toneBlue
class node_ansible_site,node_common_role,node_docker_role,node_firewall_role,node_ssh_role,node_honeypot_role toneAmber
class node_compose,node_cowrie toneMint
class node_alloy,node_loki,node_grafana toneRose
```

## Components

### Cloud provisioning

- [Network resources](https://github.com/liorenline/honeypot/blob/main/terraform/network.tf): `terraform/network.tf`
- [Compute resources](https://github.com/liorenline/honeypot/blob/main/terraform/compute.tf): `terraform/compute.tf`
- [Cloud security](https://github.com/liorenline/honeypot/blob/main/terraform/security.tf): `terraform/security.tf`
- [Deployment outputs](https://github.com/liorenline/honeypot/blob/main/terraform/output.tf): `terraform/output.tf`

### Host configuration

- [Host playbook](https://github.com/liorenline/honeypot/blob/main/ansible/site.yml): `ansible/site.yml`
- [Common setup](https://github.com/liorenline/honeypot/tree/main/ansible/roles/common): `ansible/roles/common`
- [Docker setup](https://github.com/liorenline/honeypot/tree/main/ansible/roles/docker): `ansible/roles/docker`
- [Firewall setup](https://github.com/liorenline/honeypot/tree/main/ansible/roles/firewall): `ansible/roles/firewall`
- [SSH hardening](https://github.com/liorenline/honeypot/tree/main/ansible/roles/ssh_hardening): `ansible/roles/ssh_hardening`
- [Honeypot setup](https://github.com/liorenline/honeypot/tree/main/ansible/roles/honeypot): `ansible/roles/honeypot`

### Honeypot runtime

- [Container stack](https://github.com/liorenline/honeypot/blob/main/docker/docker-compose.yml): `docker/docker-compose.yml`
- [Cowrie service](https://github.com/liorenline/honeypot/blob/main/docker/cowrie/cowrie.cfg): `docker/cowrie/cowrie.cfg`

### Monitoring

- [Log collection](https://github.com/liorenline/honeypot/blob/main/docker/alloy/config.alloy): `docker/alloy/config.alloy`
- [Log storage](https://github.com/liorenline/honeypot/blob/main/docker/loki/loki-config.yaml): `docker/loki/loki-config.yaml`
- [Dashboards](https://github.com/liorenline/honeypot/blob/main/docker/grafana/dashboards/honeypot-overview.json): `docker/grafana/dashboards/honeypot-overview.json`
