CloudRING

module
v0.1.0-c02.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2026 License: Apache-2.0

README

CloudRING

An open cloud platform for a world with many providers, many jurisdictions, and no single point of control.

CloudRING is an Apache-2.0 open source project for building private clouds, public cloud providers, and—eventually—a federation of independently operated clouds. It is being built to combine a provider control plane with OCSv3 (Open Cloud Standard 3), a portable contract for developing and delivering cloud services without hard-wiring them into one provider, one platform implementation, or one technology stack.

[!WARNING] CloudRING is in early development and is not ready for production or pilot use. Do not use it to operate real workloads, customer data, or critical infrastructure. Passing repository tests proves only the code and contracts present in that commit. Pilot readiness will be announced separately after the required installation, security, durability, upgrade, failure, and user journey evidence exists.

Repository authority

This repository is the complete public source boundary for CloudRING. A reader does not need access to any non-public repository to build, test, understand, or contribute to the code and contracts kept here.

Use these entry points:

Question Authoritative entry point
What is this repository and where does code live? Repository map
What architecture is intended and what is only a proposal? Architecture index
What exists today and what remains blocked or planned? Public current state
What is the delivery order and status? roadmap/roadmap.yaml, the single canonical roadmap/status index
How are experiments, evidence, generated files, and historical documents handled? Repository lifecycle
How are changes governed and owned? Contributing, governance, and CODEOWNERS

Narrative roadmap documents explain the machine-readable index; they do not create a second status authority. Historical and compatibility files retain traceability only and cannot mark a roadmap goal delivered.

Why CloudRING exists

Cloud computing should not require users to accept permanent dependence on one provider, one proprietary control plane, or one jurisdiction. It should not require every regional provider or internal infrastructure team to rebuild the same identity, lifecycle, billing, portal, and operations foundations from scratch either.

CloudRING's long-term goal is to make cloud infrastructure an interoperable, competitive network:

  • users choose providers and services for their quality, location, cost, and legal fit—not because leaving is impractical;
  • providers share a reliable open platform and invest in the services and operating experience that differentiate them;
  • enterprises run the same model in private infrastructure and can extend it with compatible public capacity when appropriate;
  • independent teams build cloud services once against a portable contract and offer them wherever participating providers allow;
  • no single company, provider, control plane, or jurisdiction becomes the unavoidable global switch for the whole network.

This is a design goal, not a claim about the current software. CloudRING does not attempt to bypass law or provider policy. Every operator remains responsible for the laws, security obligations, commercial terms, and customer commitments that apply to its deployment.

Read VISION.md for the full project direction and the public roadmap for the evidence-gated path from today's repository to independent provider operation and federation.

A cloud operating system, not a fixed service bundle

CloudRING treats the platform as a cloud operating system. The target shared core will provide the capabilities that should not be reinvented for every service:

  • identity, tenancy, IAM, policy, admission, and durable audit;
  • catalog, orders, subscriptions, quota, capacity, metering, and billing foundations;
  • API, CLI, portal, automation, support, and evidence surfaces;
  • provider-neutral installation, GitOps, observability, backup/restore, upgrade, rollback, and operations contracts;
  • regional cells and provider adapters that hide infrastructure-specific details behind portable interfaces.

Compute, networks, volumes, Kubernetes, object storage, databases, queues, AI infrastructure, and future products are cloud services. A service may be part of CloudRING, maintained by a provider, or developed independently. It becomes a first-class service by satisfying the same integration and operational contracts—not by receiving privileged access to platform internals.

OCSv3: one contract for cloud services

OCSv3 defines how a service participates in the platform while leaving its implementation replaceable. A conforming module declares its:

  • API/controller and lifecycle behavior;
  • tenant, project, IAM, and dependency model;
  • portal extension and automation interfaces;
  • meters, billing linkage, quota, and capacity needs;
  • health, readiness, observability, support, and product analytics;
  • durability, backup, restore, upgrade, rollback, export, and deletion behavior;
  • distribution, federation, compatibility, and commercial metadata.

The wire contracts are intended to be language-neutral. The current reference implementation is Go-first and targets upstream Kubernetes APIs, but a service does not become portable by sharing CloudRING's implementation language. It becomes portable by exposing stable APIs, events, packages, and evidence that another conforming platform can validate and operate.

OCSv3 is a specification developed by the CloudRING project. It is not currently an accredited international standard or certification scheme. See What is OCSv3?, the product architecture invariants, the OCSv3 architecture, and the conformance guide.

The ecosystem model

CloudRING is designed for four groups whose incentives should reinforce one another:

Participant What CloudRING is intended to provide
Cloud providers A reusable provider platform, a way to add differentiated services, and a future path to distribute approved services through a wider network.
Enterprises and private-cloud teams One auditable control surface for internal and external infrastructure, with portable services and an explicit exit path.
Service developers A common development and publication contract for reaching providers and private clouds without a custom integration for each one.
Cloud users A consistent way to discover, consume, operate, and move between compatible services while retaining provider and jurisdiction choice.

The intended economy is open rather than uniform. A module may be open source, commercial, provider-specific, or independently licensed. Providers decide which modules they admit and on what terms. Future marketplace, licensing, settlement, and revenue-sharing capabilities must be explicit, auditable, and policy-controlled; none of them is a working production capability today.

Target architecture

flowchart TB
    ServiceTeams["Service teams"] -->|"OCSv3 packages and APIs"| ProviderPlane
    Users["Users, enterprises, and agents"] -->|"One policy-controlled API"| ProviderPlane

    subgraph Provider["Independently operated CloudRING provider"]
        ProviderPlane["Provider management plane"]
        ProviderPlane --> CellA["Regional cell A"]
        ProviderPlane --> CellB["Regional cell B"]
        CellA --> ProductsA["OCS cloud products"]
        CellB --> ProductsB["OCS cloud products"]
    end

    ProviderPlane -. "future opt-in federation" .-> OtherProviders["Other providers and private clouds"]

The target separates three concerns:

  1. Provider management plane — identity, tenancy, product governance, commercial policy, APIs, audit, and fleet coordination.
  2. Regional cells — bounded scale and failure units for lifecycle controllers and infrastructure bindings.
  3. Product data planes — independently built services whose high-volume traffic and implementation details do not pass through the platform core.

Federation must not introduce a shared root administrator, universal database, or mandatory coordinator whose loss disables every provider. Providers opt in to relationships and retain control over what they expose. Existing workloads should continue safely through a temporary loss of federation or management connectivity whenever the product's declared operating model permits it.

What exists today

The repository already contains useful early slices, including:

  • OCSv3 package types, validators, SDK code, conformance fixtures, and a module registry contract;
  • identity, OIDC/JWKS/JWT, IAM-policy, secure-session, and audit primitives;
  • a PostgreSQL-backed transactional-state implementation;
  • provider-neutral site inventory, kubeadm rendering, and HA verification contracts;
  • backup-proof collection, proof signing, one-server-loss observation, HTTP security checks, and source-safety tooling.

It does not yet provide a complete installation, serving identity platform, durable provider control plane, executable product registry, production portal, billing runtime, end-to-end reference cloud product, proven provider pilot, or working multi-provider federation. Examples and test fixtures are synthetic.

Current three-node and one-server-loss material is a reference topology for testing a single-failure envelope. It is not a universal HA promise or a requirement that every future installation contain exactly three servers. A topology-neutral failure-domain, quorum, replication, and SLO contract is planned and is not implemented by this documentation.

The project reports readiness fail-closed: missing or stale live evidence means blocked or unverified, not ready.

Start here

If you build a cloud service
  1. Read What is OCSv3?.
  2. Follow the developer guide and module authoring guide.
  3. Inspect the synthetic reference module.
  4. Validate the package with ocsctl and the conformance suite.
If you operate infrastructure

Start with the provider adapter model, site installation contract, and evidence and readiness model. These are early contracts and tools, not an installation guide for a production cloud.

If you want to contribute

Read CONTRIBUTING.md, GOVERNANCE.md, and the public repository boundary. Contributions are welcome across the platform runtime, OCSv3, services, adapters, tests, security, operations, documentation, and developer experience.

Validate a fresh clone

Prerequisites: Git and Go 1.26.8 or a newer supported security patch. The development installer and CI use Go 1.26.8.

git clone https://github.com/opencloudtech/CloudRING.git
cd CloudRING
go mod download
go test ./... -count=1
packages=(./examples/synthetic-service-module/connector-package.json ./reference/synthetic-service/module-package.json ./modules/*/module-package.json)
go run ./cmd/ocsctl validate "${packages[@]}"
go run ./cmd/ocsctl conformance "${packages[@]}"
docker build --file ./reference/synthetic-service/Containerfile --tag cloudring-synthetic-service:dev .
docker run --rm cloudring-synthetic-service:dev --mode=mock-provider --check
go run ./cmd/cloudring-registry validate ./contracts/module-registry/fixtures/synthetic-module-registry.json
go run ./cmd/cloudring-manifestcheck --root .

The inputs above are synthetic. A successful run is repository validation, not proof that a real cloud deployment is safe or ready.

Project boundaries

Reusable platform code, contracts, open source modules, provider-neutral adapters, tests, and documentation belong in this repository. Credentials, customer or tenant data, private endpoints, deployment-specific configuration, live evidence, and company-only modules do not.

Independently developed modules remain owned and licensed by their authors unless they are contributed to CloudRING. See OWNERSHIP.md, SECURITY.md, and TRADEMARKS.md for the exact project boundaries.

License

CloudRING is licensed under the Apache License 2.0. See NOTICE for attribution.

Directories

Path Synopsis
cmd
cloudring command
cloudring-id command
cloudring-proof command
cloudring-site command
cloudringctl command
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0
ocsctl command
internal
openbaoapply
Package openbaoapply executes the fail-closed OpenBao Kubernetes-auth plan.
Package openbaoapply executes the fail-closed OpenBao Kubernetes-auth plan.
privateartifact
Package privateartifact reads existing and writes new owner-only JSON artifacts through stable directory handles without following or replacing the final path.
Package privateartifact reads existing and writes new owner-only JSON artifacts through stable directory handles without following or replacing the final path.
roadmapprogram
Package roadmapprogram validates the canonical CloudRING delivery roadmap.
Package roadmapprogram validates the canonical CloudRING delivery roadmap.
strictjson
Package strictjson provides bounded structural validation for untrusted JSON.
Package strictjson provides bounded structural validation for untrusted JSON.
pkg
backup/cnpgrecovery
Package cnpgrecovery defines and verifies the provider-neutral evidence contract for an isolated CloudNativePG recovery from an off-cell base backup and continuous WAL archive.
Package cnpgrecovery defines and verifies the provider-neutral evidence contract for an isolated CloudNativePG recovery from an off-cell base backup and continuous WAL archive.
backup/drill
Package drill implements the provider-neutral Goal01 backup/restore drill transaction.
Package drill implements the provider-neutral Goal01 backup/restore drill transaction.
backup/etcdrecovery
Package etcdrecovery implements a provider-neutral, offline etcd snapshot recovery worker.
Package etcdrecovery implements a provider-neutral, offline etcd snapshot recovery worker.
backup/restoreproof
Package restoreproof defines provider-neutral, source-safe backup and restore evidence contracts.
Package restoreproof defines provider-neutral, source-safe backup and restore evidence contracts.
backup/scratchnamespace
Package scratchnamespace owns one isolated restore namespace through a durable create fence and exact Kubernetes deletion preconditions.
Package scratchnamespace owns one isolated restore namespace through a durable create fence and exact Kubernetes deletion preconditions.
backup/velero118
Package velero118 collects and decodes the exact Velero v1.18.2 CSI data-mover contract.
Package velero118 collects and decodes the exact Velero v1.18.2 CSI data-mover contract.
controlplane
Package controlplane serves the public CloudRING management API and portal.
Package controlplane serves the public CloudRING management API and portal.
devinstall
Package devinstall installs one disposable, explicitly non-production provider.
Package devinstall installs one disposable, explicitly non-production provider.
gitopsownership
Package gitopsownership defines a provider-neutral, fail-closed contract for proving that an accepted Flux source artifact and its exact Kustomization roots uniquely own the declared critical resource families.
Package gitopsownership defines a provider-neutral, fail-closed contract for proving that an accepted Flux source artifact and its exact Kustomization roots uniquely own the declared critical resource families.
httpsecurity
Package httpsecurity provides a provider-neutral, read-only audit of the public HTTP transport and response-header boundary for CloudRING surfaces.
Package httpsecurity provides a provider-neutral, read-only audit of the public HTTP transport and response-header boundary for CloudRING surfaces.
iam
Package iam implements provider-neutral, fail-closed authorization decisions for CloudRING organizations, tenants, projects, support grants, API-token references, break-glass controls, and audit sinks.
Package iam implements provider-neutral, fail-closed authorization decisions for CloudRING organizations, tenants, projects, support grants, API-token references, break-glass controls, and audit sinks.
identity
Package identity implements provider-neutral OIDC discovery, profile-bound asymmetric JWT verification, JWKS rotation, bootstrap-credential references, secure session cookies, CSRF protection, and management-surface fail-closed gates.
Package identity implements provider-neutral OIDC discovery, profile-bound asymmetric JWT verification, JWKS rotation, bootstrap-credential references, secure session cookies, CSRF protection, and management-surface fail-closed gates.
kubeadm
Package kubeadm validates and renders provider-neutral upstream Kubernetes control-plane bootstrap, sequential HA expansion, and runtime acceptance contracts.
Package kubeadm validates and renders provider-neutral upstream Kubernetes control-plane bootstrap, sequential HA expansion, and runtime acceptance contracts.
kubeconfigpipe
Package kubeconfigpipe replays one bounded pipe-backed kubeconfig through a fresh anonymous pipe for each child command without placing the credential in argv, the environment, or a regular file.
Package kubeconfigpipe replays one bounded pipe-backed kubeconfig through a fresh anonymous pipe for each child command without placing the credential in argv, the environment, or a regular file.
kubeidentity
Package kubeidentity defines canonical privacy-safe hashes for Kubernetes object identities shared by public collectors and downstream adapters.
Package kubeidentity defines canonical privacy-safe hashes for Kubernetes object identities shared by public collectors and downstream adapters.
ocs
openbaoauth
Package openbaoauth defines the source-only CloudRING contract for planning least-privilege OpenBao Kubernetes authentication.
Package openbaoauth defines the source-only CloudRING contract for planning least-privilege OpenBao Kubernetes authentication.
openbaobootstrap
Package openbaobootstrap exposes the non-secret, deterministic delegation contract shared by the protected credential broker and the apply executor.
Package openbaobootstrap exposes the non-secret, deterministic delegation contract shared by the protected credential broker and the apply executor.
openbaoexecutor
Package openbaoexecutor renders the temporary Kubernetes identities, Lease, and least-privilege RBAC required by the protected OpenBao bootstrap executor.
Package openbaoexecutor renders the temporary Kubernetes identities, Lease, and least-privilege RBAC required by the protected OpenBao bootstrap executor.
proofsignature
Package proofsignature signs and verifies exact CloudRING proof payloads.
Package proofsignature signs and verifies exact CloudRING proof payloads.
provideradapter
Package provideradapter defines provider-neutral protocols between CloudRING core and downstream infrastructure adapters.
Package provideradapter defines provider-neutral protocols between CloudRING core and downstream infrastructure adapters.
registry
Package registry validates the provider-neutral CloudRING module registry contract.
Package registry validates the provider-neutral CloudRING module registry contract.
resilience/oneserverloss
Package oneserverloss collects and verifies provider-neutral evidence that a CloudRING installation survives the loss and recovery of one server.
Package oneserverloss collects and verifies provider-neutral evidence that a CloudRING installation survives the loss and recovery of one server.
secureexec
Package secureexec pins an executable identity once and runs bounded child commands inside the CloudRING process-tree and kubeconfig replay boundary.
Package secureexec pins an executable identity once and runs bounded child commands inside the CloudRING process-tree and kubeconfig replay boundary.
siteprofile
Package siteprofile validates provider-neutral site inventory and renders a deterministic installation plan.
Package siteprofile validates provider-neutral site inventory and renders a deterministic installation plan.
transactionalstate
Package transactionalstate provides PostgreSQL-backed document state and an append-only audit journal for CloudRING control-plane state.
Package transactionalstate provides PostgreSQL-backed document state and an append-only audit journal for CloudRING control-plane state.
reference
sdk
ocsv3
Package ocsv3 exposes the public CloudRING SDK contract for OCSv3 connector packages.
Package ocsv3 exposes the public CloudRING SDK contract for OCSv3 connector packages.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL