eralpb

Joined 13 years ago

Karma
110
Submissions
42
Member since
Mar 10
@eralpbayraktar at Twitter
View on Hacker News

Recent submissions

Comment · 5 years ago
Hey everyone I want to share my personal and real-world experience about credential stuffing attacks. These are very hard to solve because fundamentally it's users fault, especially the ones with password-reuse habit. Nevertheless we responsible developers are the ones who should keep the internet safe, so feel free to chime in, evaluate my solutions and maybe we come up with "the" best practice against this type of attacks.

If there's interest I want to make this into a library and open source a django-specific solution as it's my everyday framework. The discussion applies to ALL web frameworks.

Comment · 6 years ago
If you don't like Medium's UX, find the article here: https://eralpbayraktar.com/blog/django/2020/caching-with-dja...

Hey everyone, I wanted to share some tips and insights about caching. I'm a firm believer caching is very important/effective but you have to be very careful and engineer-minded while designing it. It's a 7-minute read.

Some problems include serving stale objects or not having central logic to calculate cache efficiency. This part 1 is more like an introduction but I'm willing to share a very good library and middleware that will help you in 2 things. First is solving cache-related bugs, and second is measuring cache efficiency. Tune in for part 2 :)

Comment · 6 years ago
Hi! Normally when you rotate secret key, users are logged out, which is a big inconvenience if you have millions of users and might cost your business valuable users, and this pushes companies not to rotate keys, which is not the best practice..

that's why I wanted to make this process transparent to the user, I created a library "django-rotate-secret-key" which helps you rotate your secret key and still accept sessions with the old key for limited amount of time, and I explained how to use in this medium post.

obviously this is not something you want if your key is compromised, but if you want to rotate just as a best security practice this library is for you!

what I love about this library is, once you pass that window where you accept both keys, you can delete/revert everything so there is no residue with this solution! not a single line of code you need to maintain in the future.

Feedbacks welcome, thank you very much!

Comment · 7 years ago
looks amazing! keep it up
Comment · 7 years ago
great idea, which also warns about the websites it won't work on.

some require session authentication, so bot needs to login and THEN verify.

Comment · 7 years ago
Thanks for seeing the value, after releasing this I got to know some services require session authentication, so without your password (or cookies) the bot cannot verify.

I think this was a nice experiment and still usable for many services.

Comment · 7 years ago
you make a very good point, thanks for the warning.
Comment · 7 years ago
I will open source whenever I have time, I just did it last night and decided to share.
Comment · 7 years ago
For future awesomeness please follow @eralpbayraktar on Twitter :)

Thanks!

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton