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: allow namespacing an API from generators.yml #4290

Merged
merged 12 commits into from
Aug 13, 2024
Merged

Conversation

armandobelardo
Copy link
Contributor

@armandobelardo armandobelardo commented Aug 12, 2024

Fixes FER-2904

Here we add a namespace option to api 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.)

@armandobelardo armandobelardo marked this pull request as draft August 12, 2024 22:06
@armandobelardo armandobelardo marked this pull request as ready for review August 13, 2024 00:18
Copy link

gitguardian bot commented Aug 13, 2024

⚠️ 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 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
  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 the best practices.
  3. Revoke and rotate these secrets.
  4. 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


🦉 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.

Copy link

Copy link

Copy link

@armandobelardo armandobelardo changed the title [wip] feat: allow namespacing an API from generators.yml feat: allow namespacing an API from generators.yml Aug 13, 2024
Copy link

Copy link

Copy link

Copy link

@dsinghvi
Copy link
Member

Talked offline -- should we add a test for websocket / couldn't find the code for taking the namespace into account

Copy link

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants