Skip to content

About

Shared Rust platform core for the az* local Azure emulator family

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Azuniverse

Azuniverse logo

CI Release License: MIT OR Apache-2.0

The shared Rust platform behind the az* local Azure emulator family. Its libraries provide common CLI and admin server building blocks, a test clock, fault injection, local identity, a TLS CA, and a recording harness so each product can focus on its own Azure service.

Azuniverse is not an emulator and not a monorepo. It contains no Azure service logic (no blobs, queues, or secrets). Products are designed to run as standalone binaries; they don't require an Azuniverse process.

Status | Architecture | Crates | CI & release pipelines | Port registry | Roadmap | Project docs

Status

Active build-out (targeting Azuifer v0.4.0 + Microsoft Oxidizer platform). All 15 workspace packages are on main: fourteen platform libraries and the optional azuniverse host binary (ADR-0010). They use the Microsoft Oxidizer stack verified in Azuifer v0.4.0 (ADR-0008). Azuifer and Azcipher do not yet consume the crates or register with the host. All 15 workspace packages are published at 0.1.0 on crates.io; no GitHub v0.1.0 release tag has been pushed yet. The five-SDK DefaultAzureCredential managed-identity spike remains open (ADR-0007).

Architecture

Azuniverse high-level architecture across Azuifer, Azcipher, and shared platform crates

  1. Library crates (azuniverse-*) for products to adopt with exact version pins.
  2. Optional host binary (azuniverse) that runs a local token issuer, CA, discovery, and optional admin UI. up launches compatible executables already on PATH; clock changes fan out only to registered products. This flow has been tested with a stand-in, not with Azuifer or Azcipher.
  3. Shared CI and governance — reusable workflows, deny.toml, rustfmt.toml, and multi-agent audit checks.

The platform contract requires cross-product calls to use Azure protocols, not shared memory or private APIs. It defines loopback defaults and consistent CLI flags (--in-memory, --location, --bind, --test-clock, --fault-injection, --seed).

The az* family

Repository What it owns Azuniverse dependency
monk-eee/azuniverse Shared platform crates, optional azuniverse host binary, UI, reusable CI Nothing in the family
monk-eee/azuifer Azure Storage emulator (Blob, DFS, Files, Queue, Table) Not yet adopted
monk-eee/azcipher Azure Key Vault emulator (Secrets, Keys, Certificates) Not yet adopted
(future) Event Grid emulator Local Event Grid delivery for Blob and custom events Planned

Crates

Crate Status Responsibility
azuniverse-clock On main Clock trait, SystemClock, TestClock (set, advance, freeze, resume), RFC 3339 / ISO-8601 parsers
azuniverse-runtime On main Shared CLI flags & subcommand skeleton, loopback admin HTTP (/healthz, /readyz, /status, /metrics), graceful shutdown, structured logging
azuniverse-trace On main Credential Redactor, x-ms-request-id / x-ms-client-request-id / W3C traceparent, bounded redacted RequestLog
azuniverse-faults On main Bounded FIFO fault rules, hit-count expiry, seeded deterministic probability, latency & reset decisions, resumable snapshots
azuniverse-seed On main Generic bounded TOML loader, symlink-safe contained payload reader, SeedApplier idempotent apply contract
azuniverse-store On main Guarded SQLite WAL store: exclusive file lock, symlink & newer-schema refusal, dedicated writer thread + N WAL reader pool
azuniverse-testkit On main Sanitized cassette recording, structural replay comparison, scoped conformance evidence
azuniverse-http On main Ring-only outbound HTTP (fetch), bounded GetPolicy retries/timeouts/body cap, coalesced Refresh
azuniverse-identity On main Bearer challenge, off/basic/jwks validation, remote JWKS over azuniverse-http, local ES256 issuer, experimental managed-identity endpoint, optional RBAC
azuniverse-tls On main Local development CA and rustls server identity loading (PEM/PFX)
azuniverse-events On main Event Grid and CloudEvents 1.0 envelopes, opt-in outbound delivery, bounded retries, metadata-only dead letters
azuniverse-discovery On main Local service registry and shell environment formatters used by the host
azuniverse-bench On main Bounded parallel load harness, latency percentiles, startup/RSS measurements, and baseline comparisons
azuniverse-ui On main Feature-gated embedded web UI under /ui for a loopback admin server
azuniverse On main Optional host binary: serve, up, env, and ca export

CI and release pipelines

Workflow Trigger What it verifies
Repository checks PRs, pushes to main, workflow_dispatch Docs/ADR, source-size and package-input audits + Python tests on Linux/macOS/Windows; reusable Rust gate (fmt, clippy -D warnings, cargo test, cargo-deny); LLVM coverage (coverage.lcov)
Reusable Rust checks workflow_call Workspace cargo metadata --locked, fmt, clippy -D warnings, cargo test --locked --workspace --all-features across Linux/macOS/Windows, and cargo-deny
Release v* tags, manual workflow_dispatch preview Runs docs, file-size and package-input audits, audit tests and the full Rust gate; packages the source archive with dual licenses, verifies the Cargo SPDX 2.3 SBOM, signs build provenance, and publishes the GitHub Release (manual runs only preview)
Publish crates Manual workflow_dispatch (dry_run: true default) Verifies audits + 3-OS Rust gate, checks .crate archive contents, and publishes all 15 packages in 3-stage dependency order via GitHub OIDC (rust-lang/crates-io-auth-action) or one-time bootstrap_token (environment: release)
Nightly quality Daily schedule, workflow_dispatch Scoped cargo-mutants mutation testing (0-indexed --shard 0/1), rotating across workspace crates

Port registry

Every port can be overridden. Defaults are assigned in blocks of 10 so products never collide.

Product Default ports Notes
Azuifer 10000 Blob, 10001 Queue, 10002 Table, 10003 DFS, 10004 Files, 10005 admin Azurite-compatible defaults
Azuniverse 10010 admin + UI, 10011 identity / token endpoint Shared host
Azcipher 10020 vault (HTTPS), 10021 admin Key Vault
Event Grid product 10030 delivery/API, 10031 admin Reserved
Future products 10040+ in blocks of 10 Reserved

Roadmap

These are design milestones, not published releases. Current package status is in the crate matrix.

Release Milestone
v0.1.0 Extract clock, runtime, trace, faults, seed, testkit from Azuifer with zero behaviour change; reusable CI workflows
v0.2.0 store writer actor + read pool (target >= 4x throughput at 32 clients), tls, identity (DefaultAzureCredential spike + local issuer), bench
v0.3.0 azuniverse host binary (serve, up, env, ca export), discovery, shared clock, optional /ui
v0.4.0 events crate + opt-in Azuifer BlobCreated/BlobDeleted publishing

See the platform specification for the full design, extraction checklist, and success targets.

Run checks locally

Rust workspace checks use the pinned toolchain (Rust 1.100.0, 2024 edition):

cargo fmt --all -- --check
cargo clippy --locked --workspace --all-targets --all-features -- -D warnings
cargo test --locked --workspace --all-features
cargo deny --all-features --locked check

The full repository audit suite uses Python 3.11+ (stdlib only):

uv run scripts/audit-docs.py
uv run scripts/audit-file-size.py
uv run scripts/audit-packages.py
uv run scripts/test_audits.py

See Contributing for virtualenv, cargo-llvm-cov, and pre-commit instructions.

Project docs

Start here What you'll find
Platform specification Full v0.1.0–v0.4.0 design, crates, identity, storage concurrency, and extraction plan
Onboarding How the workspace is organized and where to start
Architecture decision records Design choices, alternatives, and verification criteria
Contributing Validation commands, DCO sign-off, and extraction PR rules
Convention adoption How Azuniverse adopts and adapts Azuifer's repo conventions
Releases Release preview, tagging, SPDX SBOM, checksums, and provenance verification
Changelog Release history and unreleased changes
Code of conduct Community standards and private reporting
Security policy How to report a security issue privately
Agent instructions Rust, safety, and multi-agent engineering rules

Azuniverse is a personal open-source project and is not affiliated with, endorsed by, or supported by Microsoft. "Azure" and service names are used only to describe compatibility. Licensed under either the MIT License or the Apache License 2.0, at your option.

About

Shared Rust platform core for the az* local Azure emulator family

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages