Skip to content

[comp] Production Deploy#2274

Merged
Marfuen merged 6 commits intoreleasefrom
main
Mar 11, 2026
Merged

[comp] Production Deploy#2274
Marfuen merged 6 commits intoreleasefrom
main

Conversation

@github-actions
Copy link
Contributor

This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.

github-actions bot and others added 2 commits March 10, 2026 22:14
…dation (#2273)

- Implemented in-memory rate limiting for authentication requests to mitigate brute force attacks, with stricter limits for sensitive endpoints.
- Added redirect URL validation to prevent open redirects, allowing only specified hosts.
- Improved logging for rate limit exceedances during development.
- Cleaned up old rate limit entries periodically to optimize memory usage.
- Updated the OTP form to remove unnecessary API_URL declaration.

Co-authored-by: Mariano Fuentes <marfuen98@gmail.com>
@vercel
Copy link

vercel bot commented Mar 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
app (staging) Skipped Skipped Mar 11, 2026 0:27am
portal (staging) Skipped Skipped Mar 11, 2026 0:27am

Request Review

* feat(auth): enhance security with rate limiting and redirect URL validation

- Implemented in-memory rate limiting for authentication requests to mitigate brute force attacks, with stricter limits for sensitive endpoints.
- Added redirect URL validation to prevent open redirects, allowing only specified hosts.
- Improved logging for rate limit exceedances during development.
- Cleaned up old rate limit entries periodically to optimize memory usage.
- Updated the OTP form to remove unnecessary API_URL declaration.

* refactor(auth): update environment variable usage for base URL

- Changed references from AUTH_BASE_URL and BETTER_AUTH_URL to BASE_URL for consistency in cookie domain handling.
- Updated comments to clarify the purpose of BASE_URL in relation to OAuth callbacks and cookie domains.
* feat(auth): enhance security with rate limiting and redirect URL validation

- Implemented in-memory rate limiting for authentication requests to mitigate brute force attacks, with stricter limits for sensitive endpoints.
- Added redirect URL validation to prevent open redirects, allowing only specified hosts.
- Improved logging for rate limit exceedances during development.
- Cleaned up old rate limit entries periodically to optimize memory usage.
- Updated the OTP form to remove unnecessary API_URL declaration.

* refactor(auth): update environment variable usage for base URL

- Changed references from AUTH_BASE_URL and BETTER_AUTH_URL to BASE_URL for consistency in cookie domain handling.
- Updated comments to clarify the purpose of BASE_URL in relation to OAuth callbacks and cookie domains.

* refactor(auth): update base URL configuration for auth client

- Changed baseURL in authClient to use NEXT_PUBLIC_API_URL or default to 'http://localhost:3333' for improved environment configuration.
- This change enhances flexibility for different deployment environments.
* feat(integration): enhance connection handling with organization validation

- Updated ChecksController and ConnectionsController to include organization ID in relevant endpoints, ensuring that connections are validated against the correct organization.
- Introduced getConnectionForOrg method in ConnectionService to streamline organization-specific connection retrieval.
- Enhanced VariablesController and QuestionnaireController to incorporate organization ID handling for connection variables and questionnaire responses.
- Updated tests to cover new organization validation logic across affected controllers and services.

* refactor(auth): standardize BASE_URL usage and remove deprecated auth proxy routes

- Updated auth server configuration to consistently use BASE_URL for OAuth callbacks and cookie domain handling.
- Removed references to AUTH_BASE_URL and BETTER_AUTH_URL, simplifying environment variable usage.
- Deleted obsolete auth proxy routes from the app and portal, streamlining the authentication flow.
- Enhanced comments and documentation to clarify the purpose of BASE_URL in relation to security and session management.

---------

Co-authored-by: Mariano Fuentes <marfuen98@gmail.com>
* feat(integration): enhance connection handling with organization validation

- Updated ChecksController and ConnectionsController to include organization ID in relevant endpoints, ensuring that connections are validated against the correct organization.
- Introduced getConnectionForOrg method in ConnectionService to streamline organization-specific connection retrieval.
- Enhanced VariablesController and QuestionnaireController to incorporate organization ID handling for connection variables and questionnaire responses.
- Updated tests to cover new organization validation logic across affected controllers and services.

* refactor(auth): standardize BASE_URL usage and remove deprecated auth proxy routes

- Updated auth server configuration to consistently use BASE_URL for OAuth callbacks and cookie domain handling.
- Removed references to AUTH_BASE_URL and BETTER_AUTH_URL, simplifying environment variable usage.
- Deleted obsolete auth proxy routes from the app and portal, streamlining the authentication flow.
- Enhanced comments and documentation to clarify the purpose of BASE_URL in relation to security and session management.

* fix(auth): enhance body parsing for authentication routes

- Implemented custom middleware in main.ts to skip body parsing for /api/auth routes, ensuring better-auth can read the raw request stream for OAuth flows.
- Updated auth.module.ts to disable the module's body parser to prevent conflicts with the custom middleware.
- Configured auth.server.ts to skip the state cookie CSRF check for OAuth flows, improving compatibility with cross-origin setups.
@vercel vercel bot temporarily deployed to staging – portal March 11, 2026 00:27 Inactive
@vercel vercel bot temporarily deployed to staging – app March 11, 2026 00:27 Inactive
@Marfuen Marfuen merged commit 48c5bb1 into release Mar 11, 2026
12 of 25 checks passed
@claudfuen
Copy link
Contributor

🎉 This PR is included in version 3.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants