136 lines
6.4 KiB
Markdown
136 lines
6.4 KiB
Markdown
# Patrick Beane
|
|
|
|
**Platform, Infrastructure & Security Engineer**
|
|
|
|
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.
|
|
|
|
---
|
|
|
|
## At a Glance
|
|
|
|
| | |
|
|
| :--- | :--- |
|
|
| **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** | `32,000+` automated AbuseIPDB reports at 100% accuracy |
|
|
| **Recovery** | Multiple daily encrypted Borgmatic snapshots offsite; automated restore tests monthly |
|
|
| **Code** | `577,311` lines of custom code, the majority in [tfSTRIDE](https://tfstride.beane.me) |
|
|
| **Commits** | `4568` authored commits since January 1 (bot and dependency-update commits excluded) |
|
|
|
|
Metrics refresh nightly via Gitea Actions and `tokei`.
|
|
|
|
---
|
|
|
|
## Fleet
|
|
|
|
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
|
|
|
|
- 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.
|
|
|
|
## Vulnerability Management
|
|
|
|
- **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
|
|
**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
|
|
|
|
---
|
|
|
|
## Activity
|
|
|
|

|
|
|
|
---
|
|
|
|
## Public Projects
|
|
|
|
- **[tfSTRIDE](https://tfstride.beane.me):** STRIDE threat modeling for Terraform across AWS, GCP, and Azure. ([GitHub](https://github.com/patrickbeane/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)** |