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

feat: use local artifacts to fetch keys for the key-funder #3173

Merged
merged 31 commits into from
Feb 13, 2024

Conversation

aroralanuk
Copy link
Contributor

@aroralanuk aroralanuk commented Jan 22, 2024

Description

Motivation - supports maintaining the source of truth for account keys in version control

Drive-by changes

  • restricting rolesToFund to FundableRole type which is just Kathy,Relayer which prevent the person running the script locally to accidentally fund validator keys.

Related issues

Backward compatibility

Yes

Testing

Manual

aroralanuk and others added 13 commits January 15, 2024 14:48
### Description

<!--
What's included in this PR?
-->

### Drive-by changes

<!--
Are there any minor or drive-by changes also included?
-->

### Related issues

<!--
- Fixes #[issue number here]
-->

### Backward compatibility

<!--
Are these changes backward compatible? Are there any infrastructure
implications, e.g. changes that would prohibit deploying older commits
using this infra tooling?

Yes/No
-->

### Testing

<!--
What kind of testing have these changes undergone?

None/Manual/Unit Tests
-->
Copy link

changeset-bot bot commented Jan 22, 2024

⚠️ No Changeset found

Latest commit: b2b6900

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Base automatically changed from kunal/rm-create-key-circular-dependency to main February 7, 2024 15:31
Copy link

codecov bot commented Feb 7, 2024

Codecov Report

Merging #3173 (b2b6900) into main (f140300) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3173   +/-   ##
=======================================
  Coverage   67.65%   67.65%           
=======================================
  Files          99       99           
  Lines        1014     1014           
  Branches      106      106           
=======================================
  Hits          686      686           
  Misses        284      284           
  Partials       44       44           
Components Coverage Δ
core 50.00% <ø> (ø)
hooks 68.79% <ø> (ø)
isms 65.94% <ø> (ø)
token 58.41% <ø> (ø)
middlewares 81.46% <ø> (ø)

@aroralanuk aroralanuk changed the title Kunal/key funder local artifacts feat: use local artifacts to fetch keys for the key-funder Feb 8, 2024
typescript/infra/src/utils/utils.ts Show resolved Hide resolved
typescript/infra/src/roles.ts Show resolved Hide resolved
typescript/infra/src/agents/key-utils.ts Outdated Show resolved Hide resolved
typescript/infra/src/roles.ts Show resolved Hide resolved
typescript/infra/src/utils/utils.ts Show resolved Hide resolved
typescript/infra/src/agents/key-utils.ts Outdated Show resolved Hide resolved
typescript/infra/src/agents/key-utils.ts Outdated Show resolved Hide resolved
typescript/infra/src/agents/key-utils.ts Outdated Show resolved Hide resolved
typescript/infra/src/utils/gcloud.ts Outdated Show resolved Hide resolved
@aroralanuk aroralanuk enabled auto-merge (squash) February 13, 2024 00:48
@aroralanuk aroralanuk merged commit 0cbbf3e into main Feb 13, 2024
23 of 24 checks passed
@aroralanuk aroralanuk deleted the kunal/key-funder-local-artifacts branch February 13, 2024 02:17
ltyu pushed a commit to ltyu/hyperlane-monorepo that referenced this pull request Mar 13, 2024
…-xyz#3173)

### Description

Motivation - supports maintaining the source of truth for account keys
in version control

- key-funder now fetches relayer,kathy keys from local artifacts instead
of gcp secrets
- local artifacts schema located here:
hyperlane-xyz#3159
- changing type of key from `BaseCloudAgentKey` to `BaseAgentKey` 

### Drive-by changes

- restricting rolesToFund to `FundableRole` type which is just
Kathy,Relayer which prevent the person running the script locally to
accidentally fund validator keys.

### Related issues

- fixes hyperlane-xyz/issues#888

### Backward compatibility

Yes

### Testing

Manual

---------

Co-authored-by: Yorke Rhodes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants