Open Static Registry Protocol v1
Hya ships the core, migration tool, and frontend runtimes in its release
archive. Bundle publishers version and distribute their own packages. A
static registry advertises releases, dependencies, named profiles, and
artifacts for each target and native ABI. The official bundle repository
builds and signs the 21 packages in the default profile. The official
registry is enabled automatically alongside any community registries you add.
Official releases use short-lived Fulcio certificates issued to GitHub
Actions OIDC identities. Hya verifies the exact archive bytes, certificate
policy, and Rekor material with pinned Sigstore trust roots. The publisher
needs no long-lived signing key. A file:// mirror carries archives and
their detached verification material for air-gapped installs.
Usage
hya bundle registry list --jsonhya bundle registry add community https://packages.example.org/hyahya bundle registry refresh communityhya bundle search --remote --registry official ''hya bundle info --registry official hya/hashlinehya bundle install --profile default --require-official -yhya bundle upgrade --all -yhya abi info --jsonregistry add NAME URLadds or replaces a named root.registry remove NAMEremoves it and can disable the implicitofficialroot.registry refresh [NAME]fetches the index or revalidates its ETag.search --remote QUERYsearches configured indices (optionally narrowed with--registry NAME|URL,--installed,--scope, or--json). An empty query lists a remote catalog.info [--registry NAME|URL] IDshows release metadata; omitting--registryinspects local scopes first and falls back to configured registries for qualifiedpublisher/nameIDs when--scopeis not narrowed.install ID[@VERSION]resolves dependencies and selects an artifact by target and, for native bundles, ABI version and digest.--profile NAMEinstalls the profile’s bundle specifications.--registry NAMEor--registry URLselects a source. A direct URL can use HTTPS, loopback HTTP (for examplehttp://127.0.0.1:8080), or a localfile://path.--require-officialverifies official Sigstore provenance for every archive in the dependency closure. The registry release must list every prerequisite declared inside the archive. Installs from the built-inofficialregistry enforce the same policy automatically.-yaccepts prompts.install --from-sourcepermits a pinned source build when no prebuilt archive matches.--auto-toolchainpermits installing the exact Rust compiler through rustup. The confirmation shows the exact Git commit, requiredrustc -Voutput, and ABI SDK URL or local path before the SDK is downloaded or extracted. The resulting build haslocaltrust.upgrade IDorupgrade --allselects newer compatible releases for installed user bundles.hya updatechecks installed native bundles when the host ABI changes and can synchronize matching archives (accepting--from-sourceand--auto-toolchainwhen a pinned source rebuild is needed). Both commands require a verified official replacement for any installed official bundle. Runhya server restartto activate native library or provider changes.- The release installer uses the
defaultprofile. Choose one withscripts/hya-install.sh --profile NAME --registry URL. Usescripts/hya-install.sh --bareto install Hya and its runtimes alone.
To mirror the profile, run this on a connected machine with the destination
host’s ABI. Use --abi-digest HEX to select another digest.
hya bundle mirror --profile default --target x86_64-unknown-linux-gnu \ --out ./hya-mirrorCopy the mirror and matching Hya release to the offline machine and run:
hya bundle install --profile default --registry file:///srv/hya-mirror -yhya bundle info --scope user hya/hashlineTo host a community registry, serve the discovery, index, and bundle
manifests below from a static HTTPS origin. Upload each .hyabundle and
record its exact size and SHA-256. Relative URLs keep a registry relocatable.
Publish profiles and ABI snapshots as needed. Clients try configured
registries in order, with the implicit official root first. The registry’s
name determines whether clients enforce the built-in official policy. The
manifest trust tier cannot grant installed trust. Verification determines
the installed tier.
Interface definitions
The following object schemas describe the JSON fields. A ? marks a field
that may be omitted or null. Other fields are required. Discovery, index,
bundle, profile, and ABI snapshot objects reject unknown fields. u32 and
u64 are unsigned JSON integers. SHA256 is a
string of 64 hex characters. Bundle IDs use publisher/name. Profile
entries and release prerequisites may pin a version as id@version.
Discovery and index
GET /.well-known/hya-registry.json returns Discovery. If it is absent,
clients use the v1 paths listed here. URL fields accept registry-relative
paths and absolute URLs. Bundle templates use {publisher} and {name},
or {id}. Profile and ABI templates use {name} and {abi_digest}
respectively.
Discovery = { protocol_version: 1, name: string, display_name?: string, index_url: string, bundle_url_template: string, profile_url_template?: string, abi_url_template?: string, advisories_url?: string, search_api_url?: string}GET /v1/index.json returns Index and may supply an ETag.
Index = { schema_version: 1, generated_at: string, profiles: string[], bundles: IndexEntry[] }IndexEntry = { id: string, publisher: string, name: string, summary: string, runtime_kind: string, has_tui: boolean, trust_tier: string, capabilities: string[], latest_version: string, tags: string[], supported_targets: string[], supports_source_build: boolean}Bundles, profiles, and ABI snapshots
GET /v1/bundles/<publisher>/<name>.json returns BundleManifest.
Versions use SemVer. hya_version_req is a SemVer requirement on the host.
Use any for portable artifacts and the full Rust target triple for native
artifacts. Native artifacts require the ABI version and digest. Official
artifacts require sigstore_bundle_url.
BundleManifest = { schema_version: 1, id: string, publisher: string, trust_tier: string, homepage?: string, overview_url?: string, versions: Release[] }Release = { version: string, published_at: string, hya_version_req?: string, requires: string[], runtime_kind: string, artifacts: Artifact[], source?: SourceRecipe }Artifact = { target: string, abi_version?: u32, abi_digest?: SHA256, filename: string, download_url: string, sha256: SHA256, size_bytes: u64, sigstore_bundle_url?: string }SourceRecipe = { git_url: string, commit: string, subdir?: string, crate_dir: string, abi_version: u32, compatible_abi_sdk?: string }GET /v1/profiles/<name>.json returns Profile.
GET /v1/abi/<abi_digest>.json returns AbiSnapshot.
Profile = { schema_version: 1, name: string, version: string, description: string, bundles: string[] }AbiSnapshot = { schema_version: 1, abi_version: u32, abi_digest: SHA256, abi_id: string, target: string, rustc: string, hya_versions: string[], abi_sdk_url?: string, abi_sdk_sha256?: SHA256, cargo_lock_sha256?: SHA256 }Hya checks abi_sdk_sha256 against the downloaded archive and
cargo_lock_sha256 against its Cargo.lock.abi when those fields are
published. HTTPS snapshots from the official registry must provide
at least one checksum or a detached <abi_sdk_url>.sigstore.json proof
from the official Hya release workflow. The archive cache lives under
$XDG_CACHE_HOME/hya/abi-sdk/<abi_digest>/<origin_sha256_prefix>/.
The origin key includes the registry name, registry root and SDK URL.
Packing, verification and registry installation validate native library
headers for the declared Rust target without loading the library. Linux
packages must contain a little-endian ELF64 shared object. Darwin packages
must contain a 64-bit Mach-O dylib or a universal dylib with a matching
slice. The packaged library must match its library_sha256 metadata.
Advisories
GET /v1/advisories.json returns Advisories. The official registry signs
the exact JSON bytes and serves the proof at /v1/advisories.json.sigstore.json.
A matching bundle ID and archive digest identifies a yanked artifact.
Advisory signature and transport policy:
- Official registries and official artifacts: A registry selected as
official, an install using--require-official, and any artifact declaringsigstore_bundle_urlortrust_tier: officialrequire discovery to declareadvisories_url, and bothadvisories.jsonand its detachedadvisories.json.sigstore.jsonmust be available. Hya verifies the signature against the official advisory workflow policy and saves the highest verifiedgenerated_atin$XDG_CACHE_HOME/hya/registry/<registry-name>/advisories-state.json(or under~/.cache). A feed older than that timestamp is rejected. - Third-party HTTPS and local mirrors: Third-party HTTPS registries and
local
file://or loopback HTTP registries permit an unsignedadvisories.json(or omittingadvisories_urlwhen no feed is hosted) unless--require-officialis requested or an official Sigstore artifact is being installed. Unsigned advisory feeds still validateschema_version, RFC 3339generated_at, and SHA-256 digests. - No HTTPS downgrade: HTTPS registries cannot downgrade to non-HTTPS URLs in resolved manifest, artifact, SDK, or advisory URLs, nor across HTTP redirects.
- Freshness: For signed feeds on HTTPS registries,
generated_atcan be at most 30 days old and at most 10 minutes ahead of the local clock. SetHYA_ADVISORY_MAX_AGE_DAYSto a non-negative integer to adjust the age limit. Offlinefile://mirrors enforce RFC 3339 and the saved timestamp without a wall-clock expiry.
Advisories = { schema_version: 1, generated_at: RFC3339 string, advisories: Advisory[] }Advisory = { bundle_id: string, version: string, sha256: SHA256, severity: string, reason: string }Client configuration
bundle-registries.json lives alongside config.toml under the Hya config
directory (see Environment & File Paths). Both
top-level fields are optional and default to the values shown below. Registry
URLs accept HTTPS, loopback HTTP, and local file:// paths. HYA_REGISTRY_URL
overrides the implicit official URL.
{ "official_disabled": false, "registries": []}Each entry is {name: string, url: string}.
Sigstore verification and trust tiers
The verifier applies these six X.509 extensions to the Fulcio leaf after
cryptographic verification. The artifact policy uses the official bundle
repository’s tagged .github/workflows/release-official-bundle.yml and
accepts source repository claims from the bundle repository or registry. The advisory
policy uses the official registry and its tagged
.github/workflows/release-advisories.yml.
| X.509 OID | Claim | Required value |
|---|---|---|
1.3.6.1.4.1.57264.1.8 |
OIDC issuer v2 | https://token.actions.githubusercontent.com |
1.3.6.1.4.1.57264.1.17 |
Source repository owner ID | 338064108 (Chrono Foundry) |
1.3.6.1.4.1.57264.1.12 |
Source repository URI | Exact repository in the verification policy |
1.3.6.1.4.1.57264.1.9 |
Build signer URI | Exact workflow path followed by @refs/tags/<tag> |
1.3.6.1.4.1.57264.1.14 |
Source repository ref | refs/tags/<tag> |
1.3.6.1.4.1.57264.1.11 |
Runner environment | github-hosted |
official means successful verification under the official policy. A bundle
at this tier can request tool_plane: full. verified is reserved for
downstream verification policies and uses the internal-public plane.
local covers unsigned packages, project sources, and local builds and
also uses the internal-public plane.
Host and prepared native metadata
hya abi info --json returns AbiInfo (including the running host’s
hya_version). A release’s abi-manifest-<target>.json and the manifest
inside hya-abi-sdk-<abi_id>-<target>.tar.gz return AbiManifest (the same
ABI fields without hya_version, keeping the SDK archive independent of host
releases).
AbiInfo = { hya_version: string, target: string, rustc: string, abi_version: u32, abi_semver: string, abi_contract_digest: SHA256, abi_digest: SHA256, abi_id: string }AbiManifest = { target: string, rustc: string, abi_version: u32, abi_semver: string, abi_contract_digest: SHA256, abi_digest: SHA256, abi_id: string }abi_id pairs v2- with the first 16 hex characters of abi_digest.
Match the full digest when selecting or loading a library. The optional
runtime.native_artifact in .hya-prepared.json describes the library
declared by runtime.library.
NativeArtifact = { target: string, abi_version: u32, abi_digest: SHA256, rustc: string, library_sha256: SHA256 }library_sha256 covers the library bytes. Registry artifact sha256 covers
the complete .hyabundle. See Native Runtime ABI v2 for
the SDK and hyabundle Specification for the archive.