object capability demonstration using secure VATs
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript
调研方向
未指定项目文件或测试。首先查看现有的 Dstack 示例和 Endo ocap sandbox,然后定义一个关于独立 vats 和跨实例对象引用的最小演示。完成内容应包括一个可运行的示例,展示序列化或 hardened 的代码以及敏感引用如何跨 sandbox 工作。
由索引模型根据 Issue 内容生成。
描述
There's a great body of work on object capability languages as a way of managing the risk of running untrusted code modules by only exposing limited fine-grained capabilities to the untrusted code.
But, while the subject is untrusted code, the environment itself in which the code runs, called a "Vat", must be considered trusted.
This is problematic when using cross-vat distributed code, because one malicious vat can steal the "Swiss number" references (random unguessable strings, effectively symmetric keys).
This makes it hard to reconcile object capability languages with smart contracts. In smart contracts we go out of our way to run consensus protocols so that a trusted environment can be built on untrusted nodes, but we can't assume privacy and so we can't use Swiss number references.
So now, by instantiating the vat with Dstack, we might be able to close this gap and draw some more insights or better composition / better hardening as a result.
As a starting point, we might simply run existing ocap sandbox in Dstack, possibly adding a new shim for referencing objects in different Dstack instances as different vats
https://github.com/endojs/endo
A more thoughtful example probably needs to illustrate some pattern of passing serialized/hardened code, containing Swiss numbers or even private keys, between such sandboxes. Needs more thought though
chatgpt discussion:
https://chatgpt.com/share/67ff0b25-b580-8009-a13b-d5ca70cb5fb7
- 主要语言
- Python
- 星标
- 27
- 派生
- 26
- 平均合并
- 1 天 6 小时
- 30 天内合并 PR
- 12
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Dstack-TEE/dstack-examples 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
Dstack-TEE/dstack-examples#87 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 28/100
Dstack-TEE/dstack-examples#106 · 3 条评论 ·
-
难度 5/5 一周以上 新手友好度 45/100
Dstack-TEE/dstack-examples#103 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
-
enhancement help wanted
难度 5/5 一周以上 新手友好度 25/100
查看 Dstack-TEE/dstack-examples 的全部 Issue
相似的 Issue
-
area: harness bug status: needs-triage
难度 2/5 1-3 小时 新手友好度 75/100
Human-Agent-Society/reef#625 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 1/5 1 小时以内 新手友好度 80/100
learningequality/kolibri#15351 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
Name consistency 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
eellak/triplestore#65 · 1 条评论 ·