Skip to content

feat(up): support staged apps, static hanzo.config, and Hanzo OCI preference (#57) - #91

Merged
zeekay merged 1 commit into
mainfrom
feat/up-hanzo-oci-and-staged-manifest
Nov 25, 2026
Merged

zeekay merged 1 commit into
mainfrom
feat/up-hanzo-oci-and-staged-manifest

Conversation

@zeekay

@zeekay zeekay commented Nov 25, 2026

Copy link
Copy Markdown
Member

Summary

Advances hanzoai/cli#57 and enables single-command hanzo up deployment for Cloud-native staged subsystems such as FanClub AI (hanzoai/cloud#69 / hanzoai/cloud#57):

  • Hanzo-owned OCI preference & strict gate: Adds CLOUD_OCI = "oci.hanzo.ai/hanzoai/cloud-oss:main" (verified multi-arch index live on oci.hanzo.ai), prefers it automatically when Hanzo OCI credentials are present, and adds --strict-registry (HANZO_STRICT_REGISTRY=1) which refuses ghcr.io / external registries with zero silent fallback.
  • Measured workload config: Adds --staged (CLOUD_ENABLE_STAGED), --iam-issuer (CLOUD_IAM_ISSUER), and --ai-base-url (CLOUD_AI_BASE_URL) flags propagated into the k3s Deployment manifest (and covered by the vm-measure workload register).
  • Safe static manifest discovery: Reads declarative fields from hanzo.config.json / hanzo.config.ts without executing TypeScript.

Note: Native binary/k3s/hanzo-vm mirroring off GitHub Releases onto a signed Hanzo artifact host remains tracked in #57 (not string-substituted prematurely before those artifacts exist).

Verification

  • cargo fmt --all -- --check — PASS
  • cargo clippy --locked --all-targets -- -D warnings — PASS
  • cargo test --locked --workspace --lib && cargo test --locked --bin hanzo — PASS (including new tests for select_cloud_image, workload_for, static manifest parsing, and CLI flag parsing)

Refs #57.

…ference (#57)

Enable single-command `hanzo up` deployment of Cloud-native staged apps
such as FanClub AI (hanzoai/cloud#57) and advance Hanzo-owned OCI
distribution (#57):

- Add `CLOUD_OCI = "oci.hanzo.ai/hanzoai/cloud-oss:main"` and prefer it
  automatically whenever Hanzo OCI credentials are present.
- Add `--strict-registry` (`HANZO_STRICT_REGISTRY=1`) to enforce Hanzo-owned
  registries (`oci.hanzo.ai` / `pkg.hanzo.ai`) and fail closed on `ghcr.io`
  or external registries with zero silent fallback.
- Add `--staged` (`CLOUD_ENABLE_STAGED`), `--iam-issuer` (`CLOUD_IAM_ISSUER`),
  and `--ai-base-url` (`CLOUD_AI_BASE_URL`) flags propagated into the
  measured k3s Cloud Deployment manifest and supervisor argv.
- Add safe static discovery for `hanzo.config.json` / `hanzo.config.ts`
  declarative fields without executing TypeScript.

Refs #57.

Co-authored-by: Hanzo Dev <[email protected]>
@zeekay
zeekay merged commit f3d4947 into main Nov 25, 2026
1 check passed
@zeekay
zeekay deleted the feat/up-hanzo-oci-and-staged-manifest branch November 25, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant