-
Notifications
You must be signed in to change notification settings - Fork 108
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
refactor(e2e): move addresses and private keys to config #2308
Conversation
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
11033143 | Triggered | Generic High Entropy Secret | ead440e | cmd/zetae2e/config/localnet.yml | View secret |
11033143 | Triggered | Generic High Entropy Secret | ead440e | cmd/zetae2e/config/local.yml | View secret |
11033143 | Triggered | Generic High Entropy Secret | 24ce481 | cmd/zetae2e/config/local.yml | View secret |
11033143 | Triggered | Generic High Entropy Secret | a371762 | cmd/zetae2e/local/accounts.go | View secret |
11033143 | Triggered | Generic High Entropy Secret | ead440e | cmd/zetae2e/config/localnet.yml | View secret |
11033143 | Triggered | Generic High Entropy Secret | ead440e | cmd/zetae2e/config/local.yml | View secret |
11033143 | Triggered | Generic High Entropy Secret | 24ce481 | cmd/zetae2e/config/localnet.yml | View secret |
11033144 | Triggered | Generic High Entropy Secret | a371762 | cmd/zetae2e/local/accounts.go | View secret |
11033144 | Triggered | Generic High Entropy Secret | 24ce481 | cmd/zetae2e/config/localnet.yml | View secret |
11033145 | Triggered | Generic High Entropy Secret | a371762 | cmd/zetae2e/local/accounts.go | View secret |
11033145 | Triggered | Generic High Entropy Secret | 24ce481 | cmd/zetae2e/config/localnet.yml | View secret |
11033146 | Triggered | Generic High Entropy Secret | a371762 | cmd/zetae2e/local/accounts.go | View secret |
11033146 | Triggered | Generic High Entropy Secret | 24ce481 | cmd/zetae2e/config/localnet.yml | View secret |
11478175 | Triggered | Generic High Entropy Secret | 24ce481 | cmd/zetae2e/config/localnet.yml | View secret |
11478176 | Triggered | Generic High Entropy Secret | 24ce481 | cmd/zetae2e/config/localnet.yml | View secret |
11759679 | Triggered | Generic High Entropy Secret | a371762 | cmd/zetae2e/local/accounts.go | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
!!!WARNING!!! Be very careful about using Only suppress a single rule (or a specific set of rules) within a section of code, while continuing to scan for other problems. To do this, you can list the rule(s) to be suppressed within the #nosec annotation, e.g: /* #nosec G401 */ or //#nosec G201 G202 G203 Pay extra attention to the way |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2308 +/- ##
===========================================
- Coverage 69.45% 69.10% -0.35%
===========================================
Files 307 308 +1
Lines 19056 19221 +165
===========================================
+ Hits 13235 13283 +48
- Misses 5166 5267 +101
- Partials 655 671 +16
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On #2238
We want to use the zetae2e local
command to initialize/test the devnet?
It might make sense to rename local
into dev
or something similar then IMO
Is this one ready for re-review @gartnera ? |
41aff9f
to
50acbd1
Compare
985fd33
to
88b3e0c
Compare
Important Review skippedReview was skipped due to path filters Files ignored due to path filters (58)
You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to introduce a ignore file for GitGuardian if possible
096a7f4
to
ead440e
Compare
Description
Move all localnet secrets to the e2e config file to allow easy randomization. I still need to finish the TODO items, but please take an initial look. Notes:
--config
is now a required parameter to zetae2e.DefaultConfig()
is no longer used for localnet e2e testing.zetae2e init
now generates keypairsTODO:
start-zetae2e.sh
to loading from config filestart-zetacored.sh
to loading from config fileCloses #2238
Relates to DEVOP-642
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Include instructions and any relevant details so others can reproduce.