ee4ec43a57
Add CDN layer, harden admin unlock UI, scrub credentials from git
...
SOR.Cdn (new project):
- ICdnClient / HttpCdnClient — POST /upload?folder= + DELETE /files/{path}
- Typed HttpClient, X-Api-Key auth, 100 MB stream support
- CdnOptions: PublicBaseUrl, UploadBaseUrl, ApiKey (all via k8s env vars)
CardEditor (Assets tab):
- Upload button per asset/animation — streams file through Blazor Server SignalR
to CDN; auto-fills CdnUrl + MimeType on success
- SignalR MaximumReceiveMessageSize raised to 100 MB for large 3D model uploads
- accept="image/*" for Art2D, ".glb,.gltf,.fbx" for Model3D and animations
AccountDetail:
- Distinguish auto-lockout (≤ 1 h, yellow badge) from admin ban (> 1 h, red badge)
- "Force Unlock" clears lockout immediately + resets failed-attempt counter
- "Unban" for admin-set bans; both call SetLockoutEndDateAsync(null)
Auth lockout: 15 min → 30 min (SOR.Auth + SOR.Admin both updated)
Credentials:
- Removed hardcoded Postgres/Redis creds from all committed appsettings.json
- Production values come from k8s secret env vars (ASP.NET Core env override)
- Added appsettings.Development.json + appsettings.*.Local.json to .gitignore
Generated with [Claude Code](https://claude.ai/code )
via [Happy](https://happy.engineering )
Co-Authored-By: Claude <noreply@anthropic.com >
Co-Authored-By: Happy <yesreply@happy.engineering >
2026-02-25 09:42:30 -05:00
1974dffdb6
Implement Auth service — login, register, sessions, account properties, OAuth stubs
...
- auth.proto: add account property CRUD messages + OAuthProvider enum + LoginWithOAuth
(all OAuth providers disabled via Redis feature flags: oauth_<provider>_enabled)
- SOR.Auth: full AuthGrpcHandler — password auth, session tokens (32-byte random,
SHA-256 hash in Postgres, raw token in Redis with TTL), ValidateToken with
Redis fast-path + Postgres slow-path fallback, Logout with dual revocation
- AccountProperty entity: flexible key-value bag per account (snake_case keys,
string values); upsert semantics; indexed on (AccountId, Key)
- SOR.Auth/ServiceRegistration: registers Identity DbContext + UserManager + roles
- SOR.Host/appsettings.json: add Postgres Default connection string
- AddAccountProperties migration applied to pg-forge-01
Generated with [Claude Code](https://claude.ai/code )
via [Happy](https://happy.engineering )
Co-Authored-By: Claude <noreply@anthropic.com >
Co-Authored-By: Happy <yesreply@happy.engineering >
2026-02-25 08:07:19 -05:00
6f9ed0668f
Add EF Core migrations and SuperAdmin seeder
...
- Generated InitialCreate migrations for all 5 DbContexts:
identity, catalog, collection, bazaar, chat (separate Postgres schemas)
- Applied to pg-forge-01 (172.10.1.127) — all schemas live
- Program.cs: SeedAsync() creates SuperAdmin + Admin roles and seeds
initial SuperAdmin account on startup if none exists
(email/password overridable via Admin:Email / Admin:Password config)
Generated with [Claude Code](https://claude.ai/code )
via [Happy](https://happy.engineering )
Co-Authored-By: Claude <noreply@anthropic.com >
Co-Authored-By: Happy <yesreply@happy.engineering >
2026-02-25 07:52:30 -05:00
ee2891d38e
Add database layer (EF Core + Postgres) and Blazor Server admin site
...
- SOR.Database: 5 bounded-context DbContexts (identity, catalog, collection,
bazaar, chat), all entities/enums, JSONB for card abilities, ServiceRegistration
with per-context connection string fallback to "Default"
- SOR.Admin: Blazor Server (.NET 8) — card editor, account management, bazaar
overview, feature flags; Identity + cookie auth; FallbackPolicy requires
Admin/SuperAdmin role; login via minimal API form POST endpoint
- Directory.Packages.props: add Microsoft.AspNetCore.Identity.EntityFrameworkCore
- SOR.slnx: add SOR.Admin + SOR.Database to solution (11 projects, 0 errors, 0 warnings)
Generated with [Claude Code](https://claude.ai/code )
via [Happy](https://happy.engineering )
Co-Authored-By: Claude <noreply@anthropic.com >
Co-Authored-By: Happy <yesreply@happy.engineering >
2026-02-25 07:48:24 -05:00
d21adbc8d0
Add networking foundation — 9-project C# solution (compiles clean)
...
Implements the modular networking layer for SOR Server:
- SOR.Networking.Abstractions: pure interfaces (ITransport, IClientConnection,
IMessageSerializer, IMessageDispatcher, IMessageHandler, IEventBus, IClientPush)
- SOR.Networking.WebSocket: ITransport + IClientConnection over System.Net.WebSockets
- SOR.Networking.Nats: IEventBus over NATS.Net (INatsConnection)
- SOR.Networking.Redis: IClientPush over Redis Pub/Sub
- SOR.Shared: ServiceResult<T>, RedisKeys, NatsSubjects, ServerMessage, JSON serializer
- SOR.Shared.Proto: auth.proto with gRPC AuthService contract
- SOR.Gateway: accept loop, auth handshake, dispatcher, Redis push subscriber
- SOR.Auth: stub gRPC handler (placeholder responses)
- SOR.Host: multi-service runner via ENABLED_SERVICES env var; wires all DI
All concrete implementations are wired exclusively in SOR.Host — every transport,
broker, and push implementation can be swapped by changing only Program.cs.
dotnet build SOR.slnx → 0 errors, 0 warnings
Generated with [Claude Code](https://claude.ai/code )
via [Happy](https://happy.engineering )
Co-Authored-By: Claude <noreply@anthropic.com >
Co-Authored-By: Happy <yesreply@happy.engineering >
2026-02-24 21:01:38 -05:00
0f95a0721b
Add C# programming architecture and update tech stack
...
- Server/architecture.md: full programming architecture reference in C# (.NET 8)
covering repo/project structure, three-layer handler→service→repository pattern,
multi-service runner (ENABLED_SERVICES env var for N services per box), DI,
config (IOptions), gRPC handler pattern, NATS pub/sub, Redis, EF Core + PostgreSQL,
Serilog logging, error handling (ServiceResult + exceptions), health checks,
testing patterns (xUnit + Moq + FluentAssertions), naming conventions, and hard rules
- Server/initial-plan.md: add C# 12 (.NET 8), EF Core, Serilog to tech stack table;
add C# to Decided table; reference architecture.md
Generated with [Claude Code](https://claude.ai/code )
via [Happy](https://happy.engineering )
Co-Authored-By: Claude <noreply@anthropic.com >
Co-Authored-By: Happy <yesreply@happy.engineering >
2026-02-24 13:46:44 -05:00
acacb1e03f
Add server architecture initial plan and legal TODO
...
- Draft full server architecture in Server/initial-plan.md covering all
services: Gateway, Auth, Game, Chat, Collection, Bazaar, Admin,
Leaderboard, Content, Web, and CDN/Asset Pipeline
- Tech stack decisions: PostgreSQL, Redis, NATS, gRPC, Ceph (RADOSGW),
Kubernetes, Stripe (implemented but disabled)
- Chat persistence: 30-day PostgreSQL hot window, cold archive to remote MySQL
- Leaderboard: Redis Sorted Sets for live rankings, PostgreSQL for history
- Asset pipeline: Admin card builder → Ceph origin → CDN → client
- Create Shared/legal.md with prioritized legal TODO list covering TOS,
EULA, Privacy Policy, GDPR, Stripe/PCI compliance, CCPA, Cookie Policy,
and COPPA
Generated with [Claude Code](https://claude.ai/code )
via [Happy](https://happy.engineering )
Co-Authored-By: Claude <noreply@anthropic.com >
Co-Authored-By: Happy <yesreply@happy.engineering >
2026-02-23 23:46:06 -05:00
dingo
bbbb10d8d9
Adding stub for Server to git
2026-02-21 17:54:23 -05:00