Conversation
…control Replace implicit insecure HTTP auto-detection (URL prefix + env check) with an explicit environment variable, giving operators direct control over whether plaintext HTTP is allowed for tenant-manager connections. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
🔒 Security Scan Results —
|
| Policy | Status |
|---|---|
| Default non-root user | ✅ Passed |
| No fixable critical/high CVEs | ✅ Passed |
| No high-profile vulnerabilities | ✅ Passed |
| No AGPL v3 licenses | ✅ Passed |
WalkthroughThis pull request introduces a new configuration flag Changes
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Comment |
🔒 Security Scan Results —
|
| Policy | Status |
|---|---|
| Default non-root user | ✅ Passed |
| No fixable critical/high CVEs | ✅ Passed |
| No high-profile vulnerabilities | ✅ Passed |
| No AGPL v3 licenses | ✅ Passed |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@components/manager/internal/bootstrap/config.go`:
- Line 128: The manager currently rejects MULTI_TENANT_URL with an http scheme
in production regardless of the new MultiTenantAllowInsecureHTTP flag; update
the manager config validation logic that checks MULTI_TENANT_URL to
conditionally allow http URLs when the MultiTenantAllowInsecureHTTP bool is true
(i.e., only reject http in production when that flag is false), ensure the
validation references the MultiTenantAllowInsecureHTTP field when deciding to
error, and add/update unit tests to cover both true and false flag cases.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 22bd9465-37b4-4659-96ff-27d636495b41
📒 Files selected for processing (6)
components/manager/.env.examplecomponents/manager/internal/bootstrap/config.gocomponents/manager/internal/bootstrap/init_tenant.gocomponents/worker/.env.examplecomponents/worker/internal/bootstrap/config.gocomponents/worker/internal/bootstrap/config_multitenant.go
…control
Replace implicit insecure HTTP auto-detection (URL prefix + env check) with an explicit environment variable, giving operators direct control over whether plaintext HTTP is allowed for tenant-manager connections.
Pull Request Checklist
Pull Request Type
Checklist
Please check each item after it's completed.
Additional Notes
Obs: Please, always remember to target your PR to develop branch instead of main.