Skip to content

πŸͺ πŸ”­ A monorepo where I define and manage infrastructure in my homelab and on various cloud provider platforms.

License

Notifications You must be signed in to change notification settings

bryborge/cosmos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


The Cosmos project logo depicting an astronaut

Cosmos

"If you wish to make an 🍎 πŸ₯§ from scratch, you must first invent the universe." -- Carl Sagan

Explore the docs Β»


πŸš€ About the Project

Cosmos is a monorepo where I define and manage infrastructure in my homelab and on various cloud provider platforms, adhering to Infrastructure as Code (IaC) principles where possible.

🧬 Structure

This project is subdivided by cloud provider platform. Each platform contains documentation specific to what tools are used to manage it, and how to use them.

πŸ” SecOps

IT security and strategies for handling secrets is an entire discipline to itself. After much deliberation and weighing tradeoffs, I settled on using SOPS (Standard Operating ProcedureS) and Age for encryption of sensitive information that will be committed to version control.

What is SOPS?

A simple and flexible tool for managing secrets.

Github Link

What is Age?

Pronounced (aghe with a "hard" g), it's a simple, modern and secure encryption tool with small explicit keys, no config options, and UNIX-style composability.

Tradeoffs

Pros Cons
Ease of intergration (in the future) with other key management services Operational overhead
File format agnostic Key management complexity
It's free πŸ’°

General Thoughts

This, by itself, is NOT comprehensive, but is "adequate enough" for me. None of the workloads, systems, or processes managed here are life-or-death. This project is, in large part, centered around learning and tinkering. That said, I have taken time to consider what security means to me and my IT infrastructure, and implore you to do the same.

πŸ”§ Tooling

  • Ansible - a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain.
  • Terraform - Infrastructure automation to provision and manage resources in any cloud or data center.
  • Secrets OPerationS (SOPS) - Simple and flexible tool for managing secrets.
  • Age - A simple, modern and secure encryption tool (and Go library) with small explicit keys, no config options, and UNIX-style composability.

πŸ”€ Naming Convention

I use the following convention to name my compute where possible:

  • Platform

    Describes "where" the compute lives.

    Code Description
    HLB Homelab
    AWS Amazon Web Services
    GCP Google Cloud Platform
    MAZ Microsoft Azure
  • Compute Type

    Describes the "material" composition of the compute unit.

    Code Description
    P Physical machine
    V Virtual machine
  • Configuration

    Describes the "relationship" of the compute unit to other units.

    Code Description
    S Standalone
    C Cluster
  • Environment

    Describes the environment "volatility" that the compute unit resides in. (e.g., development is highly volatile, test is less volatile but still not guaranteed to be fully operational, and production is reliable/available).

    Code Description
    D Development
    T Test
    P Production
  • Numeric ID

    Provides a "unique" numeric identifier (most useful for identifying units of compute in a large cluster configuration).

    Code Description
    NNN (ex: 001, 002, ... 100)

Examples

  • HLB-PSD-001 - A homelab-hosted (HLB) physical machine (P) in a standalone (S) configuration used for development (D) environment workloads.

  • AWS-VCP-666 - An AWS-hosted (AWS) virtual machine (V) in a cluster (C) configuration used for production (P) environment workloads.

πŸͺͺ License

This project is licensed under the MIT License - see the LICENSE file for details.

About

πŸͺ πŸ”­ A monorepo where I define and manage infrastructure in my homelab and on various cloud provider platforms.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project