mirror of
https://github.com/hanzoai/cloud.git
synced 2026-11-23 21:00:04 +00:00
The single Go binary that runs the compute/backend control plane: KMS secrets, object storage, DNS/provisioning, PaaS, code + exec, zero-trust sharing, audit, gateway edge, feature flags, security, and the plugin runtime — every subsystem mounted from one composition root. Open-core by construction, not by deletion. The proprietary planes — identity, commerce, AI inference, observability, the message bus, billing — are injected through the cloud/types extension interfaces, so this binary links only public infrastructure libraries and a missing plane mounts fail-closed and says so rather than pretending to work. Published from a fresh root rather than a filtered history: the extraction it came from began life without git, and a squashed root is the only way to be sure no earlier blob travels with it. Runs on a laptop with no Kubernetes, no cluster and no external services — `CLOUD_DEV_UNENCRYPTED=1 cloud -data-dir /tmp/cloud` boots ~32 subsystems on HTTP and ZAP. Encryption at rest stays fatal-by-default on a capable build; the dev flag relaxes only the no-key case, loudly. Co-authored-by: Hanzo Dev <[email protected]>
13 lines
541 B
Go
13 lines
541 B
Go
package cloud
|
|
|
|
// Version is the API contract/build version emitted as the X-Api-Version
|
|
// response header — the support-correlation build signal (the brand-neutral
|
|
// analog of the image tag). Stamped at link time by the release build:
|
|
//
|
|
// -ldflags "-X github.com/hanzoai/cloud.Version=<image tag>"
|
|
//
|
|
// and overridable at runtime by CLOUD_VERSION, which the operator sets from the
|
|
// deployed image tag without a rebuild (the same channel as CLOUD_BRAND).
|
|
// Defaults to "dev" for an untagged go build / go test.
|
|
var Version = "dev"
|