Infinity-One: Identity Hub
Relevant source files
The following files were used as context for generating this wiki page:
Infinity-One serves as the central account management and Identity & Access Management (IAM) hub for the Infinity OS platform. Inspired by enterprise-grade account systems like Google One, it provides a unified security backbone for user authentication, authorization, and session management. It is a critical component of the Platform Core, operating alongside The Lighthouse, The HIVE, and The Void to ensure zero-trust security across the ecosystem.
The system is designed to meet "2060-era" security standards, featuring native support for passwordless authentication, fine-grained resource policies, and decentralized identity (DID). It operates at zero infrastructure cost by leveraging Cloudflare's edge computing and Supabase's authentication and database tiers.
Sources: README.md:19-24, README.md:47-52, infinity-os/architecture.html:435-442
Architecture and Core Capabilities
Infinity-One is built as a modular service within the packages/infinity-one directory and deployed as a Cloudflare Worker at the edge. This architecture ensures low-latency identity verification across more than 300 edge locations globally.
Key Capabilities
| Capability | Description |
|---|---|
| IAM | Full Identity & Access Management with fine-grained resource policies. |
| RBAC + ABAC | Role-Based and Attribute-Based Access Control with dynamic policy evaluation. |
| OAuth 2.1 / OIDC | Standards-compliant federation with external identity providers. |
| WebAuthn / Passkeys | Hardware-backed passwordless authentication. |
| SCIM 2.0 | Automated user provisioning and de-provisioning. |
| MFA | Support for TOTP, WebAuthn, SMS, and email OTP. |
| Session Management | Distributed sessions with device fingerprinting and anomaly detection. |
| DID Support | W3C Decentralized Identity support for self-sovereign identity. |
Sources: README.md:54-65, infinity-os/architecture.html:435-442
System Integration Flow
The following diagram illustrates how Infinity-One interacts with other core platform services to authorize a user action.
Sources: README.md:33-45
Security and Authentication
Infinity-One implements a multi-layered security model. Authentication is handled via Supabase Auth, supporting traditional credentials alongside advanced methods like WebAuthn/Passkeys.
Authentication Standards
- Passwords: Minimum 12 characters with complexity requirements.
- MFA: Required for Organization and Super Admins; TOTP and WebAuthn are the primary methods.
- Sessions: Access tokens expire after 15 minutes of inactivity, supplemented by 7-day refresh token rotation.
- Zero Trust: Every request is authenticated and authorized regardless of its origin.
Sources: compliance/SECURITY_POLICY.md:60-70, infinity-os/architecture.html:435-442
Data Protection and Compliance
Infinity-One is designed for full GDPR and CCPA compliance. It manages all eight data subject rights, including a 30-day erasure pipeline and consent record tracking. To support the "Right to Erasure," the system utilizes Crypto-Shredding—destroying user-specific encryption keys managed by the The Void to render data unrecoverable.
Sources: README.md:61-62, compliance/SECURITY_POLICY.md:121-128
Role Hierarchy and Permissions
Infinity-One enforces a four-tier Role-Based Access Control (RBAC) hierarchy. These roles are enforced at the database level via Supabase Row Level Security (RLS) and at the edge via the Identity Service.
User Type Access Matrix
The system restricts data access based on the classification levels defined in The HIVE.
| User Type | Public | Internal | Confidential | Classified | Top Secret |
|---|---|---|---|---|---|
| Super Admin | ✓ | ✓ | ✓ | ✓ | ✓ |
| Org Admin | ✓ | ✓ | ✓ | ✓ | ✗ |
| Power User | ✓ | ✓ | ✓ | ✗ | ✗ |
| Standard User | ✓ | ✓ | ✗ | ✗ | ✗ |
| Guest | ✓ | ✗ | ✗ | ✗ | ✗ |
Sources: README.md:126-133
Implementation Details
The Infinity-One logic is distributed between the core service package and the edge worker.
- Service Core:
packages/infinity-one/src/InfinityOneService.tshandles the primary IAM logic, policy evaluation, and integration with the Supabase client. - Edge Worker:
workers/infinity-one/src/index.tsacts as the API gateway for authentication requests, handling JWT verification and session management at the edge. - Management UI:
apps/portal/src/components/infinity-one/InfinityOneDashboard.tsxprovides the administrative interface for managing users, roles, and organizational settings.
Sources: README.md:68-73, PLATFORM_ARCHITECTURE_ANALYSIS.md:52-54
Data Model (D1/PostgreSQL)
The identity data is stored across several tables within the infinity_one schema:
organisations: Management of tenant entities.users: Core user profiles and metadata.roles&user_roles: RBAC definition and assignment.sessions: Tracking active device sessions and anomaly detection.applications: Registered OAuth clients and platform modules.
Sources: README.md:245-252, dashboard/index.html:150-155
Conclusion
Infinity-One: Identity Hub provides the critical security foundation for the Infinity OS platform. By combining traditional RBAC with modern standards like WebAuthn and DID, it offers a future-proof identity solution that scales at zero infrastructure cost. Its integration with the wider Platform Core ensures that every action is verified against a zero-trust model, protecting the integrity of the entire ecosystem.
Sources: README.md:23-26, infinity-os/architecture.html:758-762