Implementation of Python's Enum Module

A deep dive into CPython 3.11 Enum module source code, explaining core Python OOP concepts including metaclasses, descriptors, duck typing, magic methods, protocols, and decorators.

July 13, 2023 · Jinmiao Luo

IAM Service

Deploy Keycloak with Ansible, manage users and OIDC via Terraform, and build role-based permissions in Flask using OAuth2.0, enum classes, and decorators. Based on Arch Linux team’s code.

July 9, 2023 · Jinmiao Luo

Backup System

How to build a Borg-based backup system with deduplication, compression, and encryption, covering btrfs snapshots, GFS pruning, SSH access control, and Prometheus monitoring.

June 27, 2023 · Jinmiao Luo

Terraform and Cloud Resource Management

Codify multi-cloud resources (AWS, Alibaba Cloud, Tencent Cloud) with Terraform, and securely store sensitive credentials (AK/SK) using Ansible Vault and GnuPG to replace manual click-ops.

February 15, 2023 · Jinmiao Luo

Infrastructure as Code

How Arch Linux and Rust secure secrets in public infrastructure code: Arch Linux uses ansible-vault with GnuPG, while Rust leverages AWS STS and SSM.

February 7, 2023 · Jinmiao Luo

Self-Hosted Virtualization

Set up self-hosted virtualization on Arch Linux with libvirt/virsh: template-based VM cloning, bridge networking, snapshots, QCOW2 disk expansion, GPU passthrough, and remote SSH management.

January 27, 2023 · Jinmiao Luo

Sustainable Operations: Quality, Security, Efficiency

How GitOps practices – unified dev environment, reproducible testing, WireGuard encryption, GitLab CI sync, and secret management – cut Apollo cluster deployment from 1-2 days to 18 min.

December 3, 2022 · Jinmiao Luo

Sustainable Ops: Data and Operations in Infrastructure as Code

How codifying operations achieves sustainable ops by separating operations from data – enabling code reuse, modular composition, parameterized deployment, and encrypted data storage.

November 25, 2022 · Jinmiao Luo

Sustainable Operations

Using the Arch Linux infrastructure repo as an example, this article shows how to achieve Infrastructure as Code with Ansible, Git, and GitLab for sustainable, version-controlled operations.

October 24, 2022 · Jinmiao Luo

Hello World

The inaugural post of this blog, marking the launch of a personal blog focused on DevOps, Infrastructure as Code (IaC), WireGuard, and related topics.

October 24, 2022 · Jinmiao Luo