zenhack / powerbox-http-proxy

Apache License 2.0
4 stars 3 forks source link

Detect dropped/revoked capabilities and try to replace them. #6

Closed zenhack closed 3 years ago

zenhack commented 4 years ago

@ocdtrekkie observed that after backing up and restoring a TTRSS grain, feeds were no longer successfully updating. I believe the problem is that, because backups do not retain capabilities, when the backup is restored the database used by powerbox-http-proxy now contains a bunch of capabilities which aren't valid for the new grain. So, when it tries to use them it gets errors, and right now we just unconditionally pass errors back to the client.

Somehow we should try to detect this scenario and request a fresh capability.