-
Notifications
You must be signed in to change notification settings - Fork 16
More robust network backend #30
Comments
A lot of the client is straight from keywhiz-fs and should be refactored to make this easier to implement too |
All the values here should be tweakable via configuration. |
We probably want a global ratelimit too -- avoid hammering the server too fast, eg if we're asked to sync repeatedly. |
Quick question, why going over a full synchronisation every time ? I feel like it would be much more efficient to trigger a sync based on the Request the Finally, do a 'cleaning' pass where it simply remove files that are present on the filesystem but not in the server response. |
What you describe is already implemented. I am using the term "sync" to refer to that behavior - fetch secrets as-needed based on the server response. |
In particular, the secretState struct, found here, https://github.com/square/keysync/blob/master/syncer.go#L41-L52 is where the data used to make that decision is stored |
Great, I noticed this behaviour from an old version I was playing with few weeks/months ago. I'll check the latest version. On another note, I believe we should be able to configure the Thanks! |
Yeah. I think we're going to want a handful of tunables here. I'll probably implement this next week and figure out what exactly those are. |
We'd like keysync to handle several server failure scenarios, so we need a more robust backend.
The text was updated successfully, but these errors were encountered: