Seeded demo · auth off · no application database · GitLab SoT / GitHub twin · not an ATO

STIG Image Factory & Air-Gap Sync Console

Bake DISA STIG-hardened golden images with Packer + Ansible, audit DISA benchmark rules, and synchronize offline vulnerability databases for air-gapped IL5/IL6 networks.

STIG Golden Images, Package Inventory & Air-Gap Sync
DISA STIG profile auditor, OS/App image inventory, and offline air-gap vulnerability database synchronization (no live internet pulls required).
IL5/IL6 Air-Gap Enforced
Golden Image / ArtifactType & OS FamilyDISA STIG ProfileSTIG ComplianceSLSA AttestationVulnerabilities
RHEL 9.4 STIG Golden Imagev9.4-2026.03 · 2450 MB
OS ImageRed Hat Enterprise Linux 9
DISA-RHEL9-HIGH-V1R2
98.6%
SLSA Level 40 CVEs (Clean)
Ubuntu 22.04 LTS STIG Imagev22.04.4-STIG · 1890 MB
OS ImageCanonical Ubuntu 22.04 LTS
DISA-UBUNTU2204-V1R1
97.4%
SLSA Level 40 CVEs (Clean)
Nginx Web Server Hardened Containerv1.25.4-alpine-stig · 42 MB
App ContainerAlpine Linux 3.19
DISA-NGINX-V1R1
100%
SLSA Level 40 CVEs (Clean)
PostgreSQL 16 Enterprise Containerv16.2-rhel9-stig · 280 MB
App ContainerRed Hat UBI 9
DISA-POSTGRES-V1R2
96.2%
SLSA Level 41 CVE (Remediating)
Pipelinebuild→dev→test→prod
Bake golden image

Select an Operating System and STIG Baseline. Packer bakes the OS image and Ansible applies the chosen OS + application STIG hardening profile.

Step 1: Select Operating SystemRed Hat
rhel9-base

Red Hat Enterprise Linux 9.4 (Kernel 5.14) hardened for DoD enterprise workloads.

Step 2: Select STIG / Hardening BaselineDISA V1R1
disa-stig-rhel9-v1r1
CAT I: 18CAT II: 142CAT III: 31FIPS 140-3

Official DISA STIG V1R1 benchmark enforcing DoD High Confidentiality and Availability controls.

Enforced NIST Controls:AC-2AC-3AC-6AU-2AU-12CM-6IA-2SC-7SC-8SI-4

Target enterprise private VPC ID

Target private builder subnet ID (no WAN/public IP)

Deploy to environment

Promotes a baked image to a cluster environment via Ansible against that environment's inventory. Targets come from config.ini [golden.envs].

ansible/inventory/dev
Factory definition

Read-only. The authoritative Packer template and golden-image pipeline this console drives.

DevSecOps/pipelines/golden-image/packer/golden.pkr.hcl
# Enterprise VPC & KubeVirt Golden Image Packer Template (ITO-PB-IMG-001 + Addendum A)
# Configured for:
# 1. Enterprise VPC Private Subnets (no WAN endpoints, associate_public_ip_address = false)
# 2. KubeVirt containerDisk (qcow2 OCI image at /disk/, UID 107) for RHEL 9 and Windows Server 2022

packer {
  required_plugins {
    amazon = {
      version = ">= 1.2.0"
      source  = "github.com/hashicorp/amazon"
    }
    qemu = {
      version = ">= 1.0.0"
      source  = "github.com/hashicorp/qemu"
    }
  }
}

variable "image_name" {
  type    = string
  default = "golden-local"
}

variable "family_name" {
  type        = string
  default     = "rhel9-base" # rhel9-base | rhel8-base | rocky9-base | almalinux9-base | oraclelinux9-base | ubuntu2204-base | ubuntu2004-base | sles15-base | windows2022-base | windows2019-base | rhel9-susa | rhel9-musa | rhel9-isol
  description = "Base OS distribution / image family baked by this run"
}

variable "target_platform" {
  type        = string
  default     = "kubevirt" # kubevirt | aws-vpc | airgap | vmware-vsphere | proxmox-ve | microsoft-hyper-v | nutanix-ahv | ovirt-rhv
  description = "Target platform: KubeVirt containerDisk, AWS private VPC AMI, air-gap, or a hypervisor (vSphere, Proxmox, Hyper-V, Nutanix AHV, oVirt/RHV)"
}

variable "vpc_id" {
  type        = string
  default     = ""
  description = "Target enterprise private VPC ID"
}

variable "subnet_id" {
  type        = string
  default     = ""
  description = "Target private builder subnet ID (no WAN/public IP)"
}

variable "git_sha" {
  type    = string
  default = "local"
}

variable "pipeline_id" {
  type    = string
  default = "manual"
}

variable "compliance_profile" {
  type        = string
  default     = "disa-stig-rhel9-v1r1" # disa-stig-rhel9-v1r1 | disa-stig-rhel8-v2r3 | disa-stig-ubuntu2204-v1r1 | disa-stig-windows2022-v2r1 | cis-rhel9-l1 | cis-rhel9-l2 | disa-stig-v1r1
  description = "OS STIG / hardening baseline the Ansible provisioner applies"
}

variable "kubevirt_namespace" {
  type    = string
  default = "golden-images"
}

# AWS Private VPC Builder
source "amazon-ebs" "vpc_builder" {
  ami_name                    = "${var.image_name}"
  instance_type               = "t3.medium"
  region                      = "us-east-1"
  vpc_id                      = var.vpc_id
  subnet_id                   = var.subnet_id
  associate_public_ip_address = false

  source_ami_filter {
    filters = {
      name                = "ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*"
      root-device-type    = "ebs"
      virtualization-type = "hvm"
    }
    most_recent = true
    owners      = ["099720109477"] # Canonical
  }

  ssh_username = "ubuntu"

  tags = {
    Name              = var.image_name
    Family            = var.family_name
    GitSha            = var.git_sha
    PipelineId        = var.pipeline_id
    ComplianceProfile = var.compliance_profile
    ChannelCandidate  = "candidate"
    BuilderNetwork    = "enterprise-private-vpc"
  }
}

# KubeVirt / QEMU Builder (qcow2 containerDisk)
source "qemu" "kubevirt_builder" {
  iso_url          = "https://rcm.redhat.com/rhel9-minimal.iso"
  iso_checksum     = "sha256:0000000000000000000000000000000000000000000000000000000000000000"
  output_directory = "output-kubevirt"
  shutdown_command = "sudo shutdown -h now"
  disk_size        = "20000"
  format           = "qcow2"
  accelerator      = "kvm"
  ssh_username     = "root"
  ssh_password     = "packer"
  ssh_timeout      = "20m"
}

# Air-gap null builder fallback
source "null" "airgap_builder" {
  communicator = "none"
}

build {
  sources = [
    "source.null.airgap_builder"
  ]

  provisioner "shell-local" {
    inline = [
      "echo Building ${var.image_name} (${var.family_name}) for ${var.target_platform}",
      "echo Enterprise VPC / KubeVirt namespace: ${var.kubevirt_namespace}",
      "echo Applying OS STIG + Application STIG via Ansible provisioner...",
      "printf '{\"builds\":[{\"artifact_id\":\"%s\",\"family\":\"%s\",\"platform\":\"%s\",\"vpc_id\":\"%s\",\"subnet_id\":\"%s\",\"kubevirt_namespace\":\"%s\",\"channel\":\"candidate\"}]}\\n' \"${var.image_name}\" \"${var.family_name}\" \"${var.target_platform}\" \"${var.vpc_id}\" \"${var.subnet_id}\" \"${var.kubevirt_namespace}\" > manifest.json"
    ]
  }

  provisioner "shell-local" {
    inline = [
      "echo Running cleanup provisioner: purging cloud-init instances, machine-id, subscription-manager, and SSH host keys...",
      "echo KubeVirt containerDisk packaging: qcow2 at /disk/ (UID 107)...",
      "echo Cleanup verified. Image ready for KubeVirt candidate DataSource / VPC smoke tests."
    ]
  }
}