-
Notifications
You must be signed in to change notification settings - Fork 880
Recovery options for IProxyConfigProvider.GetConfig() validation failures #2791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@MihaZupan if the new config is invalid, does it actually get applied or is it ignored? |
It's ignored and YARP continues with the last good config. |
If the config is invalid, it should try to reload it automatically after 5 mins. It's a bit long, but you could inject the Do you have debug logs on your issue? You don't see any change even after 5 mins? |
This has not been my experience. Once an invalid config is attempted, it will no longer retry. I think this is consistent with the documentation here:
I'd be fine with this, if your internal validation methods were publically exposed. I want to use the same validation rules YARP itself uses. I can mass copy/paste if needed, but trying to avoid that. I don't have debug logs, I'll try to turn things up to generate them |
You can look at the If you need to be notified when there are issues, you can subscribe to events via |
Not sure what I am missing here, but the methods from |
Sorry, I should have realized the default implementation was registered in DI, I thought I had to implement my own. |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
We are using an implementation of
IProxyConfigProvider
to handle our YARP Configuration. We're struggling with a way to handle situations where the updated config becomes invalid and the proxy is unable to listen for future changes. We'd like to be able to correct the invalid configuration without having to restart YARP.We looked to implement
IConfigValidtor
and signal theIChangeToken
once validated, but the internal validation methods are not publicly exposed, and ideally we would want to apply the same validation rules that are being used internally.Can the internal validation methods be exposed? Or, is there a way to reset
IChangeToken
once it gets short-circuited?The text was updated successfully, but these errors were encountered: