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
@@ -8,8 +8,8 @@ public record MessageRequest
public Guid RecipientId { get; init; }
public RecipientType RecipientType { get; init; }
[Required]
[MaxLength(100_000, ErrorMessage = "EncryptedContent cannot exceed 100,000 characters.")]
[MaxLength(1_000_000, ErrorMessage = "EncryptedContent cannot exceed 1,000,000 characters.")]
public string EncryptedContent { get; init; } = string.Empty;
public Guid? ReplyToMessageId { get; set; }
public List<MediaReference> MediaAttachments { get; set; } = new();
}
}
@@ -5,9 +5,10 @@ namespace Govor.Contracts.Responses.SignalR;
public class MessageEditResponse
{
public Guid MessageId { get; set; }
public Guid? ReplyToMessageId { get; set; }
public Guid EditorId { get; set; }
public Guid RecipientId { get; init; }
public RecipientType RecipientType{get; init; }
public string NewEncryptedContent { get; set; } = string.Empty;
public DateTime EditedAt { get; set; }
}
}