Skip to content

Enhance authentication configuration for production mode#2232

Open
Thushani-Jayasekera wants to merge 1 commit into
wso2:mainfrom
Thushani-Jayasekera:improve-sec
Open

Enhance authentication configuration for production mode#2232
Thushani-Jayasekera wants to merge 1 commit into
wso2:mainfrom
Thushani-Jayasekera:improve-sec

Conversation

@Thushani-Jayasekera

Copy link
Copy Markdown
Contributor
  • Introduced validateAuthConfig function to enforce authentication requirements when demo mode is disabled.
  • Added checks for file-based authentication and JWT settings to ensure compliance with production standards.
  • Updated LoadConfig to provide clearer error messages regarding JWT secret key generation in demo mode.
  • Implemented self-signed certificate generation restrictions based on demo mode status.

- Introduced `validateAuthConfig` function to enforce authentication requirements when demo mode is disabled.
- Added checks for file-based authentication and JWT settings to ensure compliance with production standards.
- Updated `LoadConfig` to provide clearer error messages regarding JWT secret key generation in demo mode.
- Implemented self-signed certificate generation restrictions based on demo mode status.
@coderabbitai

coderabbitai Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@Thushani-Jayasekera, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 44 minutes and 7 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: da49c8e7-f478-4718-a8ba-bb5c27d7b581

📥 Commits

Reviewing files that changed from the base of the PR and between 8f044d2 and 124bdc1.

📒 Files selected for processing (2)
  • platform-api/src/config/config.go
  • platform-api/src/internal/server/server.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants