Skip to content

Harden third-party integration key config#74

Closed
digzrow-coder wants to merge 2 commits into
BAWES-Universe:masterfrom
digzrow-coder:codex/thirdparty-key-hardening-55
Closed

Harden third-party integration key config#74
digzrow-coder wants to merge 2 commits into
BAWES-Universe:masterfrom
digzrow-coder:codex/thirdparty-key-hardening-55

Conversation

@digzrow-coder
Copy link
Copy Markdown

@digzrow-coder digzrow-coder commented May 14, 2026

/claim #55

Contributes to #55

Scope

This is a separate code-only third-party integration credential hardening slice that does not overlap with the existing S3, SQS, MediaConvert, SES mailer, Xero client-secret, Cloudinary, Civil ID, bucket-guardrail, or service-token submissions.

Changes:

  • Moves Google Maps, reCAPTCHA, Jira, Algolia, IP geolocation, and Slack webhook credentials from checked-in config to runtime environment variables.
  • Removes the commented Algolia key from config.
  • Documents the required runtime variables in docs/setup.md.
  • Adds scripts/check-thirdparty-key-hardening.py to block these credential patterns from being reintroduced in common config.

Safety Boundary

No live AWS/IAM, Google, reCAPTCHA, Jira, Algolia, IPinfo, Slack, candidate data, production services, or private account data were accessed. This PR only changes checked-in code/config references and does not include secret values.

Demo

Privacy-safe demo video: https://github.com/digzrow-coder/studenthub/releases/download/thirdparty-key-hardening-demo-20260515/thirdparty-key-hardening-demo.mp4

Verification

python scripts/check-thirdparty-key-hardening.py
# Third-party key hardening check passed.

python -m py_compile scripts/check-thirdparty-key-hardening.py

git diff --check HEAD~1..HEAD

Targeted search for the removed credential patterns in common/config, docs, and scripts returned no matches outside the regression fragments used by the checker.

PHP lint was not run locally because the php executable is not installed in this environment. The patch is limited to PHP config array values, documentation, and a Python static regression check.

Claim refresh: /claim #55

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 14, 2026

Warning

Rate limit exceeded

@digzrow-coder has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 27 minutes and 12 seconds 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: 31e86455-4ab4-4b27-97b3-f011f60fa901

📥 Commits

Reviewing files that changed from the base of the PR and between 7b023ff and 6c859d8.

📒 Files selected for processing (4)
  • common/config/main.php
  • common/config/params.php
  • docs/setup.md
  • scripts/check-thirdparty-key-hardening.py
✨ 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.

@dosubot
Copy link
Copy Markdown

dosubot Bot commented May 14, 2026

Related Knowledge

1 document with suggested updates is ready for review.

BAWES Universe

StudentHub – Complete Services & Infrastructure Map (Org-wide)”
View Suggested Changes
@@ -8,10 +8,15 @@
 | CircleCI         | Other        | CI/CD pipeline for building and deploying frontend                      | admin portal                                  | [studenthub-admin/.circleci/config.yml](https://github.com/BAWES-Universe/studenthub-admin/blob/b453c0c7d0b0f170964a82948fb09da610cde5e9/.circleci/config.yml#L1-L202)                  | context: org-global                    | N/A                                       |
 | Railway          | Hosting      | Deploys and manages backend environments and MySQL databases            | backend, cron/worker                          | [studenthub/railway/railway.md](https://github.com/BAWES-Universe/studenthub/blob/ca90a5502040ba8191fe9f80d29d0b6a4d2a6152/railway/railway.md#L1-L34), [studenthub/environments/dev-server-railway/deployments/july_2025/3_july_2025_deployment.sh](https://github.com/BAWES-Universe/studenthub/pull/8) | RAILWAY_DOCKERFILE_PATH                | mysql.railway.internal                    |
 | Netlify          | Hosting/CDN  | Hosts static frontend portals (SPA routing)                             | staff portal, admin portal                    | [studenthub-staff/src/_redirects](https://github.com/BAWES-Universe/studenthub-staff/pull/12), [studenthub-staff/angular.json](https://github.com/BAWES-Universe/studenthub-staff/pull/13), [studenthub-admin/src/netlify.toml](https://github.com/BAWES-Universe/studenthub-admin/pull/10) | NODE_VERSION, NODE_OPTIONS             | N/A                                       |
-| Algolia          | Search       | Provides search indexing for backend data                               | backend                                       | [studenthub/docs/setup.md](https://github.com/BAWES-Universe/studenthub/blob/ca90a5502040ba8191fe9f80d29d0b6a4d2a6152/docs/setup.md#L5-L59)        | N/A                                   | N/A                                       |
+| Algolia          | Search       | Provides search indexing for backend data                               | backend                                       | [studenthub/docs/setup.md](https://github.com/BAWES-Universe/studenthub/blob/ca90a5502040ba8191fe9f80d29d0b6a4d2a6152/docs/setup.md#L5-L59)        | ALGOLIA_APP_ID, ALGOLIA_API_KEY       | N/A                                       |
 | Mixpanel         | Analytics    | Tracks user events and analytics                                        | backend, admin portal, frontend portals       | [studenthub/docs/analytics.md](https://github.com/BAWES-Universe/studenthub/blob/ca90a5502040ba8191fe9f80d29d0b6a4d2a6152/docs/analytics.md#L3-L41) | MIXPANEL_KEY (configurable in admin)   | N/A                                       |
 | Segment          | Analytics    | Aggregates analytics events and forwards to destinations                | backend, admin portal, frontend portals       | [studenthub/docs/analytics.md](https://github.com/BAWES-Universe/studenthub/blob/ca90a5502040ba8191fe9f80d29d0b6a4d2a6152/docs/analytics.md#L3-L41) | SEGMENT_KEY (configurable in admin)    | N/A                                       |
 | Puppeteer        | Other        | Headless browser automation for backend tasks                           | backend                                       | [studenthub/docs/setup.md](https://github.com/BAWES-Universe/studenthub/blob/ca90a5502040ba8191fe9f80d29d0b6a4d2a6152/docs/setup.md#L5-L59)        | N/A                                   | N/A                                       |
+| Google Maps      | Maps         | Geocoding and map lookups                                                | backend                                       | [studenthub/common/config/main.php](https://github.com/BAWES-Universe/studenthub/pull/74), [studenthub/docs/setup.md](https://github.com/BAWES-Universe/studenthub/pull/74)         | GOOGLE_MAPS_API_KEY                    | N/A                                       |
+| reCAPTCHA        | Security     | Bot protection and verification                                          | backend                                       | [studenthub/common/config/main.php](https://github.com/BAWES-Universe/studenthub/pull/74), [studenthub/docs/setup.md](https://github.com/BAWES-Universe/studenthub/pull/74)         | RECAPTCHA_SECRET_KEY, RECAPTCHA_SITE_KEY | N/A                                       |
+| Jira             | Support      | Issue tracking integration                                               | backend                                       | [studenthub/common/config/main.php](https://github.com/BAWES-Universe/studenthub/pull/74), [studenthub/docs/setup.md](https://github.com/BAWES-Universe/studenthub/pull/74)         | JIRA_URL, JIRA_EMAIL, JIRA_API_TOKEN   | bawes-studenthub.atlassian.net            |
+| IP Geolocation   | Other        | IP address geolocation lookups                                           | backend                                       | [studenthub/common/config/main.php](https://github.com/BAWES-Universe/studenthub/pull/74), [studenthub/docs/setup.md](https://github.com/BAWES-Universe/studenthub/pull/74)         | IPINFO_ACCESS_TOKEN                    | N/A                                       |
+| Slack            | Other        | Webhook notifications                                                    | backend                                       | [studenthub/common/config/main.php](https://github.com/BAWES-Universe/studenthub/pull/74), [studenthub/docs/setup.md](https://github.com/BAWES-Universe/studenthub/pull/74)         | SLACK_WEBHOOK_URL                      | hooks.slack.com                           |
 
 ## Hosting & Environments
 
@@ -27,5 +32,5 @@
 
 - No evidence was found for DNS/CDN/security services such as Cloudflare, Route53, or WAF. These may be configured outside of code, for example in AWS or Netlify dashboards. Check "AWS Route53 Hosted Zones" or "Netlify Site Settings → Domain Management" for DNS/CDN configuration.
 - No explicit deployment or hosting configuration was found for the candidate or company portals. Check "Netlify Site Settings", "Vercel Project Settings", or "AWS S3 Buckets" for these portals.
-- No evidence of authentication, email, SMS, payments, monitoring, maps, queue, media, or support services in code or configs. These may be configured in third-party dashboards or as environment variables not present in the repositories. Check "Environment Variable dashboards" in Netlify, Railway, or AWS, and review admin portal configuration screens for integrations.
+- No evidence of authentication, email, SMS, payments, monitoring, queue, or media services in code or configs. These may be configured in third-party dashboards or as environment variables not present in the repositories. Check "Environment Variable dashboards" in Netlify, Railway, or AWS, and review admin portal configuration screens for integrations.
 - Some environment variables and secrets are referenced only by name (e.g., in CircleCI contexts or Netlify build configs) and their actual values or usage may be managed in CI/CD or hosting dashboards. Check "CircleCI Contexts → org-global", "Netlify Site Settings → Environment Variables", and "Railway Variables" for full lists and values.

[Accept] [Edit] [Decline]

How did I do? Any feedback?  Join Discord

@digzrow-coder
Copy link
Copy Markdown
Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 14, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@digzrow-coder
Copy link
Copy Markdown
Author

Updated the demo video asset at the existing link to a 46-second dynamic verification recording. It now shows the changed scope, validation command output, and current green PR checks without exposing any secrets.

@digzrow-coder
Copy link
Copy Markdown
Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 15, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@digzrow-coder
Copy link
Copy Markdown
Author

Follow-up validation now that PHP is available in my local environment:

  • python scripts\check-thirdparty-key-hardening.py
  • php -l common\config\main.php
  • php -l common\config\params.php
  • git diff --check

All passed.

@digzrow-coder
Copy link
Copy Markdown
Author

Closing this duplicate same-bounty slice to keep the active indexed claim focused on #73. The #73 PR remains open with the current demo and refreshed validation evidence.

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.

3 participants