{"id":45580190,"url":"https://github.com/vettid/vettid-dev","last_synced_at":"2026-02-23T11:42:50.383Z","repository":{"id":333229521,"uuid":"1136617065","full_name":"vettid/vettid-dev","owner":"vettid","description":"VettID Backend Infrastructure - AWS CDK, Lambda handlers, Nitro Enclave","archived":false,"fork":false,"pushed_at":"2026-02-14T19:58:21.000Z","size":29999,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-15T03:56:16.420Z","etag":null,"topics":["aws","cdk","golang","identity","nitro-enclave","privacy","security","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vettid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-18T02:34:06.000Z","updated_at":"2026-02-14T19:58:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vettid/vettid-dev","commit_stats":null,"previous_names":["vettid/vettid-dev"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vettid/vettid-dev","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vettid%2Fvettid-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vettid%2Fvettid-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vettid%2Fvettid-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vettid%2Fvettid-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vettid","download_url":"https://codeload.github.com/vettid/vettid-dev/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vettid%2Fvettid-dev/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29741732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","cdk","golang","identity","nitro-enclave","privacy","security","typescript"],"created_at":"2026-02-23T11:42:47.310Z","updated_at":"2026-02-23T11:42:50.373Z","avatar_url":"https://github.com/vettid.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VettID Backend Infrastructure\n\nVettID is a privacy-first digital identity platform that gives users complete control over their personal data through hardware-secured vaults running in AWS Nitro Enclaves.\n\n## Architecture\n\n```\n┌─────────────────────────────────────────────────────────────────────────────┐\n│                           Mobile Apps (iOS / Android)                        │\n└─────────────────────────────────┬───────────────────────────────────────────┘\n                                  │ NATS (E2E Encrypted)\n                                  ▼\n┌─────────────────────────────────────────────────────────────────────────────┐\n│                           AWS Infrastructure                                 │\n│                                                                             │\n│  ┌──────────────────┐  ┌──────────────────┐  ┌──────────────────────────┐  │\n│  │   API Gateway    │  │   NATS Cluster   │  │    Nitro Enclaves        │  │\n│  │   + Lambda       │  │  ┌────────────┐  │  │  ┌────────────────────┐  │  │\n│  │                  │  │  │OwnerSpace │  │  │  │    Supervisor      │  │  │\n│  │  ┌────────────┐  │  │  │ (App↔Vault)│  │  │  │    ┌──────────┐   │  │  │\n│  │  │  Admin     │  │  │  └────────────┘  │  │  │    │  Vault   │   │  │  │\n│  │  │  Handlers  │  │  │  ┌────────────┐  │  │  │    │ Manager  │   │  │  │\n│  │  └────────────┘  │  │  │MessageSpace│  │  │  │    │ (User A) │   │  │  │\n│  │  ┌────────────┐  │  │  │(Vault↔Vault)│  │  │  │    └──────────┘   │  │  │\n│  │  │  Member    │  │  │  └────────────┘  │  │  │    ┌──────────┐   │  │  │\n│  │  │  Handlers  │  │  │                  │  │  │    │  Vault   │   │  │  │\n│  │  └────────────┘  │  │                  │  │  │    │ Manager  │   │  │  │\n│  └──────────────────┘  └──────────────────┘  │  │    │ (User B) │   │  │  │\n│                                              │  │    └──────────┘   │  │  │\n│  ┌──────────────────┐  ┌──────────────────┐  │  └────────────────────┘  │  │\n│  │    DynamoDB      │  │       S3         │  │  Hardware-isolated       │  │\n│  │   (Metadata)     │  │ (Encrypted Vaults)│  │  memory \u0026 attestation   │  │\n│  └──────────────────┘  └──────────────────┘  └──────────────────────────┘  │\n└─────────────────────────────────────────────────────────────────────────────┘\n```\n\n### Multi-Tenant Enclave Architecture\n\nEach Nitro Enclave runs a supervisor process managing multiple vault-manager instances. User data is stored in per-user encrypted SQLite databases on S3, with encryption keys derived from the user's PIN and sealed material that can only be unsealed inside the enclave.\n\n### NATS Messaging\n\nTwo logical deployments provide separation of concerns:\n- **OwnerSpace** - Direct communication between a user's app and their vault\n- **MessageSpace** - Cross-vault messaging for connections between users\n\n## Key Features\n\n### Hardware Security\n- User data encrypted and processed inside AWS Nitro Enclaves\n- PCR-based attestation allows mobile apps to verify enclave code integrity\n- Zero-knowledge architecture: backend operators cannot access plaintext user data\n- Per-user encryption keys never leave enclave memory\n\n### Credentials \u0026 Secrets\n- Store and manage identity credentials with version control\n- Per-credential secret storage (passwords, API keys, sensitive data)\n- Encrypted backup and multi-stage recovery workflow\n- QR code-based recovery tokens\n\n### User Connections\n- Bidirectional connection requests between users\n- Capability-based permissions (what data connections can access)\n- End-to-end encrypted messaging with read receipts\n- WebRTC calling with TURN relay support (Cloudflare)\n\n### Service Connections (B2C)\n- Connect with businesses running VettID Service Vaults\n- Data contracts define what information services can access\n- User-controlled: accept/reject contract updates, revoke access anytime\n- Clean breaks: services lose all access immediately upon disconnection\n- No caching: services access user data on-demand only\n\n### Governance \u0026 Voting\n- Proposal creation with scheduled open/close periods\n- Privacy-preserving voting with Merkle proof verification\n- PIN-authorized vote casting inside the vault\n- Published results with aggregated counts\n\n## Repository Structure\n\n```\n├── cdk/                    # AWS CDK Infrastructure\n│   ├── lib/               # Stack definitions (9 stacks)\n│   ├── lambda/            # Lambda handlers (TypeScript)\n│   │   ├── handlers/      # API endpoint handlers by domain\n│   │   └── common/        # Shared utilities\n│   └── frontend/          # Web portals (admin, account, enrollment)\n├── enclave/               # Nitro Enclave code (Go)\n│   ├── vault-manager/     # Core vault logic (24 handler modules)\n│   ├── parent/            # Parent process (outside enclave)\n│   └── supervisor/        # Enclave process supervisor\n├── docs/                  # Documentation\n│   ├── specs/            # API specifications\n│   └── runbooks/         # Operational procedures\n└── packer/                # AMI build configuration\n```\n\n## Technology Stack\n\n| Layer | Technologies |\n|-------|-------------|\n| Infrastructure | AWS CDK (TypeScript), CloudFormation |\n| API | AWS Lambda, API Gateway, Cognito |\n| Enclave | Go, AWS Nitro Enclaves, SQLite |\n| Messaging | NATS with JetStream |\n| Storage | DynamoDB (metadata), S3 (encrypted vaults) |\n| Crypto | x25519, Ed25519, ChaCha20-Poly1305, Argon2id |\n| Security | KMS, Secrets Manager, PCR attestation |\n\n## Development\n\nSee [CLAUDE.md](CLAUDE.md) for build commands, testing instructions, and architecture details.\n\n### Quick Start\n```bash\ncd cdk\nnpm install\nnpm run build\nnpm run deploy\n```\n\n### Testing\n```bash\nnpm test              # All tests\nnpm run test:unit     # Unit tests\nnpm run test:e2e      # End-to-end tests\n```\n\n## Related Repositories\n\n- [vettid-android](https://github.com/vettid/vettid-android) - Android app (Kotlin/Jetpack Compose)\n- [vettid-ios](https://github.com/vettid/vettid-ios) - iOS app (Swift/SwiftUI)\n- [vettid-desktop](https://github.com/vettid/vettid-desktop) - Desktop app (Tauri/Rust/Svelte)\n- [vettid-agent](https://github.com/vettid/vettid-agent) - Agent connector (Go sidecar)\n- [vettid-service-vault](https://github.com/vettid/vettid-service-vault) - Service integration layer\n- [vettid-test-harness](https://github.com/vettid/vettid-test-harness) - E2E test suite\n\n## Security\n\nVettID implements defense in depth:\n\n- **Hardware isolation**: Nitro Enclaves provide CPU-level memory protection\n- **Cryptographic attestation**: Apps verify enclave integrity before trusting it\n- **Zero-knowledge**: Backend cannot decrypt user data even with full infrastructure access\n- **End-to-end encryption**: All vault communication encrypted with keys only the user controls\n- **Audit logging**: Comprehensive logging for security monitoring\n\nFor security issues, please email security@vettid.dev\n\n## Documentation\n\n- [Architecture Overview](docs/NITRO-ENCLAVE-VAULT-ARCHITECTURE.md)\n- [NATS Messaging](docs/NATS-MESSAGING-ARCHITECTURE.md)\n- [API Specifications](docs/specs/)\n- [Operational Runbooks](docs/runbooks/)\n\n## License\n\nAGPL-3.0-or-later - See [LICENSE](LICENSE) for details.\n\n## Links\n\n- Website: [vettid.org](https://vettid.org)\n- Documentation: [docs.vettid.dev](https://docs.vettid.dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvettid%2Fvettid-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvettid%2Fvettid-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvettid%2Fvettid-dev/lists"}