feat: Initialize Zastava Webhook service with TLS and Authority authentication
- Added Program.cs to set up the web application with Serilog for logging, health check endpoints, and a placeholder admission endpoint. - Configured Kestrel server to use TLS 1.3 and handle client certificates appropriately. - Created StellaOps.Zastava.Webhook.csproj with necessary dependencies including Serilog and Polly. - Documented tasks in TASKS.md for the Zastava Webhook project, outlining current work and exit criteria for each task.
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
|
||||
namespace StellaOps.Scheduler.Storage.Mongo.Options;
|
||||
|
||||
/// <summary>
|
||||
/// Configures MongoDB connectivity and collection names for Scheduler storage.
|
||||
/// </summary>
|
||||
public sealed class SchedulerMongoOptions
|
||||
{
|
||||
public string ConnectionString { get; set; } = "mongodb://localhost:27017";
|
||||
|
||||
public string Database { get; set; } = "stellaops_scheduler";
|
||||
|
||||
public string SchedulesCollection { get; set; } = "schedules";
|
||||
|
||||
public string RunsCollection { get; set; } = "runs";
|
||||
|
||||
public string ImpactSnapshotsCollection { get; set; } = "impact_snapshots";
|
||||
|
||||
public string AuditCollection { get; set; } = "audit";
|
||||
|
||||
public string LocksCollection { get; set; } = "locks";
|
||||
|
||||
public string MigrationsCollection { get; set; } = "_scheduler_migrations";
|
||||
|
||||
/// <summary>
|
||||
/// Optional TTL applied to completed runs. When zero or negative no TTL index is created.
|
||||
/// </summary>
|
||||
public TimeSpan CompletedRunRetention { get; set; } = TimeSpan.FromDays(180);
|
||||
|
||||
public bool UseMajorityReadConcern { get; set; } = true;
|
||||
|
||||
public bool UseMajorityWriteConcern { get; set; } = true;
|
||||
}
|
||||
Reference in New Issue
Block a user