Skip to main content

openimages.cloud: signed, boot-tested cloud images for OpenStack and Proxmox

oic-sync

CI Verifies Sigstore cosign signatures License Apache-2.0

Website · Catalog · index.json · Documentation · Report an issue

Keep the signed cloud images of openimages.cloud in sync with your OpenStack Glance or your Proxmox VE node.

oic-sync reads the catalog index (https://images.openimages.cloud/index.json), verifies the cosign signature of each image, imports the versions your cloud does not have yet, gives the newest one a stable name ("Debian 13" in Glance, debian-13 on Proxmox VE) and retires the older ones. It keeps no local state and can run every day from a systemd timer, a Kubernetes CronJob or a CI job: when everything is up to date, it changes nothing.

Status: alpha. OpenStack and Proxmox VE (VM templates, tested on Proxmox VE 9.2) are supported, see Proxmox VE.

Install

# OpenStack: the backend needs openstacksdk, an optional extra
pipx install 'oic-sync[openstack]'
# or the container image (signed with cosign, OpenStack backend included)
docker run --rm -v ~/.config/openstack:/etc/openstack:ro \
  ghcr.io/open-img-cloud/oic-sync openstack status --cloud mycloud

Python 3.10 or newer. Credentials come from the standard clouds.yaml (--cloud), or from OS_* environment variables when no cloud is named. An application credential restricted to the image service (plus read access to servers and volumes for --delete) is enough.

Proxmox VE: pipx install oic-sync on the node itself, see Proxmox VE.

Usage

# What the index offers (no cloud needed)
oic-sync list
# Verify the cosign signatures of the index (no cloud needed)
oic-sync verify --image debian-13

# Compare a cloud with the index (read only)
oic-sync openstack status --cloud mycloud
# Show what a sync would do (read only, signatures verified)
oic-sync openstack sync --cloud mycloud --image debian-13 --image ubuntu-24.04 --dry-run
# Do it
oic-sync openstack sync --cloud mycloud --image debian-13 --image ubuntu-24.04 --keep 2
# Operator: public images, and remove versions beyond --keep that nothing uses
oic-sync openstack sync --cloud admin --visibility public --keep 3 --delete
Option Meaning
--image ID image to handle, repeatable (default: every image of the index except the service images octavia-amphora, manila-service-image and trove-guest-image and the test image cirros)
--variant NAME only this variant of multi-variant images (--variant uefi for Alpine)
--keep N versions kept per image, the current one included (default 2)
--delete delete versions beyond --keep, only when no instance and no volume uses them
--visibility private (default), shared, community or public (operators)
--dry-run read the cloud and verify signatures, change nothing
--import-method auto (default), web-download, glance-direct or upload
--property K=V extra or overriding Glance property (the oic_* keys are reserved)
--with-optional-properties add hw_rng_model=virtio (flavors must allow hw_rng:allowed)
--no-verify-signature skip the cosign check (not recommended)
--index-url URL another index ($OIC_INDEX_URL), e.g. a mirror
--cloud, --region clouds.yaml entry and region ($OS_CLOUD)
--timeout seconds to wait for an import to finish (default 3600)

openstack status --check exits with 1 when an image is not up to date, for monitoring. Exit codes: 0 success, 1 at least one image failed, 2 invalid arguments or index.

How it works

For each selected artifact of the index (an image, in one variant):

  1. Find. Our images are found in Glance by their properties: oic_id (and oic_variant for multi-variant images), owned by the current project. oic_version and oic_sha256 tell which version each holds. Nothing else is touched.

  2. Verify. When the index sha256 is not present yet, the cosign bundle of the artifact is verified against that digest, with the signer identity and OIDC issuer published in the index (signing block): the image must have been signed by an open-img-cloud build workflow through GitHub Actions. The image itself is not downloaded for this. A failed verification means no import.

  3. Import. The image is created hidden (os_hidden=true) under a versioned name, with all the Glance properties of the index (os_distro, hw_disk_bus, hw_firmware_type...), min_disk from the virtual size, and the oic_* keys. Then:

    • if Glance offers the web-download import method (/v2/info/import), Glance downloads the image itself; the multihash it computes (os_hash_algo/os_hash_value, sha512 by default) must equal the index sha512;
    • otherwise the image is streamed from the CDN to Glance (PUT /file), with sha256, sha512 and size computed on the fly; they must equal the index, and Glance's own multihash is checked too. Nothing is written to disk.

    On any mismatch or failure, the new image is deleted.

  4. Promote. The verified image takes the stable name (the image title, "Debian 13", or "Alpine Linux (UEFI)" for a variant) and is unhidden.

  5. Retire. Older versions are renamed "Debian 13 (13-20261026-2643)" and hidden: they leave image lists but stay usable by ID, so existing servers, rebuilds and Terraform states keep working.

  6. Rotate. The --keep newest versions are kept. With --delete, older ones are deleted when no server (Nova, image filter) and no volume (Cinder, glance_metadata) uses them; when this cannot be determined (no admin view of other projects for a public image), they are kept.

Failed or abandoned imports of a previous run (status killed, or still queued after 6 hours) are removed. A run is idempotent: run it twice, the second changes nothing.

Naming and infrastructure as code

The stable name moves to each new version. A Terraform or OpenTofu data source that looks an image up by name will therefore pick the new image after a sync, which can plan the replacement of existing servers. Look images up by property instead, and ignore image changes on long-lived servers:

data "openstack_images_image_v2" "debian" {
  properties  = { oic_id = "debian-13" }
  most_recent = true
}

Trust chain

The cosign signature covers the sha256 of the qcow2. The streaming upload checks that digest directly. With web-download, Glance only computes one digest (sha512 by default), which is compared with the sha512 of the index: that value comes from the build MANIFEST, fetched over HTTPS with the rest of the index, but is not itself covered by the signature. Use --import-method upload if you want the signed digest checked on every byte.

Proxmox VE

oic-sync proxmox keeps one VM template per image version on a Proxmox VE node, ready for qm clone. It runs on the node, as root (like pveam), and talks to the local API through pvesh: no API token, nothing to configure.

# On the node (Proxmox VE 9; 8.x with the "import" content type should work)
apt install pipx
pipx install oic-sync          # no openstacksdk needed
# Downloads go to the "import" content of a file storage: enable it once
# (list the content types the storage already has, plus import)
pvesm set local --content iso,vztmpl,backup,import

oic-sync proxmox status
oic-sync proxmox sync --image debian-13 --image ubuntu-24.04 --dry-run
oic-sync proxmox sync --image debian-13 --image ubuntu-24.04 --vmid-base 9000
# Remove versions beyond --keep that no linked clone uses
oic-sync proxmox sync --image debian-13 --keep 2 --delete

# Use a template
qm clone 9000 120 --name web1 --full 0
qm set 120 --sshkeys ~/.ssh/id_ed25519.pub
qm resize 120 scsi0 +20G && qm start 120

--image, --variant, --keep, --delete, --dry-run, --timeout, --index-url and --no-verify-signature work as for OpenStack, and status --check/--json too. Proxmox options:

Option Meaning
--node NAME node to work on (default: the node named like this host)
--import-storage file storage with the import content type, for downloads (default local)
--disk-storage storage of the template disks, EFI vars and cloud-init drive (default local-lvm)
--bridge bridge of net0 (default vmbr0)
--vmid-base N first VMID for templates, e.g. 9000 (default: the next free VMID of the cluster)
--memory MIB, --cores N template hardware (default 2048 MiB, 2 cores)

What a template looks like

The settings are those of the qm commands on each image page of the website:

  • virtio-scsi-single controller, scsi0 imported from the qcow2 (discard=on), boot from scsi0, virtio network on the bridge, serial console (serial0: socket, vga: serial0);

  • cloud-init drive on ide2, ciuser set to the image login user, ipconfig0: ip=dhcp;

  • QEMU guest agent enabled, except for images that do not ship it (hw_qemu_guest_agent=no in the index, e.g. CirrOS);

  • UEFI images: bios: ovmf, machine: q35 and an efidisk0 (4m, no pre-enrolled keys);

  • tags oic and oic-<image id>, and a description with a machine-readable block that oic-sync reads back:

    ```oic-sync
    oic_id=debian-13
    vmid=9000
    version=13-20261111-2659
    sha256=...
    imported_at=2026-11-13T09:00:00Z
    import_file=local:import/oic-9000-debian-13-13-20261111-2659-x86_64.qcow2
    source=https://images.openimages.cloud/...
    ```
    

Only VMs with these tags and this block are touched. Add your own tags freely: they are kept. A clone copies the tags and the description, but its block names another VMID (vmid=): clones are never touched.

Import, naming and rotation

  1. Verify. The cosign bundle is verified against the index sha256, as for OpenStack.
  2. Create the VM shell (not a template yet) with a free VMID.
  3. Download the qcow2 with pvesh create /nodes/<node>/storage/<storage>/download-url --content import --checksum <sha256> --checksum-algorithm sha256: Proxmox checks the signed digest itself.
  4. Import the disk (scsi0: <storage>:0,import-from=<file>) and add the cloud-init drive.
  5. Convert to a template, then delete the downloaded file.

On any failure, the VM and the downloaded file are removed. VM names must be DNS names: the current version is named after the image id (debian-13, alpine-linux-uefi for a variant), older versions <image id>-<version> (debian-13-13-20261026-2643). Proxmox has no hidden flag: retired versions get the tag oic-retired. The name debian-13 moves to the newest template at each sync, so automation should look templates up by tag and name at clone time; VMs already cloned (linked or full) are not affected by a rename.

With --delete, a version beyond --keep is destroyed only when no VM of the cluster is a linked clone of it (a disk referencing its base-<vmid>-disk-N volume). An import that never became a template (crashed run) is removed after 6 hours, with its downloaded file.

Limitations

  • One node per run, through the local API (pvesh, as root). Run it on each node that needs templates on local storage, or once for a shared storage. No remote mode, no API token.
  • VMs only (no LXC templates). qcow2 artifacts only.
  • Tested on Proxmox VE 9.2 with directory storages (qcow2 disks): BIOS and UEFI templates, linked clones, rotation, interrupted runs. LVM-thin, ZFS and Ceph disk storages should work but have not been tried yet: start with --dry-run and a single --image, and report issues.
  • Two runs at the same time on one node may import the same version twice: run it from one timer only.

Daily timer on the node (as root):

# /etc/systemd/system/oic-sync-proxmox.service
[Service]
Type=oneshot
ExecStart=/root/.local/bin/oic-sync proxmox sync --image debian-13 --vmid-base 9000 --keep 2
# /etc/systemd/system/oic-sync-proxmox.timer
[Timer]
OnCalendar=daily
RandomizedDelaySec=1h
Persistent=true

[Install]
WantedBy=timers.target

Run it periodically

The index is rebuilt once a day; a daily run is enough.

Development

python -m venv .venv && . .venv/bin/activate
pip install -e '.[test]'
ruff check . && ruff format --check .
pytest

The tests use fakes for Glance, Nova, Cinder, pvesh and HTTP: they never talk to a cloud.

Layout:

  • oic_sync/index.py: index schema oic-index/v1, parsing and selection
  • oic_sync/signature.py: cosign bundle verification (sigstore-python)
  • oic_sync/engine.py: platform-neutral planning and execution (import, promote, retire, delete)
  • oic_sync/backends/base.py: the backend interface
  • oic_sync/backends/openstack.py: Glance, Nova and Cinder calls
  • oic_sync/backends/proxmox.py: Proxmox VE templates through pvesh
  • oic_sync/hashing.py: streaming hash reader for uploads

License

Apache-2.0

Metadata

Release files for oic-sync 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oic-sync 0.1.0
File Size Uploaded Provenance Actions
oic_sync-0.1.0.tar.gz 62.3 kB With provenance Details for oic_sync-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for oic-sync 0.1.0
File Interpreter ABI Platform Actions
oic_sync-0.1.0-py3-none-any.whl Python 3 none any Details for oic_sync-0.1.0-py3-none-any.whl

Total release size: 105.8 kB

Release files / oic_sync-0.1.0.tar.gz

Download URL oic_sync-0.1.0.tar.gz
Size 62.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f43ce93449150aaa089b497cbe23aea1a9c790186b8d7a2747a6be7cd6fddffe
BLAKE2b-256 checksum
How to use checksums
0afe07d8719ff240246f6daa8dcca0764a9745073c50d3b530d1f0bd96868e90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / oic_sync-0.1.0-py3-none-any.whl

Download URL oic_sync-0.1.0-py3-none-any.whl
Size 43.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ce347825efd09c8453eb6f3ec8b6a450b297df676bbc3d09172d064e4b184fd
BLAKE2b-256 checksum
How to use checksums
6e27825374c86eaea2b41cbb0acb5202dc65f000ed1f5de9d43940ba91b7d79a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for oic-sync 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for oic_sync-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page