Add E2EE messaging and VPS deployment

Add signed, encrypted messages and attachments with per-session device keys, conversation key discovery, and server-side validation. Extend CI to publish immutable container images and deploy to a VPS, with setup and protocol documentation.
This commit is contained in:
Artemy
2026-10-24 13:44:41 +07:00
parent e060b2bcbb
commit 33550d4fc9
25 changed files with 1226 additions and 15833 deletions
+3 -1
View File
@@ -7,6 +7,7 @@ using Govor.Application.Infrastructure.Common;
using Govor.Application.Messages;
using Govor.Application.Reactions;
using AutoMapper;
using Govor.Application.E2ee;
using Govor.Application.Messages.Parameters;
using Govor.Contracts.Requests.SignalR;
using Govor.Contracts.Responses.SignalR;
@@ -241,6 +242,7 @@ public class ChatsHub : Hub
RecipientId = result.OriginalMessage.RecipientId,
RecipientType = result.OriginalMessage.RecipientType,
NewEncryptedContent = request.NewEncryptedContent,
ReplyToMessageId = result.OriginalMessage.ReplyToMessageId,
EditedAt = editParams.EditedAt,
};
@@ -294,7 +296,7 @@ public class ChatsHub : Hub
{
throw new ArgumentException("Message must contain content or media.");
}
if ((request.EncryptedContent?.Length ?? 0) > 50_000)
if ((request.EncryptedContent?.Length ?? 0) > E2eeProtocol.MaxEnvelopeLength)
{
throw new ArgumentException("Message is too long.");
}