release(v4.0.0): Shade GA — V3.x consolidation + audit prep
Some checks failed
Test / test (push) Has been cancelled
Cross-platform vectors / TypeScript vectors (bun) (push) Has been cancelled
Cross-platform vectors / Kotlin vectors (gradle) (push) Has been cancelled
Docker build and publish / docker (push) Has been cancelled
Publish / publish (push) Has been cancelled
Some checks failed
Test / test (push) Has been cancelled
Cross-platform vectors / TypeScript vectors (bun) (push) Has been cancelled
Cross-platform vectors / Kotlin vectors (gradle) (push) Has been cancelled
Docker build and publish / docker (push) Has been cancelled
Publish / publish (push) Has been cancelled
V3.1 → V3.12 consolidated and tagged for the first GA release. Wire format unchanged from 0.4.x — 4.0 peers interoperate with 0.4.x peers byte-for-byte. The version bump is semantic: audit-cycle complete, opt-in surface fully exposed, threat model refreshed for every new surface. Highlights: - All 24 @shade/* packages bumped to 4.0.0 in lockstep. - CHANGELOG 4.0.0 section is the canonical manifest of what landed. - THREAT-MODEL extended (§10 fingerprint gates, §11 WebRTC P2P, §12 Web-Worker boundary) + residual-risks table refreshed. - OpenAPI now covers all 27 routes: prekey, transfer, KT, inbox, bridge, observer, /metrics, /healthz, /ready. - MIGRATION 0.3.x → 4.0 documented + smoke-tested against shade migrate-storage on a real SQLite DB. - docs/audit/REVIEW-BUNDLE.md + SCOPE.md ready for external reviewer. - scripts/soak.ts harness for the GA-stable 2-week soak window. - All V*.md plans archived under docs/archive/ with Status: Done. - Voice/Video carved out into V5.0; 4.0 audit focuses on the frozen non-realtime stack. Tests: TS 1000/1000 + Kotlin 11/11 cross-platform vectors green. Docker: gt.zyon.no/stian/shade-prekey:4.0.0 builds and reports version 4.0.0 on /health. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,11 @@ import {
|
||||
import { dashboardCommand } from './commands/dashboard.js';
|
||||
import { doctorCommand } from './commands/doctor.js';
|
||||
import { backupExportCommand, backupRestoreCommand } from './commands/backup.js';
|
||||
import {
|
||||
migrateStorageCommand,
|
||||
rotateStorageKeyCommand,
|
||||
parseStorageArgs,
|
||||
} from './commands/storage.js';
|
||||
|
||||
const VERSION = '0.1.0';
|
||||
|
||||
@@ -24,6 +29,7 @@ Commands:
|
||||
init [name] Scaffold a new Shade project
|
||||
--template <name> Template to use (default: bun-server)
|
||||
--prekey-server <url> Override prekey server URL
|
||||
--doctor Run shade doctor against the new project
|
||||
fingerprint [address] Print your own or a peer's fingerprint
|
||||
publish Re-upload your bundle to the prekey server
|
||||
rotate Rotate the signed prekey
|
||||
@@ -37,6 +43,19 @@ Commands:
|
||||
doctor Diagnose setup issues
|
||||
backup export <file> Export an encrypted backup (prompts for passphrase)
|
||||
backup restore <file> Restore from a backup file
|
||||
migrate-storage Encrypt the local SQLite store at-rest (V3.2)
|
||||
--key-source <kind> passphrase | keychain | injected
|
||||
--passphrase <s> passphrase for KDF (or env SHADE_STORAGE_PASSPHRASE)
|
||||
--keychain-service <s> keychain service name (default: shade.storage)
|
||||
--keychain-account <s> keychain account name (default: default)
|
||||
--key-hex <hex> inject a raw 32-byte key as hex
|
||||
--salt-file <path> passphrase salt file (default: <db>.salt)
|
||||
--dry-run validate + report without writing
|
||||
--keep-original keep unencrypted tables after migration
|
||||
--no-backup skip the .bak snapshot
|
||||
rotate-storage-key Re-key the encrypted SQLite store (V3.2)
|
||||
--key-source / --passphrase / … (current key — same flags as migrate)
|
||||
--new-key-source / --new-passphrase / … (target key)
|
||||
help Show this message
|
||||
|
||||
Config:
|
||||
@@ -98,6 +117,16 @@ async function main(): Promise<void> {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'migrate-storage': {
|
||||
const opts = parseStorageArgs(args.slice(1));
|
||||
await migrateStorageCommand(opts);
|
||||
break;
|
||||
}
|
||||
case 'rotate-storage-key': {
|
||||
const opts = parseStorageArgs(args.slice(1));
|
||||
await rotateStorageKeyCommand(opts);
|
||||
break;
|
||||
}
|
||||
case 'help':
|
||||
case '--help':
|
||||
case '-h':
|
||||
@@ -125,11 +154,13 @@ function parseInitArgs(args: string[]): {
|
||||
name?: string;
|
||||
template?: string;
|
||||
prekeyServer?: string;
|
||||
runDoctor?: boolean;
|
||||
} {
|
||||
const options: ReturnType<typeof parseInitArgs> = {};
|
||||
for (let i = 0; i < args.length; i++) {
|
||||
if (args[i] === '--template') options.template = args[++i];
|
||||
else if (args[i] === '--prekey-server') options.prekeyServer = args[++i];
|
||||
else if (args[i] === '--doctor') options.runDoctor = true;
|
||||
else if (!args[i]!.startsWith('--')) options.name = args[i];
|
||||
}
|
||||
return options;
|
||||
|
||||
Reference in New Issue
Block a user