e72729059b
Agent: - CIM hardware identity (System.Management) with placeholder rejection and labeled canonical string; SHA-256 lowercase-hex client id; strong-identifier requirement - DPAPI(LocalMachine) credential store with SYSTEM/Administrators-only ACLs; versioned encrypted JSON blob; private NKey seed never leaves the endpoint - Enrollment client: local user NKey generation, HTTPS bootstrap, credential persistence, bootstrap token erased from registry after success - NATS options factory: WSS endpoint from ServerURL, JWT+seed auth from protected memory, unlimited reconnect with backoff+jitter; worker now orchestrates enroll -> connect -> session with reload of registry config Backend: - NatsCredentialIssuer: account-signing-key user JWTs (agent scoped to own client id, browser scoped to session subjects, backend full access) - nats-auth init CLI: real Ed25519 operator/APP/SYS keys + resolver.conf via NATS.Jwt/NATS.NKeys (no fake seeds) - EF Core SQLite schema + InitialCreate migration (Users, Devices, DeviceInventory, Scripts, Jobs, JobOutput, BootstrapTokens, AuditEvents, ShellSessions, OidcProviders); migrate on startup - Bootstrap endpoint: hashed one-time tokens, idempotent enrollment, NKey binding, rate limiting, auditing; credential refresh via Ed25519 proof of possession - Readiness now verifies database, NATS connection and signing key Tests: 27 agent (identity, config), 9 backend (bootstrap/refresh via WebApplicationFactory with real JWT verification) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
11 lines
306 B
XML
11 lines
306 B
XML
<Project>
|
|
|
|
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)..'))" />
|
|
|
|
<PropertyGroup>
|
|
<!-- xUnit1051 (pass TestContext cancellation token) is stylistic noise in tests. -->
|
|
<NoWarn>$(NoWarn);xUnit1051</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
</Project>
|