feat: add TypeScript SDK and secure npm publishing - #38
Conversation
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Nostradamus Risk Rating — CriticalThe PR introduces core cryptographic authentication primitives for the Gemini financial exchange API — specifically HMAC-SHA384 request signing with monotonic nonce management ( High/Critical — a full threat model follows. |
|
Nostradamus Threat Model - Passed - APPSEC-1505 |
Summary
@gemini-markets/sdkTypeScript SDK underpackages/sdk-typescript.Security and release controls
typescript-sdk-v<package-version>and point to a commit onmain.npm ci --ignore-scripts; only required native tools are rebuilt explicitly.npm publish --provenance.npmenvironment hasSDK_RELEASE_TAG_RULESET_READY=enabled..github/CODEOWNERSassigns SDK and release-control review to@fullerand@ximt.Required administrator setup before merge/release
typescript-sdk-v*restricting creation, updates, and deletion tofullerandximt.npmenvironment with required reviewers.SDK_RELEASE_TAG_RULESET_READY=enabledenvironment variable only after the tag ruleset is active.gemini/developer-platform, workflowpublish-typescript-sdk.yml, environmentnpm, andnpm publish.gemini-marketsnpm scope.Validation
npm ci --ignore-scripts— passed with 0 vulnerabilities.npm rebuild esbuild workerd --foreground-scripts— passed.npm test— 615 passed, 0 failed.npm run typecheck— passed.npm audit --audit-level=high— 0 vulnerabilities.git diff --check— passed.