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: override private keys w/ env vars #87

Merged
merged 3 commits into from
Apr 27, 2024
Merged

Conversation

joelsmith-2019
Copy link
Contributor

@joelsmith-2019 joelsmith-2019 commented Apr 26, 2024

Closes #85

This PR allows private minter keys to be overridden / set with environment variables instead of the configuration file. This helps move us away from storing our private keys in plain text.

Note: Unfortunately I wasn't able to figure out a way to refactor the same logic into a utility function without making the code more confusing. I'll leave refactoring that for a future update. I do hope to make the logic between cosmos & eth based chains more consistent.

@joelsmith-2019 joelsmith-2019 self-assigned this Apr 26, 2024
@joelsmith-2019 joelsmith-2019 changed the title refactor: override private keys w/ env vars feat: override private keys w/ env vars Apr 26, 2024
@joelsmith-2019 joelsmith-2019 marked this pull request as ready for review April 26, 2024 20:24
ethereum/config.go Show resolved Hide resolved
@joelsmith-2019 joelsmith-2019 merged commit 7f4149b into main Apr 27, 2024
6 checks passed
@joelsmith-2019 joelsmith-2019 deleted the joel/encrypt-keys branch April 27, 2024 00:09
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.

Store Private Keys in K8s Secret
3 participants