Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove key rotation from the key store #8645

Merged
merged 3 commits into from
Sep 19, 2024
Merged

Conversation

nventuro
Copy link
Contributor

@nventuro nventuro commented Sep 19, 2024

Follow up to #8613 - the key store still had some lingering code from back when it supported key rotation - each entry could hold multiple keys. We no longer do this (i.e. we never append anything to an entry, we only set it with a single key), so instead of checking if the entry includes the hash we're looking for, we can simply check if it's the correct (only) one.

Similarly when looking for the public key and secret key we no longer need to iterate over the multiple entries since there's a single one.

Copy link
Contributor

@benesjan benesjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@sklppy88 sklppy88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think some stale comments / var names here

yarn-project/key-store/src/key_store.ts Outdated Show resolved Hide resolved
yarn-project/key-store/src/key_store.ts Outdated Show resolved Hide resolved
yarn-project/key-store/src/key_store.ts Outdated Show resolved Hide resolved
yarn-project/key-store/src/key_store.ts Outdated Show resolved Hide resolved
yarn-project/key-store/src/key_store.ts Outdated Show resolved Hide resolved
yarn-project/key-store/src/key_store.ts Outdated Show resolved Hide resolved
yarn-project/key-store/src/key_store.ts Outdated Show resolved Hide resolved
@nventuro nventuro enabled auto-merge (squash) September 19, 2024 17:31
@nventuro nventuro merged commit d8bcb9f into master Sep 19, 2024
46 checks passed
@nventuro nventuro deleted the nv/key-store-no-rot branch September 19, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants