{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-enterprise-linux-8/json-schema/red-hat-enterprise-linux-8-customizations-schema.json",
  "title": "Customizations",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-enterprise-linux-8-image-builder-api-openapi.yml#/components/schemas/Customizations",
  "properties": {
    "aap_registration": {
      "$ref": "#/$defs/AAPRegistration"
    },
    "cacerts": {
      "$ref": "#/$defs/CACertsCustomization"
    },
    "containers": {
      "items": {
        "$ref": "#/$defs/Container",
        "description": "Container images to embed into the final artfact"
      },
      "type": "array"
    },
    "custom_repositories": {
      "description": "List of custom repositories.",
      "items": {
        "$ref": "#/$defs/CustomRepository"
      },
      "type": "array"
    },
    "directories": {
      "items": {
        "$ref": "#/$defs/Directory",
        "description": "Directories to create in the final artifact"
      },
      "type": "array"
    },
    "disk": {
      "$ref": "#/$defs/Disk"
    },
    "enabled_modules": {
      "description": "List of dnf modules to enable, so that packages can be installed from them.\n",
      "items": {
        "$ref": "#/$defs/Module"
      },
      "type": "array"
    },
    "fdo": {
      "$ref": "#/$defs/FDO"
    },
    "files": {
      "items": {
        "$ref": "#/$defs/File",
        "description": "Files to create in the final artifact"
      },
      "type": "array"
    },
    "filesystem": {
      "items": {
        "$ref": "#/$defs/Filesystem"
      },
      "maxItems": 128,
      "type": "array"
    },
    "fips": {
      "$ref": "#/$defs/FIPS"
    },
    "firewall": {
      "$ref": "#/$defs/FirewallCustomization"
    },
    "groups": {
      "description": "List of groups to create",
      "items": {
        "$ref": "#/$defs/Group"
      },
      "type": "array"
    },
    "hostname": {
      "description": "Configures the hostname",
      "type": "string"
    },
    "ignition": {
      "$ref": "#/$defs/Ignition"
    },
    "installation_device": {
      "description": "Name of the installation device, currently only useful for the edge-simplified-installer type\n",
      "type": "string"
    },
    "installer": {
      "$ref": "#/$defs/Installer"
    },
    "kernel": {
      "$ref": "#/$defs/Kernel"
    },
    "locale": {
      "$ref": "#/$defs/Locale"
    },
    "openscap": {
      "$ref": "#/$defs/OpenSCAP"
    },
    "packages": {
      "items": {
        "type": "string"
      },
      "maxItems": 10000,
      "type": "array"
    },
    "partitioning_mode": {
      "description": "Select how the disk image will be partitioned. 'auto-lvm' will use raw unless\nthere are one or more mountpoints in which case it will use LVM. 'lvm' always\nuses LVM, even when there are no extra mountpoints. 'raw' uses raw partitions\neven when there are one or more mountpoints.\n",
      "enum": [
        "raw",
        "lvm",
        "auto-lvm"
      ],
      "type": "string"
    },
    "payload_repositories": {
      "items": {
        "$ref": "#/$defs/Repository"
      },
      "type": "array"
    },
    "services": {
      "$ref": "#/$defs/Services"
    },
    "subscription": {
      "$ref": "#/$defs/Subscription"
    },
    "timezone": {
      "$ref": "#/$defs/Timezone"
    },
    "users": {
      "description": "List of users that a customer can add,\nalso specifying their respective groups and SSH keys and/or password\n",
      "items": {
        "$ref": "#/$defs/User"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "AAPRegistration": {
      "additionalProperties": false,
      "properties": {
        "ansible_callback_url": {
          "type": "string"
        },
        "host_config_key": {
          "type": "string"
        },
        "skip_tls_verification": {
          "description": "When true, indicates the user has confirmed that HTTPS callback URL does not require a CA certificate for verification",
          "type": "boolean"
        },
        "tls_certificate_authority": {
          "type": "string",
          "x-go-type-skip-optional-pointer": true
        }
      },
      "required": [
        "ansible_callback_url",
        "host_config_key"
      ],
      "type": "object",
      "x-go-name": "AAPRegistration"
    },
    "BtrfsSubvolume": {
      "properties": {
        "mountpoint": {
          "description": "Mountpoint for the subvolume\n",
          "type": "string"
        },
        "name": {
          "description": "The name of the subvolume, which defines the location (path) on the root volume\n",
          "type": "string"
        }
      },
      "required": [
        "name",
        "mountpoint"
      ],
      "type": "object",
      "x-go-type": "composer.BtrfsSubvolume"
    },
    "BtrfsVolume": {
      "properties": {
        "minsize": {
          "$ref": "#/$defs/minsize"
        },
        "part_type": {
          "description": "The partition type GUID for GPT partitions. For DOS partitions, this field can be used to set the (2 hex digit) partition type. If not set, the type will be automatically set based on the mountpoint or the payload type.\n",
          "type": "string"
        },
        "subvolumes": {
          "items": {
            "$ref": "#/$defs/BtrfsSubvolume"
          },
          "type": "array"
        },
        "type": {
          "enum": [
            "btrfs"
          ],
          "type": "string"
        }
      },
      "required": [
        "type",
        "subvolumes"
      ],
      "type": "object",
      "x-go-type": "composer.BtrfsVolume"
    },
    "CACertsCustomization": {
      "additionalProperties": false,
      "properties": {
        "pem_certs": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "pem_certs"
      ],
      "type": "object"
    },
    "Container": {
      "properties": {
        "name": {
          "description": "Name to use for the container from the image",
          "type": "string"
        },
        "source": {
          "description": "Reference to the container to embed",
          "type": "string"
        },
        "tls_verify": {
          "description": "Control TLS verifification",
          "type": "boolean"
        }
      },
      "required": [
        "source"
      ],
      "type": "object"
    },
    "CustomRepository": {
      "description": "Repository configuration for custom repositories.\nAt least one of the 'baseurl', 'mirrorlist', 'metalink' properties must\nbe specified. If more of them are specified, the order of precedence is\nthe same as listed above. Id is required.\n",
      "properties": {
        "baseurl": {
          "items": {
            "format": "uri",
            "type": "string"
          },
          "type": "array"
        },
        "check_gpg": {
          "type": "boolean"
        },
        "check_repo_gpg": {
          "type": "boolean"
        },
        "enabled": {
          "type": "boolean"
        },
        "filename": {
          "type": "string"
        },
        "gpgkey": {
          "description": "GPG key used to sign packages in this repository. Can be a gpg key or a URL",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "id": {
          "type": "string"
        },
        "metalink": {
          "format": "uri",
          "type": "string"
        },
        "mirrorlist": {
          "format": "uri",
          "type": "string"
        },
        "module_hotfixes": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "priority": {
          "type": "integer"
        },
        "ssl_verify": {
          "type": "boolean"
        }
      },
      "required": [
        "id"
      ],
      "type": "object"
    },
    "Directory": {
      "description": "A custom directory to create in the final artifact.\n",
      "properties": {
        "ensure_parents": {
          "default": false,
          "description": "Ensure that the parent directories exist",
          "type": "boolean"
        },
        "group": {
          "description": "Group of the directory as a group name or a gid",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "integer",
              "x-go-type": "int64"
            }
          ]
        },
        "mode": {
          "description": "Permissions string for the directory in octal format",
          "type": "string"
        },
        "path": {
          "description": "Path to the directory",
          "type": "string"
        },
        "user": {
          "description": "Owner of the directory as a user name or a uid",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "integer",
              "x-go-type": "int64"
            }
          ]
        }
      },
      "required": [
        "path"
      ],
      "type": "object"
    },
    "Disk": {
      "properties": {
        "minsize": {
          "$ref": "#/$defs/minsize"
        },
        "partitions": {
          "items": {
            "$ref": "#/$defs/Partition"
          },
          "type": "array"
        },
        "type": {
          "description": "Type of the partition table\n",
          "enum": [
            "gpt",
            "dos"
          ],
          "type": "string"
        }
      },
      "required": [
        "partitions"
      ],
      "type": "object",
      "x-go-type": "composer.Disk"
    },
    "FDO": {
      "additionalProperties": false,
      "description": "FIDO device onboard configuration",
      "properties": {
        "diun_pub_key_hash": {
          "type": "string"
        },
        "diun_pub_key_insecure": {
          "type": "string"
        },
        "diun_pub_key_root_certs": {
          "type": "string"
        },
        "manufacturing_server_url": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "FIPS": {
      "additionalProperties": false,
      "description": "System FIPS mode setup",
      "properties": {
        "enabled": {
          "default": false,
          "description": "Enables the system FIPS mode",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "File": {
      "description": "A custom file to create in the final artifact.\n",
      "properties": {
        "data": {
          "description": "Contents of the file as plain text",
          "type": "string"
        },
        "data_encoding": {
          "default": "plain",
          "description": "When data is base64-encoded to prevent Akamai content filter false positives",
          "enum": [
            "plain",
            "base64"
          ],
          "type": "string"
        },
        "ensure_parents": {
          "default": false,
          "description": "Ensure that the parent directories exist",
          "type": "boolean"
        },
        "group": {
          "description": "Group of the file as a gid or a group name",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "integer",
              "x-go-type": "int64"
            }
          ]
        },
        "mode": {
          "description": "Permissions string for the file in octal format",
          "type": "string"
        },
        "path": {
          "description": "Path to the file",
          "type": "string"
        },
        "user": {
          "description": "Owner of the file as a uid or a user name",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "integer",
              "x-go-type": "int64"
            }
          ]
        }
      },
      "required": [
        "path"
      ],
      "type": "object"
    },
    "Filesystem": {
      "properties": {
        "min_size": {
          "description": "size of the filesystem in bytes",
          "x-go-type": "uint64"
        },
        "mountpoint": {
          "type": "string"
        }
      },
      "required": [
        "mountpoint",
        "min_size"
      ],
      "type": "object"
    },
    "FilesystemTyped": {
      "properties": {
        "fs_type": {
          "description": "The filesystem type. Swap partitions must have an empty mountpoint.\n",
          "enum": [
            "ext4",
            "xfs",
            "vfat",
            "swap"
          ],
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "minsize": {
          "$ref": "#/$defs/minsize"
        },
        "mountpoint": {
          "type": "string"
        },
        "part_type": {
          "description": "The partition type GUID for GPT partitions. For DOS partitions, this field can be used to set the (2 hex digit) partition type. If not set, the type will be automatically set based on the mountpoint or the payload type.\n",
          "type": "string"
        },
        "type": {
          "enum": [
            "plain"
          ],
          "type": "string"
        }
      },
      "required": [
        "fs_type"
      ],
      "type": "object",
      "x-go-type": "composer.FilesystemTyped"
    },
    "FirewallCustomization": {
      "additionalProperties": false,
      "description": "Firewalld configuration",
      "properties": {
        "ports": {
          "description": "List of ports (or port ranges) and protocols to open",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "services": {
          "additionalProperties": false,
          "description": "Firewalld services to enable or disable",
          "properties": {
            "disabled": {
              "description": "List of services to disable",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "enabled": {
              "description": "List of services to enable",
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "Group": {
      "additionalProperties": false,
      "properties": {
        "gid": {
          "description": "Group id of the group to create (optional)",
          "type": "integer"
        },
        "name": {
          "description": "Name of the group to create",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "Ignition": {
      "additionalProperties": false,
      "description": "Ignition configuration",
      "properties": {
        "embedded": {
          "$ref": "#/$defs/IgnitionEmbedded"
        },
        "firstboot": {
          "$ref": "#/$defs/IgnitionFirstboot"
        }
      },
      "type": "object"
    },
    "IgnitionEmbedded": {
      "additionalProperties": false,
      "properties": {
        "config": {
          "type": "string"
        }
      },
      "required": [
        "config"
      ],
      "type": "object"
    },
    "IgnitionFirstboot": {
      "additionalProperties": false,
      "properties": {
        "url": {
          "description": "Provisioning URL",
          "type": "string"
        }
      },
      "required": [
        "url"
      ],
      "type": "object"
    },
    "Installer": {
      "additionalProperties": false,
      "description": "Anaconda installer configuration",
      "properties": {
        "sudo-nopasswd": {
          "items": {
            "description": "Enable passwordless sudo for users or groups (groups must be prefixed by %)\n",
            "type": "string"
          },
          "type": "array"
        },
        "unattended": {
          "description": "Create a kickstart file for a fully automated installation\n",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "Kernel": {
      "additionalProperties": false,
      "properties": {
        "append": {
          "description": "Appends arguments to the bootloader kernel command line",
          "type": "string"
        },
        "name": {
          "description": "Name of the kernel to use",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Locale": {
      "additionalProperties": false,
      "description": "Locale configuration",
      "properties": {
        "keyboard": {
          "description": "Sets the keyboard layout",
          "type": "string"
        },
        "languages": {
          "description": "List of locales to be installed, the first one becomes primary, subsequent ones are secondary\n",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "LogicalVolume": {
      "properties": {
        "fs_type": {
          "description": "The filesystem type for the logical volume. Swap LVs must have an empty mountpoint.\n",
          "enum": [
            "ext4",
            "xfs",
            "vfat",
            "swap"
          ],
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "minsize": {
          "$ref": "#/$defs/minsize"
        },
        "mountpoint": {
          "description": "Mountpoint for the logical volume\n",
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "fs_type"
      ],
      "type": "object",
      "x-go-type": "composer.LogicalVolume"
    },
    "Module": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "description": "Name of the module to enable.\n",
          "type": "string"
        },
        "stream": {
          "description": "Stream to enable.\n",
          "type": "string"
        }
      },
      "required": [
        "name",
        "stream"
      ],
      "type": "object"
    },
    "OpenSCAP": {
      "oneOf": [
        {
          "$ref": "#/$defs/OpenSCAPProfile"
        },
        {
          "$ref": "#/$defs/OpenSCAPCompliance"
        }
      ]
    },
    "OpenSCAPCompliance": {
      "properties": {
        "policy_id": {
          "description": "Apply a compliance policy which is defined in the Red Hat Insights Compliance\nservice. This policy can include tailorings. This only works for RHEL images, and the\npolicy needs to be available for the specific RHEL version.\n",
          "format": "uuid",
          "type": "string"
        }
      },
      "required": [
        "policy_id"
      ],
      "type": "object"
    },
    "OpenSCAPProfile": {
      "properties": {
        "profile_description": {
          "description": "The longform profile description",
          "type": "string"
        },
        "profile_id": {
          "description": "Uses the OpenSCAP tooling directly to apply a pre-defined profile without tailorings.\n",
          "type": "string"
        },
        "profile_name": {
          "description": "The profile type",
          "type": "string"
        }
      },
      "required": [
        "profile_id"
      ],
      "type": "object"
    },
    "Partition": {
      "oneOf": [
        {
          "$ref": "#/$defs/FilesystemTyped"
        },
        {
          "$ref": "#/$defs/BtrfsVolume"
        },
        {
          "$ref": "#/$defs/VolumeGroup"
        }
      ],
      "type": "object",
      "x-go-type": "composer.Partition"
    },
    "Repository": {
      "properties": {
        "baseurl": {
          "format": "uri",
          "type": "string"
        },
        "check_gpg": {
          "type": "boolean"
        },
        "check_repo_gpg": {
          "default": false,
          "description": "Enables gpg verification of the repository metadata\n",
          "type": "boolean"
        },
        "gpgkey": {
          "type": "string"
        },
        "id": {
          "description": "An ID referring to a repository defined in content sources can be used instead of\n'baseurl', 'mirrorlist' or 'metalink'.\n",
          "type": "string"
        },
        "ignore_ssl": {
          "type": "boolean"
        },
        "metalink": {
          "format": "uri",
          "type": "string"
        },
        "mirrorlist": {
          "format": "uri",
          "type": "string"
        },
        "module_hotfixes": {
          "type": "boolean"
        },
        "rhsm": {
          "type": "boolean"
        }
      },
      "required": [
        "rhsm"
      ],
      "type": "object"
    },
    "Services": {
      "additionalProperties": false,
      "properties": {
        "default_target": {
          "description": "Default systemd target to boot into",
          "type": "string"
        },
        "disabled": {
          "description": "List of services to disable by default",
          "items": {
            "type": "string"
          },
          "minItems": 1,
          "type": "array"
        },
        "enabled": {
          "description": "List of services to enable by default",
          "items": {
            "type": "string"
          },
          "minItems": 1,
          "type": "array"
        },
        "masked": {
          "description": "List of services to mask by default",
          "items": {
            "type": "string"
          },
          "minItems": 1,
          "type": "array"
        }
      },
      "type": "object"
    },
    "Subscription": {
      "properties": {
        "activation-key": {
          "format": "password",
          "type": "string"
        },
        "base-url": {
          "type": "string"
        },
        "insights": {
          "type": "boolean"
        },
        "insights_client_proxy": {
          "description": "Optional value to set proxy option when registering the system to Insights.\n",
          "format": "uri",
          "type": "string"
        },
        "organization": {
          "type": "integer"
        },
        "rhc": {
          "default": false,
          "description": "Optional flag to use rhc to register the system, which also always enables Insights.\n",
          "type": "boolean"
        },
        "server-url": {
          "type": "string"
        }
      },
      "required": [
        "organization",
        "activation-key",
        "server-url",
        "base-url",
        "insights"
      ],
      "type": "object"
    },
    "Timezone": {
      "additionalProperties": false,
      "description": "Timezone configuration",
      "properties": {
        "ntpservers": {
          "description": "List of ntp servers",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "timezone": {
          "description": "Name of the timezone, defaults to UTC",
          "type": "string"
        }
      },
      "type": "object"
    },
    "User": {
      "description": "At least one of password, ssh_key must be set, validator takes care of it.\nOn update empty string can be used to remove password or ssh_key,\nbut at least one of them still must be present.\n",
      "properties": {
        "groups": {
          "description": "List of groups to add the user to. The 'wheel' group should be added explicitly, as the\ndefault value is empty.\n",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "hasPassword": {
          "description": "Indicates whether the user has a password set. This flag is read-only.\n",
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "password": {
          "description": "Plaintext passwords are also supported, they will be hashed and stored using the SHA-512 algorithm.\nThe password is never returned in the response.\nEmpty string can be used to remove the password during update but only with ssh_key set.\n",
          "format": "password",
          "type": "string"
        },
        "ssh_key": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "VolumeGroup": {
      "properties": {
        "logical_volumes": {
          "items": {
            "$ref": "#/$defs/LogicalVolume"
          },
          "type": "array"
        },
        "minsize": {
          "$ref": "#/$defs/minsize"
        },
        "name": {
          "description": "Volume group name (will be automatically generated if omitted)\n",
          "type": "string"
        },
        "part_type": {
          "description": "The partition type GUID for GPT partitions. For DOS partitions, this field can be used to set the (2 hex digit) partition type. If not set, the type will be automatically set based on the mountpoint or the payload type.\n",
          "type": "string"
        },
        "type": {
          "enum": [
            "lvm"
          ],
          "type": "string"
        }
      },
      "required": [
        "type",
        "logical_volumes"
      ],
      "type": "object",
      "x-go-type": "composer.VolumeGroup"
    },
    "minsize": {
      "description": "size with data units",
      "type": "string"
    }
  }
}