Extending TrustGate
There are two primary ways to extend TrustGate:1. Integrate External APIs
You can extend the behavior of TrustGate by connecting it with external systems or services. These integrations can be used to:- Perform real-time validations or enrichments
- Forward content for external moderation or analysis
- Log events to custom monitoring tools
- Trigger workflows or business logic in your own backend
While these integrations behave similarly to plugins, they are externally managed and do not require writing code within the gateway itself.
2. Write Custom Plugins
For advanced scenarios that require direct execution inside TrustGate, you can implement and register custom plugins. These are executed natively by the gateway and have access to full request/response context, making them ideal for:- Deep input/output inspection
- Performance-sensitive operations
- Custom authentication or authorization logic
- Inline transformations or filtering
Contribute to the Project
TrustGate is open to community contributions. If you’ve built a useful extension, fixed a bug, or added support for a new feature, you’re encouraged to contribute directly to the codebase.- Fork the repository
- Submit a pull request
- Follow the contribution guidelines