Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix caching of remote servers' signature keys #2042

Merged
merged 1 commit into from Mar 22, 2017

Conversation

Projects
None yet
2 participants
Member

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.

Fix caching of remote servers' signature keys
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`.
Owner

erikjohnston commented Mar 22, 2017

lgtm

@richvdh richvdh merged commit 7b67848 into develop Mar 22, 2017

5 of 8 checks passed

Sytest Dendron (Commit) Build #1768 origin/rav/fix_key_caching failed in 12 min
Details
Sytest Dendron (Merged PR) Build finished.
Details
Sytest SQLite (Merged PR) Build finished.
Details
Sytest Postgres (Commit) Build #2589 origin/rav/fix_key_caching succeeded in 7 min 59 sec
Details
Sytest Postgres (Merged PR) Build finished.
Details
Sytest SQLite (Commit) Build #2663 origin/rav/fix_key_caching succeeded in 5 min 39 sec
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@richvdh richvdh deleted the rav/fix_key_caching branch Mar 22, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment