Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix caching of remote servers' signature keys #2042

Merged
merged 1 commit into from Mar 22, 2017
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Mar 22, 2017

The @cached decorator on KeyStore._get_server_verify_key was missing its num_args parameter, which meant that it was returning the wrong key for any server which had more than one recorded key.

By way of a fix, change the default for num_args to be all arguments. To implement that, factor out a common base class for CacheDescriptor and CacheListDescriptor.

Fixes #2034.

The `@cached` decorator on `KeyStore._get_server_verify_key` was missing
its `num_args` parameter, which meant that it was returning the wrong key for
any server which had more than one recorded key.

By way of a fix, change the default for `num_args` to be *all* arguments. To
implement that, factor out a common base class for `CacheDescriptor` and `CacheListDescriptor`.
@erikjohnston
Copy link
Member

lgtm

@richvdh richvdh merged commit 7b67848 into develop Mar 22, 2017
@richvdh richvdh deleted the rav/fix_key_caching branch March 22, 2017 17:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants