-
Notifications
You must be signed in to change notification settings - Fork 11
improvement: add e2e tests poc #91
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
Conversation
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 9387833 | Triggered | Generic Password | 50ab9f6 | e2e/packages/infisical/compose.go | View secret |
| 8529478 | Triggered | Generic High Entropy Secret | 50ab9f6 | e2e/packages/infisical/compose.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 secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- 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.
7e8e11c to
8af2351
Compare
Greptile Summary
Important Files Changed
Confidence score: 4/5
|
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.
16 files reviewed, 7 comments
8061ede to
44280ae
Compare
add db xxx Use yaml struct instead, add backend Add env vars wrong img Map volume built in marshall Fix volume Generate client Add makefile Add compose helper More helper More helper Use new helper Remove unused stuff get mapped port Get port and host Add provisioner Add more helpers Fix provisioning xxx Simple test Fix cookies not passed in issue Refine code Extract helper use helper Map to a random port instead Cleanup Add machine identity & token Register id Update identity to allow token auth Set default up timeout to 120 instead Add operation id Update deps Test relay start Set temp dir as home Fix api url Allow private ip Try to add relays Get relays Add logs Add TODO Extract method Fix tests Fix asserts Fix assert Address feedbacks Add execute context
d6f09f0 to
7fa0723
Compare
Description 📣
ref: https://linear.app/infisical/issue/PLATFRM-125/update-the-current-poc-with-design-doc-feedbacks
Type ✨
Tests 🛠️
To run the tests, first, you need to set the path pointing to the infisical repo's backend folder as
INFISICAL_BACKEND_DIR(keep in mind, you need to have feature flags set correctly, we will fix that in the future, but for now it needs to be done manually). For example:export INFISICAL_BACKEND_DIR=/Users/fangpenlin/workspace/infisical/backendnext, the e2e test by default runs the executable as a subprocess, we need a path t
o the executable of CLI:
With these, you can then cd into the e2e folder and run the test like this
or, you can run the above in just one line:
INFISICAL_BACKEND_DIR=/Users/fangpenlin/workspace/infisical/backend INFISICAL_CLI_EXECUTABLE=/Users/fangpenlin/works pace/cli/infisical-merge go test github.com/infisical/cli/e2e-tests/relaTo make it possible to trace into the CLI code with a debugger, we also provide
functionCallas an alt way to run the CLI main function. By doing so, you don't needINFISICAL_CLI_EXECUTABLEset. Instead, you needCLI_E2E_DEFAULT_RUN_METHOD=functionCall:export CLI_E2E_DEFAULT_RUN_METHOD=functionCallOr, you can run it with one line:
INFISICAL_BACKEND_DIR=/Users/fangpenlin/workspace/infisical/backend CLI_E2E_DEFAULT_RUN_METHOD=functionCall go test github.com/infisical/cli/e2e-tests/relay