Skip to content

feat: add CyberPanel hosting integration with domain mapping and auto-SSL#786

Merged
superdav42 merged 2 commits intomainfrom
feature/cyberpanel-integration
Apr 10, 2026
Merged

feat: add CyberPanel hosting integration with domain mapping and auto-SSL#786
superdav42 merged 2 commits intomainfrom
feature/cyberpanel-integration

Conversation

@superdav42
Copy link
Copy Markdown
Collaborator

Summary

  • Adds CyberPanel as a core hosting provider integration, based on a customer-supplied working integration (KursoPro)
  • Uses the standard CyberPanel API (/api/{endpoint}) with adminUser/adminPass body authentication -- verified working in production
  • Created companion issues in the email addon and domain seller addon for CyberPanel-specific capabilities

What this does

New files:

  • inc/integrations/providers/cyberpanel/class-cyberpanel-integration.php -- API wrapper with connection testing, setup wizard fields, credential management
  • inc/integrations/providers/cyberpanel/class-cyberpanel-domain-mapping.php -- Domain mapping capability with auto-SSL

Modified files:

  • inc/integrations/class-integration-registry.php -- registers integration + domain-mapping capability

How it works

Domain mapping flow (custom domains):

  1. User maps a domain in Ultimate Multisite -> wu_add_domain fires
  2. Integration calls CyberPanel createWebsite to add the domain with ssl=1
  3. Then explicitly calls submitWebsiteStatus with state=issueSSL as a safety net
  4. User points DNS A record to server IP -> domain works with SSL

Subdomain flow:
Wildcard DNS + wildcard SSL handle subdomains automatically -- NOOP (proven in customer's production environment).

Key design decisions aligned with customer's tested code

Decision Rationale
Standard API (/api/) not Cloud API (/cloudAPI/) Customer tested; available on all CyberPanel installs
adminUser/adminPass in body, not Basic Auth header Standard API auth mechanism
sslverify: false CyberPanel commonly uses self-signed certs
createWebsite not submitDomainCreation Standard API has no child-domain endpoint
Explicit submitWebsiteStatus SSL call Safety net beyond ssl=1 flag
30 SSL retry attempts Let's Encrypt DNS verification takes time
DOMAIN_CURRENT_SITE fallback for master domain Sensible default for multisite

Related issues

…-SSL

Adds CyberPanel as a core hosting provider integration using the standard
CyberPanel API (/api/{endpoint}) with adminUser/adminPass body auth.

Based on customer-supplied tested integration (KursoPro), aligned to use:
- createWebsite/deleteWebsite for domain management
- submitWebsiteStatus for explicit SSL issuance via Let's Encrypt
- verifyConn for connection testing
- sslverify disabled for self-signed CyberPanel certs
- Wildcard DNS+SSL NOOP for subdomains (proven in production)
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 10, 2026

Warning

Rate limit exceeded

@superdav42 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 20 minutes and 5 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 20 minutes and 5 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4de2736f-4aab-4621-813e-652ade60d3cc

📥 Commits

Reviewing files that changed from the base of the PR and between 2060784 and 69ac61b.

📒 Files selected for processing (3)
  • inc/integrations/class-integration-registry.php
  • inc/integrations/providers/cyberpanel/class-cyberpanel-domain-mapping.php
  • inc/integrations/providers/cyberpanel/class-cyberpanel-integration.php
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/cyberpanel-integration

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.

@superdav42 superdav42 merged commit a4bb4df into main Apr 10, 2026
1 check passed
@superdav42
Copy link
Copy Markdown
Collaborator Author

Summary

  • Adds CyberPanel as a core hosting provider integration, based on a customer-supplied working integration (KursoPro)
  • Uses the standard CyberPanel API (/api/{endpoint}) with adminUser/adminPass body authentication -- verified working in production
  • Created companion issues in the email addon and domain seller addon for CyberPanel-specific capabilities

What this does

New files:

  • inc/integrations/providers/cyberpanel/class-cyberpanel-integration.php -- API wrapper with connection testing, setup wizard fields, credential management
  • inc/integrations/providers/cyberpanel/class-cyberpanel-domain-mapping.php -- Domain mapping capability with auto-SSL
    Modified files:
  • inc/integrations/class-integration-registry.php -- registers integration + domain-mapping capability

How it works

Domain mapping flow (custom domains):

  1. User maps a domain in Ultimate Multisite -> wu_add_domain fires
  2. Integration calls CyberPanel createWebsite to add the domain with ssl=1
  3. Then explicitly calls submitWebsiteStatus with state=issueSSL as a safety net
  4. User points DNS A record to server IP -> domain works with SSL
    Subdomain flow:
    Wildcard DNS + wildcard SSL handle subdomains automatically -- NOOP (proven in customer's production environment).

Key design decisions aligned with customer's tested code

Decision Rationale
Standard API (/api/) not Cloud API (/cloudAPI/) Customer tested; available on all CyberPanel installs
adminUser/adminPass in body, not Basic Auth header Standard API auth mechanism
sslverify: false CyberPanel commonly uses self-signed certs
createWebsite not submitDomainCreation Standard API has no child-domain endpoint
Explicit submitWebsiteStatus SSL call Safety net beyond ssl=1 flag
30 SSL retry attempts Let's Encrypt DNS verification takes time
DOMAIN_CURRENT_SITE fallback for master domain Sensible default for multisite

Related issues


Merged via PR #786 to main.
Merged by deterministic merge pass (pulse-wrapper.sh).


aidevops.sh v3.6.235 spent 5m on this as a headless bash routine.

@github-actions
Copy link
Copy Markdown

🔨 Build Complete - Ready for Testing!

📦 Download Build Artifact (Recommended)

Download the zip build, upload to WordPress and test:

🌐 Test in WordPress Playground (Very Experimental)

Click the link below to instantly test this PR in your browser - no installation needed!
Playground support for multisite is very limitied, hopefully it will get better in the future.

🚀 Launch in Playground

Login credentials: admin / password

@github-actions
Copy link
Copy Markdown

🔨 Build Complete - Ready for Testing!

📦 Download Build Artifact (Recommended)

Download the zip build, upload to WordPress and test:

🌐 Test in WordPress Playground (Very Experimental)

Click the link below to instantly test this PR in your browser - no installation needed!
Playground support for multisite is very limitied, hopefully it will get better in the future.

🚀 Launch in Playground

Login credentials: admin / password

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 10, 2026

Performance Test Results

Performance test results for a4bb4df are in 🛎️!

Note: the numbers in parentheses show the difference to the previous (baseline) test run. Differences below 2% or 0.5 in absolute values are not shown.

URL: /

Run DB Queries Memory Before Template Template WP Total LCP TTFB LCP - TTFB
0 40 (-1 / -3% ) 37.78 MB 835.00 ms (-37.00 ms / -4% ) 153.50 ms 1032.00 ms 2026.00 ms 1919.20 ms 92.40 ms (+3.65 ms / +4% )
1 56 49.02 MB 967.00 ms (+55.50 ms / +6% ) 144.50 ms (+4.50 ms / +3% ) 1114.00 ms (+64.00 ms / +6% ) 2126.00 ms (+88.00 ms / +4% ) 2044.90 ms (+85.05 ms / +4% ) 83.00 ms (+3.65 ms / +4% )

superdav42 added a commit that referenced this pull request Apr 11, 2026
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.

1 participant