Skip to content

Harden public debug and Docker secret exposure#86

Open
ThangToee wants to merge 1 commit into
BAWES-Universe:masterfrom
ThangToee:codex-phpinfo-docker-context-55
Open

Harden public debug and Docker secret exposure#86
ThangToee wants to merge 1 commit into
BAWES-Universe:masterfrom
ThangToee:codex-phpinfo-docker-context-55

Conversation

@ThangToee
Copy link
Copy Markdown

/claim #55

Summary

  • remove the root info.php endpoint that executed phpinfo() and could expose runtime environment variables such as AWS/S3 credentials when the Apache image serves /var/www/html
  • exclude local .env files and the debug endpoint path from Docker build contexts
  • add a regression test that scans public document roots for phpinfo() and verifies the Docker ignore guardrails stay in place

Validation

  • rg -n phpinfo\\s*\\( admin\\web candidate\\web company\\web inspector\\web staff\\web status\\web verification\\web common\\tests\\unit\\security\\PublicDebugEndpointTest.php returns no public endpoint matches
  • php -l common\\tests\\unit\\security\\PublicDebugEndpointTest.php could not be run locally because PHP is not installed in this workspace PATH

Scope

This is intentionally separate from the existing Civil ID upload, S3 credential rotation, IAM, CloudTrail, and third-party integration hardening PRs.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 15, 2026

Warning

Rate limit exceeded

@ThangToee has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 26 minutes and 1 second before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ 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: e044d59d-d9b9-44ed-a3e1-d929d8a9f921

📥 Commits

Reviewing files that changed from the base of the PR and between 7b023ff and 2708f44.

📒 Files selected for processing (3)
  • .dockerignore
  • common/tests/unit/security/PublicDebugEndpointTest.php
  • info.php
✨ 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant