Tenants: what a hosted offering would need, and what the layout must not close

未关闭
#93 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript

调研方向

Start by reviewing ADR-0018 and the linked issues #17, #44, #20, and #19, then verify the listed Cloudflare platform limits and capabilities against current primary sources and record each source in the issue's research ledger. The work is done when the research is attached, the project lead accepts or changes a decision record on hosting model A or B, and the roadmap reflects the decision. This requires platform research and project level design, so it is not a suitable first contribution.

由索引模型根据 Issue 内容生成。

描述

decision enhancement needs lead security

Asked by the project lead on 2026-11-19, the day ADR-0018 was accepted: if governments, institutions and companies want this as a hosted service, should the foundations be ready for tenants?

Today one instance is one organisation. It has one database for accounts, one bucket, one set of instance roles (owner, administrator, member) above the memberships of each mailbox, and it runs in that organisation's own Cloudflare account. Nothing in the code knows a second organisation. ADR-0018 is accepted and is not edited; what this asks gets a record of its own.

The two things "tenants" can mean

A. An instance for each organisation, run for them. The code stays as it is: one instance, one organisation. What is added is outside it: something deploys, updates, backs up and watches many instances, in the organisation's own account or in the operator's. Each organisation has its own Worker, database, bucket and objects, so one cannot read another's by a mistake in a query.

B. One instance for many organisations. An organisation becomes a thing in the data: every account, mailbox, membership, key, audit entry and stored object belongs to one, and every decision of authorize is asked inside one. One database and one bucket hold everyone's.

They are not steps of one path. A is mostly work outside this repository; B changes the access model, the storage keys and every table.

What the layout should not close, whichever it is

These are cheap now and expensive later, and none of them builds tenancy:

  • An organisation has a name in the contract, even while there is exactly one: an instance knows which organisation it is, so that an id, an export or an audit entry can say so.
  • Storage keys do not carry an address (#17), so that a prefix or a bucket for each organisation can be added without renaming objects.
  • Everything an operator needs from outside is in the installer's contract (#44) and the health endpoint (#20): version, what is switched on, what it needs, whether it is well. That is what running many instances for others leans on.
  • Limits and usage are countable for an instance: mailboxes, storage, mail sent. An operator bills or caps by them; a single organisation wants them too.
  • Where the data lives is a setting, not an accident: the platform's location and jurisdiction options for objects, the database and the bucket are chosen when an instance is made.
  • Exports and deletion an owner can verify (#19) are per organisation, which is what a regulated buyer asks for first.

A decision record must answer

  • Which of A and B is the hosted offering, or that there is none for now. For A: in whose account the instances run, which meets the own-account rule of the founding decisions.
  • What the platform allows for each: the limits of one account on Workers, Durable Object classes, databases and buckets; running a Worker for each customer under a platform namespace; a customer's own hostname; receiving and sending mail for a domain whose DNS is not in the operator's account; data location and what the platform states about certifications. Research from current primary sources was started on 2026-11-19 and is added here when it reports.
  • What of the list above is done before version 0.1, and what waits.
  • Who operates a hosted offering. That is outside this repository and is not decided here.

Done when

  • The research is on this issue, each platform fact re-read at its source and in the ledger.
  • A record is proposed and accepted or changed by the project lead.
  • The roadmap says what it changes.
主要语言
TypeScript
星标
1
派生
1
平均合并
9 小时 3 分钟
30 天内合并 PR
136

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cloudhal-dev/podbay 的其他 Issue

查看 cloudhal-dev/podbay 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。