Library to manage VM's on hosts - mirror
  • Rust 94.1%
  • Shell 5.8%
  • Makefile 0.1%
Find a file
Till Wegmueller 7484caad0b
oci: env-driven auth + manifest-digest fetch helper
Previously resolve_auth() only knew about ghcr.io/GITHUB_TOKEN, leaving
every other private registry on anonymous — fine for public images, but
solstice-ci's orchestrator pulls catalog and base qcow2 layers from
private Forgejo packages on code.aopc.cloud and was hitting 401.

Add two env-driven auth paths, applied to any non-ghcr registry:

  OCI_AUTH_FILE=/path/to/auth.json
    JSON shaped like refraction-forger's auth file:
      {"username": "...", "password": "..."}  or
      {"token": "..."}  (username defaults to "forger")
    'password' and 'token' are interchangeable, matching forger's
    resolve_auth so the same file can drive push and pull.

  REGISTRY_USERNAME / REGISTRY_TOKEN
    Inline alternative for compose-style deployments. REGISTRY_TOKEN
    is the password; REGISTRY_USERNAME defaults to "forger".

Also expose fetch_manifest_digest(reference) so callers (e.g. solstice
orchestrator) can probe for tag rolls before re-pulling a multi-GB
qcow2 layer. Internally pulls just the manifest, no blobs.

Tests still pass — they exercise the ghcr / anonymous fallthrough,
which my new code preserves verbatim when the env vars are unset.
2026-04-28 22:23:01 +02:00
brand/nebula-vm Add vm-manager library and vmctl CLI 2026-02-14 18:25:17 +01:00
crates oci: env-driven auth + manifest-digest fetch helper 2026-04-28 22:23:01 +02:00
docs Fix docs-vs-implementation gaps and add OCI registry documentation 2026-04-12 23:02:04 +02:00
scripts Fix forger version check to use absolute path 2026-02-15 13:46:12 +01:00
.gitignore Remove docs build output and gitignore docs/book/ 2026-02-15 13:38:05 +01:00
Cargo.lock Add UEFI firmware support to QEMU backend 2026-04-13 18:45:18 +02:00
Cargo.toml Add OCI artifact pull support for QCOW2 images 2026-02-15 16:29:16 +01:00
Makefile Add OmniOS builder VM definition and provisioning scripts 2026-02-14 21:56:43 +01:00
VMFile.kdl Generate per-VM Ed25519 SSH keypairs instead of requiring user keys 2026-02-14 23:05:28 +01:00