# trickest/cloud architecture

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

- Interactive diagram: https://gitdiagram.com/trickest/cloud
- Repository: https://github.com/trickest/cloud

## Overview

1. This repository is primarily a published dataset, not an application codebase. Its core payload is the `ssl/` directory, which contains many numbered CSV shards holding SSL certificate records.

2. The architectural center is a data collection pipeline described in the README and represented by `images/ssl.png`. The repo itself is the final distribution boundary: upstream collection happens elsewhere, and the repository stores the normalized output.

3. The data sources are external cloud provider IP range feeds:
   - AWS IP ranges JSON, filtered to EC2 addresses
   - GCP cloud IP ranges JSON
   These provider feeds define the scan scope and are the first input boundary.

4. The first processing stage is IP range extraction and normalization. The workflow uses shell scripts plus `jq` to pull only relevant cloud ranges, excluding services that are not useful for custom SSL certificate collection.

5. The next stage is range partitioning with `mapcidr`. Large cloud ranges are split into smaller host blocks, which is an important scaling boundary because the full address space is too large to scan serially.

6. Scanning is distributed. The README describes a “file-splitter” node that fans out the CIDR chunks into many parallel jobs across multiple machines. This is the main throughput mechanism in the architecture.

7. Each worker runs `zgrab2` TLS collection against port 443 endpoints. `zgrab2` is the probe layer that connects to live HTTPS services and retrieves certificate metadata from responsive hosts.

8. After collection, a parsing step extracts a fixed schema from the raw scanner output. The resulting fields are:
   - IP Address
   - Common Name
   - Organization
   - Country
   - Locality
   - Province
   - Subject Alternative DNS Name
   - Subject Alternative IP address
   - Self-signed
   This is the normalization boundary between raw scan output and durable tabular data.

9. The output is stored as CSV files in `ssl/`, split into many small chunks. The chunking is deliberate: files are kept around 450 KB so GitHub can render them directly and the dataset stays manageable for browsing.

10. The repository’s publication flow is therefore: cloud IP feeds → CIDR splitting → parallel TLS scanning → certificate field extraction → CSV sharding → GitHub-hosted dataset.

11. The operational model is refresh-driven. The README states that scans are run daily, so the repo represents a continuously updated snapshot of live cloud HTTPS endpoints rather than a one-time archive.

12. The `images/` directory and `README.md` are documentation-only supporting assets. `LICENSE` defines usage terms, but there is no in-repo service runtime, API layer, database, or frontend to diagram beyond the data publishing boundary.

Main entry points: [`README.md`](https://github.com/trickest/cloud/blob/main/README.md) (README), [`ssl`](https://github.com/trickest/cloud/tree/main/ssl) (SSL dataset), [`LICENSE`](https://github.com/trickest/cloud/tree/main/LICENSE) (License)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_docs["Documentation"]
  node_readme["README<br/>docs<br/>[README.md]"]
  node_license["License<br/>policy"]
  node_diagram_img["Pipeline Image<br/>diagram"]
end

subgraph group_sources["Cloud Feeds"]
  node_aws_feed["AWS ranges<br/>external feed"]
  node_gcp_feed["GCP ranges<br/>external feed"]
end

subgraph group_pipeline["Collection Pipeline"]
  node_range_extract["Range filter<br/>shell+jq"]
  node_cidr_split["CIDR split<br/>mapcidr"]
  node_file_splitter["File splitter<br/>fan-out coordinator"]
  node_zgrab2_scan["TLS scan<br/>zgrab2 probe"]
  node_parse_schema["Field parse<br/>normalizer"]
  node_csv_shard["CSV shard<br/>publisher"]
end

subgraph group_dataset["Published Data"]
  node_ssl_data[("SSL dataset<br/>csv shards")]
  node_refresh(("Daily refresh<br/>schedule"))
end

node_readme -->|"documents scope"| node_aws_feed
node_readme -->|"documents scope"| node_gcp_feed
node_readme -->|"states cadence"| node_refresh
node_aws_feed -->|"provides ranges"| node_range_extract
node_gcp_feed -->|"provides ranges"| node_range_extract
node_range_extract -->|"normalizes"| node_cidr_split
node_cidr_split -->|"chunks"| node_file_splitter
node_file_splitter -->|"fans out"| node_zgrab2_scan
node_zgrab2_scan -->|"emits raw"| node_parse_schema
node_parse_schema -->|"writes rows"| node_csv_shard
node_csv_shard -->|"publishes"| node_ssl_data
node_refresh -.->|"restarts"| node_aws_feed
node_refresh -.->|"restarts"| node_gcp_feed
node_diagram_img -.->|"illustrates"| node_readme
node_license -.->|"governs"| node_ssl_data

click node_readme "https://github.com/trickest/cloud/blob/main/README.md"
click node_license "https://github.com/trickest/cloud/tree/main/LICENSE"
click node_ssl_data "https://github.com/trickest/cloud/tree/main/ssl"

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_readme,node_license,node_diagram_img toneBlue
class node_aws_feed,node_gcp_feed toneAmber
class node_range_extract,node_cidr_split,node_file_splitter,node_zgrab2_scan,node_parse_schema,node_csv_shard toneMint
class node_ssl_data,node_refresh toneRose
```

## Components

### Documentation

Repository documentation and usage terms

- [README](https://github.com/trickest/cloud/blob/main/README.md): docs · Describes the daily refresh workflow and publication model · `README.md`
- [License](https://github.com/trickest/cloud/tree/main/LICENSE): policy · Defines dataset usage terms · `LICENSE`
- **Pipeline Image**: diagram · Architecture sketch of the SSL collection flow

### Cloud Feeds

External provider IP range inputs that define scan scope

- **AWS ranges**: external feed · AWS IP range JSON filtered to EC2 scope
- **GCP ranges**: external feed · GCP cloud IP range JSON used for scan scope

### Collection Pipeline

Normalization, partitioning, fan-out scanning, and parsing stages

- **Range filter**: shell+jq · Extracts and normalizes relevant cloud CIDR ranges
- **CIDR split**: mapcidr · Partitions large ranges into smaller host blocks
- **File splitter**: fan-out coordinator · Distributes CIDR chunks into parallel jobs across machines
- **TLS scan**: zgrab2 probe · Collects HTTPS certificate metadata from responsive hosts on port 443
- **Field parse**: normalizer · Extracts the fixed certificate schema from raw scanner output
- **CSV shard**: publisher · Writes compact tabular chunks sized for browser-friendly GitHub rendering

### Published Data

GitHub-hosted CSV shards forming the final dataset boundary

- [SSL dataset](https://github.com/trickest/cloud/tree/main/ssl): csv shards · Final published corpus of numbered certificate-record CSV files under ssl/ · `ssl`
- **Daily refresh**: schedule · Operational cadence that continuously updates the dataset snapshot

## Connections

- README → AWS ranges: documents scope · README describes AWS as one of the upstream inputs
- README → GCP ranges: documents scope · README describes GCP as one of the upstream inputs
- README → Daily refresh: states cadence · Workflow is refreshed daily
- AWS ranges → Range filter: provides ranges · AWS JSON is filtered down to EC2-relevant addresses
- GCP ranges → Range filter: provides ranges · GCP JSON supplies cloud scan scope
- Range filter → CIDR split: normalizes · Relevant ranges are converted into scan-ready CIDRs
- CIDR split → File splitter: chunks · Large ranges are partitioned for distributed execution
- File splitter → TLS scan: fans out · CIDR chunks are assigned to many parallel workers
- TLS scan → Field parse: emits raw · TLS probes produce scanner output for parsing
- Field parse → CSV shard: writes rows · Parsed certificate fields are materialized as tabular records
- CSV shard → SSL dataset: publishes · Small CSV chunks are stored under ssl/ for GitHub hosting
- Daily refresh → AWS ranges: restarts · Daily refresh drives the collection workflow
- Daily refresh → GCP ranges: restarts · Daily refresh drives the collection workflow
- Pipeline Image → README: illustrates · The image documents the same pipeline shown in the README
- License → SSL dataset: governs · License applies to the published dataset
