Add HTTPS health, admin VPS console, tips manager, deployment hardening, and misc housekeeping - #82
Conversation
|
CodeAnt AI is reviewing your PR. Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
Warning Rate limit exceeded
⌛ 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. 📒 Files selected for processing (2)
✨ 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 |
Nitpicks 🔍
|
|
CodeAnt AI finished reviewing your PR. |
User description
Motivation
Description
WEBAPP_HMAC_KEYto.env.exampleand switched Mini App init-data verification to use the configured HMAC key inindex.js(verifyWebAppInitData).validateSafePath) and switched file reads/writes to validated/data-dir paths; added atomic writes for JSON stores and helpful-messages persistence.HTTPS_KEY_PATH/HTTPS_CERT_PATHare configured and addedrequestHealthPayload()helper used by admin health checks./sshv) with per-admin session persistence, editor mode, command execution controls, confirmation and blocking rules, session GC, and NDJSON session export (sshv-sessions.json) inindex.js.data/helpful_messages.json.replaceCallbackPanel), added announcement composer flow, promo claim flow refactoring, and various safety checks.prod-run.sh: create service user if missing, lock down.env, create runtime dirs/files, health URL resolution (HTTP/HTTPS), port-listener checks and auto-free on conflicts, wait-for-health probes, improved systemd unit generation, logrotate updates, file ownership/permissions handling and runtime prechecks.runewager.servicetemplate to userunewageruser, restrict filesystem and tighten privileges.scripts/self-diagnose.shto capture a consistent snapshot and added more checks (service, network, releases, logs) and improved reporting.LICENSE(MIT),SECURITY.md, updatedREADME.md(deployment and health docs), removedDockerfile, and adjusted.gitignore.Testing
CI=true(startup paths exercised without runtime exit); no startup exceptions observed.scripts/self-diagnose.shto validate runtime-facing checks and file/service inspections; the script completed and produced a snapshot report.npm ci --omit=devas part of deploy flow to validate dependency installation (successful).Codex Task
CodeAnt-AI Description
Add "I Have Claimed — Next Step" promo action; harden deployment, health checks, and diagnostics
What Changed
Impact
✅ Clearer promo onboarding flow and next-step prompts✅ Health checks use HTTPS when certs are present and auto-recover from port conflicts✅ Safer production deployments with locked secrets and non-root service runtime💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.