Two dead ima accounts (magpie-ima-auth 0.3.0) were renewed ~80 times a
minute: its auth.refresh catches ima's "sign in again", warns and gives
back undefined, and the host took that as "nothing to do" without noting
a failure, so every request, models listing and usage read asked again.
A refresh that gives nothing back while the sign-in is due now counts as
a failed renewal. A failed renewal of the same sign-in waits 30s, then
doubles each time up to 30 minutes, for every plugin; a new sign-in
starts afresh, and one the vendor turned away for good is still never
tried again.
Run: go test -run 'TestPluginRenewsSignIns|TestRenewRetryBacksOff|TestAuthLock'
./internal/plugin on mote: ok.
Broken by hand: dropping the failure note on an empty refresh makes
TestPluginRenewsSignIns red (r-none renewed three times); a flat 30s
retry makes TestRenewRetryBacksOff red.