From 9277c67c47d7e9804932b2963db58aa6969818e2 Mon Sep 17 00:00:00 2001 From: Ares-Bot Date: Wed, 4 Nov 2026 16:10:16 +0000 Subject: [PATCH] chore: sync profile metrics [skip ci] --- README.md | 188 +++++++++++++++++++++++++++++------------------------- 1 file changed, 102 insertions(+), 86 deletions(-) diff --git a/README.md b/README.md index fa62dfb..bec7e7b 100644 --- a/README.md +++ b/README.md @@ -1,84 +1,119 @@ # Patrick Beane -**Infrastructure & Security Engineer | SRE | Cloud-Native Platforms** +**Platform, Infrastructure & Security Engineer** -I design and operate a self-directed production infrastructure platform focused on security automation, reliability engineering, observability, vulnerability management, and recoverability. - -The environment spans Kubernetes, Linux, multi-cloud infrastructure, identity controls, threat detection, backup verification, and public operational dashboards. My goal is to build systems that are secure-by-default, observable in production, and recoverable under failure. +I build and operate beane.me, a self-directed multi-cloud production platform. Every public service runs on a primary with a live mirror behind DNS failover. Both the Kubernetes clusters and the Docker hosts are managed through GitOps. Security detection, vulnerability management, and restore verification run continuously and publish their results to public dashboards. --- -## Production Infrastructure Overview +## At a Glance -This environment blends production operations, security research, and continuous infrastructure improvement. Services are distributed across cloud and self-hosted nodes, with each node scoped to a specific operational role to reduce blast radius and simplify ownership. +| | | +| :--- | :--- | +| **Fleet** | 10+ nodes: 4 MicroK8s clusters (Flux v2), 8 Docker hosts (Doco-CD) | +| **Uptime** | 99.97% measured (HetrixTools) | +| **Security fleet** | 8 nodes running CrowdSec agents with nftables enforcement | +| **Threat reporting** | 30,000+ automated AbuseIPDB reports at 100% accuracy | +| **Recovery** | Multiple daily encrypted Borgmatic snapshots offsite; automated restore tests monthly | +| **Code** | `576,351` lines of custom code, the majority in [tfSTRIDE](https://tfstride.beane.me) | +| **Commits** | `4469` authored commits since January 1 (bot and dependency-update commits excluded) | -| Node | Primary Role | Function | -| :--- | :--- | :--- | -| **Argus** | Security telemetry and failover automation | Threat detection, event correlation, and node-health automation | -| **Triton** | Observability and internal tooling | Prometheus, Grafana, Authelia, code-server, CrowdSec bouncers | -| **Ares** | Kubernetes and source control | Gitea, PostgreSQL, Valkey, CI runners, Kubernetes control plane | -| **Zephyrus** | Container hosting | Docker workloads and service hosting | -| **Iris** | Edge services | NGINX/PHP ingress and public-facing services | -| **Vault** | Secrets and identity-adjacent services | Vaultwarden and protected internal services | -| **Apollo** | Threat intelligence dashboard | Flask-based analytics and reporting | -| **Hermes** | Public API frontend | Public API and frontend service layer | -| **Hades** | Public API backend | Backend service support for public APIs | -| **Zeus** | Monitoring and metrics | Centralized observability and service-health tracking | +Metrics refresh nightly via Gitea Actions and `tokei`. --- -## Infrastructure Strategy +## Fleet -- **Compute layer:** Heterogeneous self-hosted and cloud infrastructure scoped by workload type -- **Edge layer:** Cloud and VPS ingress for public services and low-latency routing -- **Security telemetry:** Multi-node detection and mitigation workflows using CrowdSec and custom automation -- **Observability:** Centralized monitoring with Prometheus, Grafana, Netdata, exporters, and public dashboards -- **Resilience:** Automated health checks, DNS failover, backup verification, and role-scoped service design +Each node has a defined role so that a failure or compromise stays contained and ownership stays clear. + +### Kubernetes (MicroK8s, reconciled by Flux v2) + +| Node | Role | +| :--- | :--- | +| **Ares** | Source control and CI: Gitea, PostgreSQL, Valkey, CI runners | +| **Eurus** | Fenced failover for the CrowdSec database | +| **Triton** | Observability and internal tooling: Prometheus, Grafana, Authelia, code-server | +| **Zephyrus** | Internal services: Caddy, Dashy, Password Pusher, Trilium; per-cluster monitoring stack | + +### Docker (Compose, reconciled by Doco-CD) + +| Node | Role | +| :--- | :--- | +| **Apollo** | Threat intelligence dashboard (Flask) | +| **Argus** | Security telemetry, event correlation, node-health and failover automation | +| **Eurus** | Database failover services | +| **Hades** | Public API backend | +| **Hermes** | Public API frontend | +| **Nike** | Threat telemetry sensor: captures inbound interaction data for CrowdSec | +| **Vault** | Vaultwarden and protected internal services | +| **Zeus** | Centralized metrics and service-health tracking | + +### Edge + +| Node | Role | +| :--- | :--- | +| **Iris** | NGINX/PHP ingress for public-facing services | + +--- + +## GitOps + +- **Kubernetes:** Flux v2 reconciles Gitea, Traefik, cert-manager, Sealed Secrets, kube-state-metrics, and Borgmatic from the `gitea-gitops` repo. The migration from manually managed manifests was done with zero downtime. +- **Docker:** Doco-CD applies the same declarative model to Compose stacks across the 8 Docker hosts from the `docker-fleet` repo. +- **Source of truth:** The GitOps repos are hosted on Gitea and mirrored to GitHub. +- **Secrets:** Sealed Secrets in git. Nothing is stored in plaintext. --- ## Security Detection and Response -Security controls are integrated directly into the platform rather than handled as one-off manual checks. +- CrowdSec agents on 8 nodes report to a central LAPI backed by PostgreSQL. Enforcement is done with nftables and reverse-proxy bouncers. +- Custom detection scenarios held up through botnet campaigns that pushed volume from ~200 to ~50,000 bans per day. +- Every decision is mapped to MITRE ATT&CK. Each IP has a public explain page linking its techniques to attack.mitre.org. +- Decisions get confidence-based watchlists and retention (24-hour or 14-day bans). +- Confirmed malicious IPs are reported to AbuseIPDB automatically. +- High-severity events trigger Discord alerts. -Current detection and response patterns include: +## Vulnerability Management -- Telemetry ingestion from 7 active nodes -- CrowdSec-based detection and mitigation -- MITRE ATT&CK mapping for selected security events -- Escalation logic for high-confidence indicators -- Watchlist and retention policies based on event confidence -- High-severity event notifications through Discord -- Runtime visibility through public and private dashboards +- **vulnmgmt:** An SBOM-driven pipeline built on Syft and Grype that scans clusters and hosts. +- **Trivy:** Container image scanning in CI, with results and trends published on a public dashboard. +- **Contextual risk:** A private dashboard (behind Authelia) scores risk based on the containers that are actually running. + +## Resilience and Recovery + +- Public services run on a primary plus a live mirror, with DNS failover driven by node-health checks. +- Encrypted Borgmatic backups ship offsite to rsync.net. Automated restore tests run monthly, and the results are published. +- Metrics travel over Tailscale to a central Grafana. + +--- + +## Incident: 2026-09-16 Mass OOM on Zephyrus + +During a botnet campaign, decision churn caused the CrowdSec LAPI's PostgreSQL instance to grow until it starved its host. That host also ran a MicroK8s cluster, and nearly every pod on it was OOM-killed at once. The cluster's own monitoring stack went down with the node it was watching, and Flux couldn't reconcile. + +**Recovery:** I scaled non-critical workloads to zero live, then committed that change so Flux wouldn't revert it. The node needed a reboot to recover. + +**Fixes:** +- Enforced a hard memory limit on the Postgres service. +- Added a fenced failover for the CrowdSec database on Eurus. + +**Lessons:** +- Stateful, high-churn services need hard resource limits when they share a host with anything else. +- Monitoring that runs on the node it watches can't be trusted for live triage. --- ## Technical Stack -**Languages:** Python, Bash, JavaScript, React, Node.js -**Infrastructure:** Kubernetes, Docker, Caddy, NGINX, Linux -**Security:** CrowdSec, Trivy, Authelia, OIDC, MFA, Fail2Ban, Vaultwarden -**Cloud and Networking:** AWS, GCP, Oracle Cloud, Vultr, Cloudflare, DNS automation -**Observability:** Prometheus, Grafana, Netdata, Blackbox Exporter, Node Exporter, cAdvisor -**Backups:** Borgmatic, encrypted offsite backups, restore verification -**CI/CD and Source Control:** Git, GitHub Actions, Gitea, container image scanning -**Infrastructure as Code:** Terraform - ---- - -## Operational Metrics - -Current platform highlights: - -- 10-node distributed infrastructure environment -- 7-node security telemetry and detection footprint -- `576,351` lines of custom code across infrastructure, security, and automation projects -- `4469` commits since January 1 across active repositories -- Automated failover between AWS and peer infrastructure -- Public dashboards for uptime, vulnerabilities, backups, threat telemetry, and service health -- Multiple daily encrypted Borgmatic snapshots shipped offsite -- Recurring backup verification and restore-oriented operational workflows -- Nightly metrics refresh via Gitea Actions and `tokei` +**Languages:** Python, Bash, JavaScript, React, Node.js +**Orchestration and GitOps:** Kubernetes (MicroK8s), Flux v2, Docker, Doco-CD, Sealed Secrets, cert-manager +**Networking and Edge:** Traefik, Caddy, NGINX, Cloudflare, Tailscale, DNS failover automation +**Cloud:** AWS, GCP, Azure, Oracle Cloud +**Security:** CrowdSec, nftables, Syft, Grype, Trivy, Authelia, OIDC, MFA, Vaultwarden +**Observability:** Prometheus, Grafana, Netdata, Node Exporter, Blackbox Exporter, cAdvisor, kube-state-metrics +**Backups:** Borgmatic, rsync.net, automated restore verification +**CI/CD and IaC:** Gitea Actions, GitHub Actions, Terraform --- @@ -88,33 +123,14 @@ Current platform highlights: --- -## Deployment Patterns +## Public Projects -- **Reverse proxy:** Caddy and NGINX, with Cloudflare where applicable -- **Observability:** Prometheus, Grafana, Node Exporter, Blackbox Exporter, cAdvisor, Netdata -- **Access control:** Authelia, OIDC, MFA, TLS hardening, and protected reverse-proxy routes -- **Lifecycle management:** Controlled container updates and service monitoring -- **Service isolation:** Nodes scoped by role to reduce blast radius and simplify recovery -- **Backup strategy:** Encrypted offsite backups with recurring verification - ---- - -## Selected Public Projects - -- **Portfolio:** [beane.me](https://beane.me) -- **Threat Decisions and Telemetry:** [threats.beane.me](https://threats.beane.me) -- **Threat Intelligence and Analytics:** [intel.beane.me](https://intel.beane.me) -- **Vulnerability Scanning and Trends:** [vuln.beane.me](https://vuln.beane.me) -- **Backup and Restore Verification:** [backups.beane.me](https://backups.beane.me) -- **Threat Decision Observability:** [observe.beane.me](https://observe.beane.me) -- **Health and Failover Dashboard:** [health.beane.me](https://health.beane.me) -- **Source Control:** [git.beane.me](https://git.beane.me) -- **Terraform Threat Modeling:** [tfstride.beane.me](https://tfstride.beane.me) - ---- - -## Engineering Philosophy - -Production systems should be observable, automated, recoverable, and secure from the start. - -I focus on infrastructure that explains itself: clear telemetry, deterministic automation, evidence-backed security findings, documented recovery paths, and controls that improve reliability without slowing delivery. +- **[tfSTRIDE](https://tfstride.beane.me):** STRIDE threat modeling for Terraform across AWS, GCP, and Azure. ([GitHub](https://github.com/REPLACE_ME/tfstride)) +- **[Operations Briefing](https://ops.beane.me):** Live platform status and operational summary +- **[Threat Decisions](https://threats.beane.me):** Threat-intelligence engine and decision API +- **[Decision Observability](https://observe.beane.me):** Processed decisions with per-IP ATT&CK explain pages +- **[Threat Analytics](https://intel.beane.me):** Ban trends and history API +- **[Vulnerability Trends](https://vuln.beane.me):** Scan results over time +- **[Backup Verification](https://backups.beane.me):** Snapshot and restore-test status +- **[Health and Failover](https://health.beane.me):** Node health and DNS failover state +- **[Portfolio](https://beane.me)** \ No newline at end of file