Skip to content

feat: adopt protected-secret support from marten-configuration - #167

Merged
andregoepel merged 2 commits into
mainfrom
feature/adopt-protected-secret
Jul 26, 2026
Merged

feat: adopt protected-secret support from marten-configuration#167
andregoepel merged 2 commits into
mainfrom
feature/adopt-protected-secret

Conversation

@andregoepel

Copy link
Copy Markdown
Owner

Summary

MartenEmailSettingsStore.SaveAsync now calls AndreGoepel.Marten.Configuration's DataProtectorExtensions.ProtectOrKeepExisting instead of hand-rolling the "protect new value or keep existing ciphertext" branching. Identical failure semantics preserved: fails only when there's neither a new password nor an existing document. Bumped AndreGoepel.Marten.Configuration 1.0.1 → 1.1.0.

Verification

  • dotnet csharpier format . clean
  • dotnet build — 0 warnings, 0 errors
  • dotnet test — 91 + 29 + 5 = 125 passing, including existing MartenEmailSettingsStoreTests covering all three branches unchanged
  • dotnet list package --vulnerable --include-transitive — clean

Closes #155

@andregoepel
andregoepel merged commit ed09809 into main Jul 26, 2026
4 checks passed
@andregoepel
andregoepel deleted the feature/adopt-protected-secret branch July 26, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MailService: adopt protected-secret settings support from marten-configuration (plan C3 adoption)

1 participant