gsadmin
|
e72729059b
|
M3: Deterministic identity, secure bootstrap, NATS JWT issuance, WSS connection
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>
|
2026-08-06 19:03:39 -04:00 |
|