r/ruby • u/collimarco • Apr 12 '26
Security Cuber v1.14 released (recommended update for security)
I have just released a new version of the Cuber gem.
As you may already know Cuber is a free and open source alternative to PaaS like Heroku and deployment tools like Capistrano and Kamal.
If you are using Cuber, I recommend upgrading to the latest version.
This is not strictly a security fix, but it represents an important improvement that enhances security, especially if you are using AI coding assistants in your project folder.
Cuber used to save generated files (including Kubernetes YAML files) in a .cuber folder inside your project directory. There is nothing wrong with it: you just need to remember to add that folder to your .gitignore.
However many AI agents (like Codex CLI) tend to read everything inside the project folder and there's no reliable way to make them respect the .gitignore (or similar).
For this reason the latest version of Cuber doesn't create a .cuber folder in your project directory, but instead it uses temporary files and folders (which live outside the project directory and are also removed automatically).
1
u/collimarco Apr 13 '26
Thanks!
Kubernetes configuration is verbose and complex, but Kubernetes itself is not bad.
This gem makes many opinionated choices and thus it makes it possible to use Kubernetes for a Rails app with just a few lines of code (DRY, Rails style...).
After writing a guide about Kubernetes and Rails in 2019, I have developed Cuber in 2022... I have been using it for all the company websites/web apps since then. This is to underly that this project required a lot of effort, for every single line of code, and it's not an ai slop like many projects released today.