Posts

Showing posts from June, 2026

IaC Tips(yaml and json)

Image
Separation of Concerns in IaC: Why We Pair YAML Templates with JSON Parameters When designing scalable Infrastructure as Code (IaC), one of the earliest architectural hurdles engineers face is configuration sprawl. Hardcoding values directly into infrastructure templates quickly leads to code duplication and maintenance nightmares. To solve this, a widely adopted industry best practice is the Separation of Concerns (SoC) : utilizing YAML for the core infrastructure blueprint and JSON for the environment-specific parameters. Here is a technical breakdown and practical guide on why this specific combination serves as an ideal design pattern for modern DevOps pipelines. Why the Split? (YAML vs. JSON) YAML for Main Templates: Highly readable and human-centric. It uses indentation instead of noisy brackets, making complex, multi-resource architectures easy to audit. It also natively supports inline comments ( # ) for documenting architectural decisions. JSON for Param...

Beyond the Spooler: Building a Fault-Tolerant Print & Scan Infrastructure for the Modern Home

Image
Summary Legacy USB multi-function peripherals are notoriously unreliable in modern multi-device households. Proprietary vendor software is often bloated, platform-dependent, and prone to "Printer Offline" errors. This case study details the engineering of a Network-Native Print & Scan Gateway using Proxmox VE, CUPS, and eSCL. 1. Why Virtualize? The Homelab Paradigm Deploying this within a Proxmox homelab environment offers critical engineering advantages: Hardware Abstraction: The print server is encapsulated in an LXC container, decoupling it from physical hardware. Snapshot Resilience: We utilize Proxmox snapshots as "undo points" for configuration changes. Resource Isolation: Negligible resource consumption (50-100MB RAM) in an isolated sandbox. 2. Network Topology [ Windows Clients ] [ macOS / Mobile ] │ │ └────────────┬───────────┘ ...

Architecting an Active Defense in a Network specifically with Mikrotik

Image
Automating OpenCanary Honeypot Integration with MikroTik In the modern cybersecurity landscape, relying solely on static firewall rules to drop packets is a failing strategy. Automated botnets and malicious actors constantly probe network perimeters. To truly secure an infrastructure—whether it is a complex enterprise environment or an advanced homelab—we need a system that actively fights back. Today, we are building an automated "Active Defense" pipeline that turns reconnaissance attempts into instant hardware-level bans. Network Security Topology - Honeypot to MikroTik Router Automation Flow 1. Core Concepts: The Deep Dive Before deploying code, it is critical to understand the architecture and why we select specific tools to make this setup completely "idiot-proof." The Honeypot (Decoy Concept): A honeypot is an intentionally vulnerable system placed on your network. It serves no legitimate business purpose. Therefore...