Closed vicb closed 5 months ago
Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.
π¦ 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.
This pull request separates the front-end and API configurations by introducing environment variables for API and front-end server URLs. It also refactors the way API keys are managed and updates various fetch calls to use these new environment variables.
Files | Changes |
---|---|
apps/fxc-front/src/app/pages/archives.ts apps/fxc-front/src/app/pages/admin.ts apps/fxc-front/src/app/pages/settings.ts apps/fxc-front/src/app/logic/track.ts apps/fxc-front/src/app/components/ui/waypoint-modal.ts apps/fxc-front/src/app/redux/track-slice.ts apps/fxc-front/src/app/components/ui/google-btn.ts apps/fxc-front/src/app/components/2d/map-element.ts apps/fxc-front/src/app/components/3d/map3d-element.ts apps/fxc-front/src/app/components/ui/main-menu.ts apps/fxc-front/src/app/components/ui/supporter-modal.ts apps/fxc-front/src/app/redux/live-track-slice.ts |
Updated fetch calls and form action URLs to use environment variables for API and front server URLs. |
apps/fxc-server/src/main.ts apps/fxc-server/src/environments/environment.prod.ts apps/fxc-server/src/environments/environment.ts |
Introduced new environment variables for OAuth origin, cookie domain, cookie name, and CORS allow list. Added CORS middleware. |
apps/fxc-front/src/app/apikey.ts apps/fxc-front/src/env.d.ts |
Refactored API key management to use environment variables and updated type definitions. |
apps/fxc-server/project.json |
Removed dist/apps/fxc-front from assets. |
CONTRIBUTING.md |
Updated instructions for setting up environment variables. |
apps/fxc-front/src/flyxc.ts |
Reorganized imports. |
apps/fxc-front/src/environments/environment.ts apps/fxc-front/src/environments/environment.prod.ts |
Deleted environment files. |
[!WARNING]
Review failed
The pull request is closed.
The recent changes focus on refining environment configurations, enhancing API key handling, and updating various paths and dependencies. Key updates include the introduction of new environment variables, dynamic URL constructions using these variables, and the transition from SecretKeys
to Secrets
for secure key management. Additionally, there are improvements in linting support and dependency management across multiple projects.
File(s) or Path(s) | Summary of Changes |
---|---|
CONTRIBUTING.md |
Updated file paths, added npm run fixlint command, removed default key definitions setup. |
apps/fxc-front/.env.development.local |
Introduced new environment configurations for local development. |
apps/fxc-front/.env.production |
Added new environment variables for API servers and keys for production. |
apps/fxc-front/.gitignore |
Excluded .env.development from version control. |
apps/fxc-front/src/app/apikey.ts |
Refactored getApiKeyAndHost function, introduced API_NAME type and MISSING_KEY constant. |
apps/fxc-front/src/app/components/... |
Updated API key usage and URLs to use environment variables dynamically. |
apps/fxc-front/src/env.d.ts |
Added new environment variables to ImportMetaEnv interface. |
apps/fxc-front/src/flyxc.ts |
Moved import statement for liveTrack above planner . |
apps/fxc-server/project.json |
Added dependencies on secrets project, modified asset list. |
apps/fxc-server/src/app/routes/... |
Replaced SecretKeys with Secrets for secure key management. |
apps/fxc-server/src/environments/environment.ts |
Renamed and added new properties for better configuration management. |
apps/misc/project.json |
Added dependencies on secrets project for build and test phases. |
apps/misc/src/app/email_inreach.ts |
Replaced SecretKeys with Secrets for secure key management. |
apps/proxy/project.json |
Added dependencies on secrets project for build and test phases. |
apps/proxy/src/main.ts |
Replaced SecretKeys with Secrets for secure key management. |
apps/run/project.json |
Added dependencies on secrets project for build and test phases. |
libs/common-node/src/lib/redis.ts |
Updated getRedisClient function to accept a url parameter. |
libs/common/src/lib/index.ts |
Removed export of keys . |
libs/secrets/... |
Introduced new secrets library configuration and setup. |
In the code where secrets hide,
New paths and keys now reside.
Environment variables take the stage,
Dynamic URLs on every page.
WithSecrets
safe and sound,
Our code's security is profound.
πβ¨
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?
Latest commit: |
f53e3a0
|
Status: | β Deploy successful! |
Preview URL: | https://e3387e97.flyxc.pages.dev |
Branch Preview URL: | https://prereq.flyxc.pages.dev |
Summary by Sourcery
This pull request separates the front-end and API configurations by refactoring API key retrieval and updating fetch requests to use environment-specific URLs. It also introduces a CORS allow list for better security and updates the documentation to reflect these changes.
Summary by CodeRabbit
New Features
Secrets
library for managing sensitive keys and configurations.Bug Fixes
Refactor
SecretKeys
withSecrets
across various modules for better key management.Chores
.gitignore
to exclude private development keys.secrets
project for build and test phases.