Minsk, Belarus 🇧🇾 ⟶ Warsaw, Poland 🇵🇱
Minsk, Belarus 🇧🇾 ⟶ Warsaw, Poland 🇵🇱
nginx-ingress upgraded to 0.10.0 (nginx’ version is 1.21.1)
cert-manager upgraded to 1.4.1
service_accounts parameter for k8s/basic module in order to configure annotations for service accounts. It is useful for AWS’ managed cluster in order to link service accounts with IAM roles and policies.The story started when a colleague of mine asked about a weird error he got from Rails:
ActionDispatch::RemoteIp::Ip
SpoofAttackError: IP
spoofing attack?!
When I tried to help I learned how does Rails (in fact, Rack) “calculate” client’s IP. The problem is that our app might sit behind a number of proxy servers managed by us and by other people. I learned that there is an algorithm in HTTP protocol to get trusted client IP in those cases.
Lightning talk from Minsk.rb 17 (in Russian):
Here is my notes from EuRuKo’19.

P.S. We found a karaoke bar in Rotterdam for the afterparty :-).
While going from Amsterdam to Rotterdam quickly visited The Hague just for one day.

The Hague beach.
A lightning talk on Minsk.rb on how to show examples of your code when you apply for a job (in Russian).
Quick summary:
Photos by Andrey Davydchik.
Рассказал на Minsk.rb русскую версию моего доклада Growing Rails Apps.
I made a Lightning Talk on RubyRussia 2018 about namespaces and how to properly namespace models and controllers to make codebase more readable.
We have everything to write Rails app from scratch very fast. But development becomes slower and slower over time. And Rails itself doesn’t promote patterns to write bigger apps efficiently.
There are common problems in big rails apps like tons of files in app/models, hundreds of lines of code in controllers. And there are ways and patterns to mitigate this and I’m showing them.
Slides: growing-rails-apps.pdf (on Speaker Deck).
Developers nowadays tend to blame Rails and DHH because they encourage bad practices that lead to a bad code. This is true but there are many good things in Rails we rarely use that help us to write good maintainable code. I show bad examples in popular opensource projects and show you features of Rails that can be used to avoid their mistakes.

Photo by Taras Bovt.
Slides: rails-the-good-parts.pdf (on Speaker Deck).