Harden third-party integration key config#74
Conversation
|
Warning Rate limit exceeded
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 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 configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
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. |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
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. |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
Follow-up validation now that PHP is available in my local environment:
All passed. |
/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:
docs/setup.md.scripts/check-thirdparty-key-hardening.pyto 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..HEADTargeted search for the removed credential patterns in
common/config,docs, andscriptsreturned no matches outside the regression fragments used by the checker.PHP lint was not run locally because the
phpexecutable 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