Add SRP password recovery and E2EE reset

Add proof-based password registration, login, enrollment, and change flows, with rate limiting and encrypted recovery-key envelopes. Support explicit E2EE identity resets while preserving historical signer verification, and document and test the new recovery workflows.
This commit is contained in:
Artemy
2026-10-24 22:19:08 +07:00
parent 55cc9538f7
commit a3401ceedf
29 changed files with 4322 additions and 36 deletions
@@ -0,0 +1,40 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Govor.Domain.Migrations
{
/// <inheritdoc />
public partial class PreserveResetSigners : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "PreviousDeviceKeyJson",
table: "E2eeIdentityChanges",
type: "character varying(10000)",
maxLength: 10000,
nullable: true);
migrationBuilder.AddColumn<Guid>(
name: "PreviousSessionId",
table: "E2eeIdentityChanges",
type: "uuid",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PreviousDeviceKeyJson",
table: "E2eeIdentityChanges");
migrationBuilder.DropColumn(
name: "PreviousSessionId",
table: "E2eeIdentityChanges");
}
}
}