This commit is contained in:
StellaOps Bot
2025-12-13 02:22:15 +02:00
parent 564df71bfb
commit 999e26a48e
395 changed files with 25045 additions and 2224 deletions

View File

@@ -5,7 +5,7 @@ using StellaOps.IssuerDirectory.Core.Domain;
namespace StellaOps.IssuerDirectory.Infrastructure.InMemory;
/// <summary>
/// Deterministic in-memory issuer key store used as a Mongo replacement.
/// Deterministic in-memory issuer key store for PostgreSQL fallback scenarios.
/// </summary>
internal sealed class InMemoryIssuerKeyRepository : IIssuerKeyRepository
{

View File

@@ -5,7 +5,7 @@ using StellaOps.IssuerDirectory.Core.Domain;
namespace StellaOps.IssuerDirectory.Infrastructure.InMemory;
/// <summary>
/// Deterministic in-memory issuer store used as a Mongo replacement.
/// Deterministic in-memory issuer store for PostgreSQL fallback scenarios.
/// </summary>
internal sealed class InMemoryIssuerRepository : IIssuerRepository
{

View File

@@ -5,7 +5,7 @@ using StellaOps.IssuerDirectory.Core.Domain;
namespace StellaOps.IssuerDirectory.Infrastructure.InMemory;
/// <summary>
/// Deterministic in-memory trust override store used as a Mongo replacement.
/// Deterministic in-memory trust override store for PostgreSQL fallback scenarios.
/// </summary>
internal sealed class InMemoryIssuerTrustRepository : IIssuerTrustRepository
{

View File

@@ -81,9 +81,9 @@ public sealed class IssuerDirectoryWebServiceOptions
public sealed class PersistenceOptions
{
/// <summary>
/// Storage provider for IssuerDirectory. Valid values: "Mongo", "Postgres".
/// Storage provider for IssuerDirectory. Valid values: "InMemory", "Postgres".
/// </summary>
public string Provider { get; set; } = "Mongo";
public string Provider { get; set; } = "InMemory";
/// <summary>
/// PostgreSQL connection string. Required when Provider is "Postgres".
@@ -93,9 +93,9 @@ public sealed class IssuerDirectoryWebServiceOptions
public void Validate()
{
var normalized = Provider?.Trim().ToLowerInvariant() ?? string.Empty;
if (normalized != "mongo" && normalized != "postgres")
if (normalized != "inmemory" && normalized != "postgres")
{
throw new InvalidOperationException($"IssuerDirectory persistence provider '{Provider}' is not supported. Use 'Mongo' or 'Postgres'.");
throw new InvalidOperationException($"IssuerDirectory persistence provider '{Provider}' is not supported. Use 'InMemory' or 'Postgres'.");
}
if (normalized == "postgres" && string.IsNullOrWhiteSpace(PostgresConnectionString))