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,55 @@ | ||||
| using System; | ||||
|  | ||||
| namespace Mongo2Go.Helper | ||||
| { | ||||
|     //  IDisposable and friends | ||||
|     public partial class MongoDbProcess | ||||
|     { | ||||
|         ~MongoDbProcess() | ||||
|         { | ||||
|             Dispose(false); | ||||
|         } | ||||
|  | ||||
|         public bool Disposed { get; private set; } | ||||
|  | ||||
|         public void Dispose() | ||||
|         { | ||||
|             Dispose(true); | ||||
|             GC.SuppressFinalize(this); | ||||
|         } | ||||
|  | ||||
|         private void Dispose(bool disposing) | ||||
|         { | ||||
|             if (Disposed) | ||||
|             { | ||||
|                 return; | ||||
|             } | ||||
|  | ||||
|             if (disposing) | ||||
|             { | ||||
|                 // we have no "managed resources" - but we leave this switch to avoid an FxCop CA1801 warnig | ||||
|             } | ||||
|  | ||||
|             if (_process == null) | ||||
|             { | ||||
|                 return; | ||||
|             } | ||||
|  | ||||
|             if (_process.DoNotKill) | ||||
|             { | ||||
|                 return; | ||||
|             } | ||||
|  | ||||
|             if (!_process.HasExited) | ||||
|             { | ||||
|                 _process.Kill(); | ||||
|                 _process.WaitForExit(); | ||||
|             } | ||||
|  | ||||
|             _process.Dispose(); | ||||
|             _process = null; | ||||
|  | ||||
|             Disposed = true; | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user