mirror of https://github.com/grpc/grpc.git
Minimum time file watcher (#32365)
Enforce a minimum value for the `refresh_interval_sec_` for the `FileWatcherCertificateProvider`. There have been issues found when this is set to 0, and the security team discussed and agreed that 0 should not be a valid value for this use-case. I made the `refresh_interval_sec_` public to make it easy to test - I didn't immediately see an easy way around this. I found `FRIEND_TEST` exists for accessing private members, but I didn't see that used anywhere in grpc. If there is a better solution to this, please let me know.pull/32370/head
parent
420180c6d7
commit
a944a06755
3 changed files with 22 additions and 0 deletions
Loading…
Reference in new issue