YARPad is a NuGet package that puts a database-backed admin UI, profile workflow and validation in front of an existing YARP reverse proxy, without taking the proxy out of your ASP.NET Core host.
Key points
- YARPad registers its own IProxyConfigProvider, so the host drops LoadFromConfig() and takes routes from the active profile.
- Before activation the profile is checked with YARP's IConfigValidator; a failed profile never replaces the working configuration.
- Setup needs only a path prefix and a SQLite connection string; the database and Identity tables appear on first start.
- The admin UI listens on loopback and private ranges by default, and LAN filtering runs before authentication.
- Exported .yrpd files use a versioned profile format, not the ReverseProxy section schema, so existing JSON needs migrating.
- Custom ITransformProvider code stays in the host while its parameters become editable in the UI.
Why it matters
Most teams that adopt YARP end up writing their own admin surface sooner or later, because routes in appsettings.json stop scaling once more than one person has to change them. YARPad is a useful shortcut: it stays inside your host and plugs into YARP's own IProxyConfigProvider, so custom transforms and middleware survive instead of being handed to a separate product.
Weigh the operational boundaries first. It pins you to .NET 10, keeps state in SQLite and assumes a single instance, so a load-balanced management plane or a GitOps-only flow is still yours to design. The UI is also a privileged surface: narrow the trusted-proxy list and keep it off the public internet.
Real-world use
- A gateway shared by developers who own transforms and operators who change destinations without a redeploy
- Preparing several related route changes in a cloned profile and activating them together after validation
- Keeping candidate profiles for testing or rollback instead of editing a deployment artifact
- Teams that want the same management experience as a container without writing a custom host application
This summary was generated by the agent from the original post on DEV Community: #csharp. The full text and all rights belong to its author and publisher. Go to original