Archives: FAQs

Q: What are the security considerations in this deployment?

 A: Some include: using SSH via keys rather than weak password auth, ensuring only necessary ports are open, handling secrets (e.g. in GitHub Actions), and likely using least privilege access. The blog mentions they used password auth but plan to look at SSH key auth for better security.

Q: How are GitHub Actions used in this flow?

 A: The blog shows using GitHub Actions CI/CD pipelines so that when code is pushed to main (or PRs), Docker image is built, then deployed to the EC2 instance via SSH (or similar). This automates shipping new versions.

Q: What is Rocket in Rust, and why use it for REST APIs?

A: Rocket is a web framework for Rust that makes creating REST endpoints more ergonomic. The tutorial uses it to build a REST API and then deploys that API reliably. Using Rust + Rocket ensures performance, type safety, and minimal overhead.

Back To Top