Advanced
Building plugins
Extend ShieldGate with ShieldGate.PluginSdk contracts.
Goal
Build a custom plugin assembly the PluginHost can load.
Prerequisites
- .NET 10 class library referencing
ShieldGate.PluginSdkonly (not Domain/Persistence). - Familiarity with Plugins.
Contracts (examples)
IShieldGatePluginIThreatIntelligencePluginINotificationPluginIWafRulePlugin/ inspector pluginsIAuthenticationPlugin/IAuthorizationPlugin- Logging / metrics plugins
Steps
- Create a class library and implement the relevant interfaces.
- Put settings keys in
Plugins:Settingsas needed. - Copy the DLL into
Plugins:Directoryfor Api/Worker (and Proxy if the plugin type runs there). - Restart hosts to load.
- Configure the feature UI to use your plugin id.
Verify
- Listed under Ops → Plugins.
- End-to-end behavior matches the sample plugins in
src/plugins/.
Related
- Sample projects under
src/plugins/.