Repository navigation
feat(up): support staged apps, static hanzo.config, and Hanzo OCI preference (#57) - #91
Merged
Merged
Conversation
…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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Advances
hanzoai/cli#57and enables single-commandhanzo updeployment for Cloud-native staged subsystems such as FanClub AI (hanzoai/cloud#69/hanzoai/cloud#57):CLOUD_OCI = "oci.hanzo.ai/hanzoai/cloud-oss:main"(verified multi-arch index live onoci.hanzo.ai), prefers it automatically when Hanzo OCI credentials are present, and adds--strict-registry(HANZO_STRICT_REGISTRY=1) which refusesghcr.io/ external registries with zero silent fallback.--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 thevm-measureworkload register).hanzo.config.json/hanzo.config.tswithout executing TypeScript.Verification
cargo fmt --all -- --check— PASScargo clippy --locked --all-targets -- -D warnings— PASScargo test --locked --workspace --lib && cargo test --locked --bin hanzo— PASS (including new tests forselect_cloud_image,workload_for, static manifest parsing, and CLI flag parsing)Refs #57.