-
Notifications
You must be signed in to change notification settings - Fork 159
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: allow namespacing an API from generators.yml #4290
Conversation
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
6585115 | Triggered | Generic High Entropy Secret | d22bec0 | packages/cli/openapi-ir-to-fern/src/test/snapshots/axle.test.ts.snap | View secret |
6585115 | Triggered | Generic High Entropy Secret | d22bec0 | packages/cli/openapi-ir-to-fern/src/test/snapshots/axle.test.ts.snap | View secret |
6585115 | Triggered | Generic High Entropy Secret | d22bec0 | packages/cli/openapi-ir-to-fern/src/test/snapshots/axle.test.ts.snap | View secret |
6585115 | Triggered | Generic High Entropy Secret | d22bec0 | packages/cli/openapi-ir-to-fern/src/test/snapshots/axle.test.ts.snap | 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.
packages/cli/openapi-parser/src/openapi/v3/converters/operation/convertHttpOperation.ts
Outdated
Show resolved
Hide resolved
Talked offline -- should we add a test for websocket / couldn't find the code for taking the namespace into account |
Fixes FER-2904
Here we add a
namespace
option toapi
to allow for specifying a record of APIs that will be namespaced (by it's key).We add the
namespace
key to easily distinguish between the new option and the previous top level options (such as path, overrides, settings, etc.)