up
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user