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 default keys, or override #1728

Merged
merged 9 commits into from
May 21, 2024

Conversation

joshuef
Copy link
Contributor

@joshuef joshuef commented May 20, 2024

This pull request primarily involves changes to the handling of the GENESIS_PK and GENESIS_SK environment variables in various GitHub workflow files and in the sn_transfers/src/genesis.rs file. The key changes include the removal of hardcoded GENESIS_PK values in several workflow files, a change in the hardcoded GENESIS_PK value in merge.yml, and changes to the default handling of these environment variables in genesis.rs.

Environment Variables:

  • .github/workflows/benchmark-prs.yml, .github/workflows/generate-benchmark-charts.yml, .github/workflows/memcheck.yml, .github/workflows/nightly.yml, .github/workflows/nightly_wan.yml, and .github/workflows/nightly_wan_churn.yml: Removed hardcoded GENESIS_PK from the env: block. [1] [2] [3] [4] [5] [6]
  • .github/workflows/merge.yml: Changed hardcoded GENESIS_PK value in the env: block and added GENESIS_SK.

Codebase Modifications:

  • sn_transfers/src/genesis.rs: Modified the handling of GENESIS_PK and GENESIS_SK environment variables. If these variables are not set, a warning is issued and default values are used for testing purposes. Also, the LIVE_GENESIS_PK constant was renamed to DEFAULT_LIVE_GENESIS_PK and its value was changed. [1] [2] [3]

@joshuef joshuef force-pushed the KeyManagementUpdates branch from 96a7965 to f24584d Compare May 20, 2024 00:39
@joshuef joshuef changed the title feat: use defualt keys, or override feat: use default keys, or override May 20, 2024
@joshuef joshuef force-pushed the KeyManagementUpdates branch 3 times, most recently from 7283af7 to 573ddf7 Compare May 20, 2024 07:35
sn_transfers/src/genesis.rs Outdated Show resolved Hide resolved
sn_transfers/src/genesis.rs Outdated Show resolved Hide resolved
sn_transfers/src/genesis.rs Outdated Show resolved Hide resolved
sn_transfers/src/genesis.rs Outdated Show resolved Hide resolved
@@ -30,8 +30,9 @@ const GENESIS_DERIVATION_INDEX: DerivationIndex = DerivationIndex([0u8; 32]);

/// Default genesis SK for testing purpose. Be sure to pass the correct `GENESIS_PK` value via env.
Copy link
Member

Choose a reason for hiding this comment

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

comment needs to be updated once this PR merged.

sn_transfers/src/genesis.rs Outdated Show resolved Hide resolved
sn_transfers/src/genesis.rs Outdated Show resolved Hide resolved
@joshuef joshuef force-pushed the KeyManagementUpdates branch from 573ddf7 to 3db7f65 Compare May 21, 2024 04:11
@joshuef joshuef force-pushed the KeyManagementUpdates branch from 3db7f65 to 5550cf5 Compare May 21, 2024 05:27
@joshuef joshuef force-pushed the KeyManagementUpdates branch from 06cb0b4 to d2f20ad Compare May 21, 2024 07:37
@maqi maqi added this pull request to the merge queue May 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 21, 2024
@RolandSherwin RolandSherwin added this pull request to the merge queue May 21, 2024
Merged via the queue into maidsafe:main with commit 721852e May 21, 2024
34 checks passed
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