voidKandy / espionox

Use espionox to streamline making LLM applications in Rust
https://crates.io/crates/espionox
10 stars 0 forks source link

V0 refactor #24

Closed voidKandy closed 7 months ago

voidKandy commented 7 months ago

V0 is a huge refactor. Agents are now added to Environment structs, which handle all web requests. An MPSC channel works as the interface for devs to interract with agents within the Environment. Instead of the previous observer system, EnvListeners can be added inside of the Environment. Since EnvListener is a trait, devs can customize the behavior of their structs implementing that trait to their heart's content

gitguardian[bot] commented 7 months ago

⚠️ GitGuardian has uncovered 4 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
| GitGuardian id | Secret | Commit | Filename | | | -------------- | ------------------------- | ---------------- | --------------- | -------------------- | | [9121641](https://dashboard.gitguardian.com/incidents/9121641?occurrence=122101165) | OpenAI API Key | a3e1c0db8ec185596a71c7efe6527c3af151de76 | tests/api/helpers.rs | [View secret](https://github.com/voidKandy/Espionox/commit/a3e1c0db8ec185596a71c7efe6527c3af151de76#diff-6186b318d6f51e2a9225d2517707d69e3b4b1b3224d974c7a45d742571bec880R36) | | [9121641](https://dashboard.gitguardian.com/incidents/9121641?occurrence=122134383) | OpenAI API Key | 644b6a6b7b85c9068866aed1acee8f0f18abd1ec | tests/api/helpers.rs | [View secret](https://github.com/voidKandy/Espionox/commit/644b6a6b7b85c9068866aed1acee8f0f18abd1ec#diff-6186b318d6f51e2a9225d2517707d69e3b4b1b3224d974c7a45d742571bec880L36) | | [9121641](https://dashboard.gitguardian.com/incidents/9121641?occurrence=122101166) | OpenAI API Key | a3e1c0db8ec185596a71c7efe6527c3af151de76 | .espionox_config/env/default.yaml | [View secret](https://github.com/voidKandy/Espionox/commit/a3e1c0db8ec185596a71c7efe6527c3af151de76#diff-45d7674316fd6c5349f5f7ab1f8f0701e9734c25e8c57e52cc39f4a90e918ecdR3) | | [9121641](https://dashboard.gitguardian.com/incidents/9121641?occurrence=122749381) | OpenAI API Key | c812aa7573ceb5a1532c96e1238afd20dd50d10d | .espionox_config/env/default.yaml | [View secret](https://github.com/voidKandy/Espionox/commit/c812aa7573ceb5a1532c96e1238afd20dd50d10d#diff-45d7674316fd6c5349f5f7ab1f8f0701e9734c25e8c57e52cc39f4a90e918ecdL3) |
🛠 Guidelines to remediate hardcoded secrets
1. Understand the implications of revoking this secret by investigating where it is used in your code. 2. Replace and store your secrets safely. [Learn here](https://blog.gitguardian.com/secrets-api-management?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) the best practices. 3. Revoke and [rotate these secrets](https://docs.gitguardian.com/secrets-detection/secrets-detection-engine/detectors/specifics/openai_apikey#revoke-the-secret?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). 4. If possible, [rewrite git history](https://blog.gitguardian.com/rewriting-git-history-cheatsheet?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). 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](https://blog.gitguardian.com/secrets-api-management/?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) for managing and storing secrets including API keys and other credentials - install [secret detection on pre-commit](https://docs.gitguardian.com/ggshield-docs/integrations/git-hooks/pre-commit?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) 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.

Our GitHub checks need improvements? Share your feedbacks!