Initial WebhookServer implementation
Add the .NET 8 solution scaffolded against PLAN.md. Three projects share WebhookServer.Core (models, auth, execution, storage, IPC, callbacks) and WebhookServer.Service hosts an embedded Kestrel listener plus the named-pipe admin server. WebhookServer.Gui is a thin MVVM client over the pipe. Includes 25 unit tests covering HMAC verification, bearer auth, IP allowlist parsing, arg-template rendering, DPAPI round-trip, and the encrypt-on-save config store. Install/uninstall PowerShell scripts default to LocalSystem and accept a domain user or gMSA via -ServiceAccount. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
namespace WebhookServer.Core.Models;
|
||||
|
||||
public enum AuthMode
|
||||
{
|
||||
None = 0,
|
||||
Bearer = 1,
|
||||
Hmac = 2,
|
||||
}
|
||||
|
||||
public enum HmacAlgorithm
|
||||
{
|
||||
Sha1 = 1,
|
||||
Sha256 = 2,
|
||||
Sha512 = 3,
|
||||
}
|
||||
|
||||
public enum HmacEncoding
|
||||
{
|
||||
Hex = 0,
|
||||
Base64 = 1,
|
||||
}
|
||||
|
||||
public enum ExecutorType
|
||||
{
|
||||
WindowsPowerShell = 0,
|
||||
PwshCore = 1,
|
||||
Cmd = 2,
|
||||
Executable = 3,
|
||||
}
|
||||
|
||||
public enum ResponseMode
|
||||
{
|
||||
Sync = 0,
|
||||
Async = 1,
|
||||
}
|
||||
|
||||
public enum CallbackTrigger
|
||||
{
|
||||
OnComplete = 0,
|
||||
OnSuccess = 1,
|
||||
OnFailure = 2,
|
||||
}
|
||||
|
||||
public enum CallbackHttpMethod
|
||||
{
|
||||
Post = 0,
|
||||
Put = 1,
|
||||
}
|
||||
|
||||
public enum HttpsBindingKind
|
||||
{
|
||||
None = 0,
|
||||
PfxFile = 1,
|
||||
CertStoreThumbprint = 2,
|
||||
}
|
||||
Reference in New Issue
Block a user