Skip to content

mochiOS/DeveloperConsole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mochiOS Developer Console

console.mochios.orgでDeveloper、Member、Developer Certificate、App Store審査を管理するRust/workers-rs製BFFと日本語フロントエンドです。Cloudflare Workers Static AssetsとD1のHttpOnly sessionを使用します。

Developer Certificate

devkitが生成するのは次の2ファイルです。

application.key  # Base64 Ed25519 32-byte seed。端末外へ送らない
application.pub  # Base64 Ed25519 32-byte公開鍵

Consoleではapplication.pubとunsigned .mpkgを選びます。ブラウザがMPKG v1の32-byte headerと無圧縮ustarを検証し、manifest.tomlからPackage IDと全[[binary]].requiresの和集合を抽出します。Package ID、Capability、Subject Key IDは読み取り専用です。

Workerへ送るのは公開鍵と抽出済みmetadataだけです。.keyとMPKG bytesは送信しません。Developer CAがOnline Intermediateで発行したraw MCERをdeveloper.certとしてダウンロードします。Certificateの人手審査はなく、管理者は失効だけを行います。

ローカル検証

node --check public/assets/mpkg-manifest.js
node --check public/assets/app.js
node tests/mpkg-manifest.test.cjs
cargo test --all-targets
cargo clippy --all-targets -- -D warnings
npx wrangler d1 migrations apply mochios-console --local
npx wrangler deploy --dry-run

.dev.vars:

CONSOLE_SERVICE_TOKEN=<Accounts内部API token>
DEVELOPER_CA_TOKEN_SIGNING_KEY=<Base64 Ed25519 32-byte seed>
APPSTORE_ADMIN_TOKEN=<AppStore API ADMIN_TOKENと同じ値>

構成はdocs/architecture.md、セキュリティ境界はdocs/security.md、一般開発者の公開手順はdocs/developer-publish-flow.mdを参照してください。

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages