Skip to content

Issue #2 - Add backend key service skeleton - Ticket 1#14

Merged
knzeng-e merged 12 commits into
mainfrom
feat/issue-#2-backend-key-service-skeleton
Jun 11, 2026
Merged

Issue #2 - Add backend key service skeleton - Ticket 1#14
knzeng-e merged 12 commits into
mainfrom
feat/issue-#2-backend-key-service-skeleton

Conversation

@knzeng-e

Copy link
Copy Markdown
Owner

Summary

Addresses #2 by adding the initial backend API skeleton for Dotify's production spine.

This PR introduces a dedicated services/api package that begins moving production-sensitive responsibilities out of the frontend and into a backend boundary.

What changed

  • Add services/api TypeScript backend package.
  • Add typed environment configuration.
  • Add health/version-style routing foundation.
  • Add auth nonce route foundation.
  • Add content-key request route foundation.
  • Add placeholder service modules for:
    • chain access checks;
    • key vault logic;
    • wallet signature handling.
  • Add backend .env.example.
  • Update README and frontend env example.
  • Update .gitignore.

Production spine alignment

This is the first step toward:

  • removing production secrets from the frontend;
  • moving Pinata/key delivery behind a trusted service boundary;
  • enabling wallet-signed content-key requests;
  • supporting future production-grade access checks.

Review focus

Please review especially:

Follow-up tickets

Notes

This PR should stay scoped to the backend skeleton. It should not implement the full upload pipeline or final content-key delivery yet.

Add Fastify API skeleton with health, version, nonce, and key-request routes.

Introduce typed environment config, fail-closed placeholder services for signature
verification, chain access, and key custody, and document the backend setup while
leaving server-side Pinata uploads for Ticket 02.
@knzeng-e knzeng-e self-assigned this May 17, 2026
@knzeng-e knzeng-e linked an issue May 18, 2026 that may be closed by this pull request
@knzeng-e knzeng-e changed the title Issue #2 — Add backend key service skeleton Issue #2 - Add backend key service skeleton May 23, 2026
@knzeng-e knzeng-e moved this from Todo to In Review in Dotify sprints May 23, 2026
@knzeng-e knzeng-e changed the title Issue #2 - Add backend key service skeleton Issue #2 - Add backend key service skeleton - Ticket 1 May 24, 2026
8. Establish signaling connection.
9. Assert listener enters connected state.
10. Assert host disconnect cleanup is reflected in listener UI.
9. Assert listener enters connected state without wallet/signature.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on second thought, we may need a way to "identify" the listeners. How can this be achieved without wallet/signature ?

@knzeng-e
knzeng-e merged commit e1d32d5 into main Jun 11, 2026
3 of 4 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in Dotify sprints Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Sprint 0][P0] Backend key service skeleton

1 participant