Closed kevindiu closed 1 year ago
The policy will always keep in the cache even it is expired.
https://github.com/yahoojapan/athenz-authorizer/blob/d1efce031f2e33c8f135e563d765fd28595682d1/policy/fetcher.go#L171 https://github.com/yahoojapan/athenz-authorizer/blob/master/policy/daemon.go#L343
Gache expires <= 0 means never expire... https://github.com/kpango/gache/blob/master/gache.go#L125
when authorizer cannot get latest policy from ZTS before cached policy expire (304 or other error code), the expired policy will still be used.
continue in: https://github.com/AthenZ/athenz-authorizer/issues/4
The policy will always keep in the cache even it is expired.
https://github.com/yahoojapan/athenz-authorizer/blob/d1efce031f2e33c8f135e563d765fd28595682d1/policy/fetcher.go#L171 https://github.com/yahoojapan/athenz-authorizer/blob/master/policy/daemon.go#L343
Gache expires <= 0 means never expire... https://github.com/kpango/gache/blob/master/gache.go#L125