News for hackers. Stuff that matters.

joshuaavalon

Re:Use cookies and sessions (not JWTs) for authentication on Sunday January 15, 2023 @11:23PM (#34396781)
The difference between JWT and session is where the state is stored.

For session, you need a centralized backend to access the data stored in the session. For JWT, you only need to verify the signature of the token to trust the data stored in JWT.

JWT solves the problem of having multiple separated service that need to share data.

Re:Duck typing is safe (2020) on Wednesday June 15, 2022 @02:38AM (#31749820)
Things do break in production does not mean you don't take any measures to reduce the chance of happenings.

Following your logic, why should we test our code before deployment?

Everyone should push to master and deploy to production. Things will break anyway even if we tested our code.

Most of the services provide backup codes when you enable 2FA.

I don't think that's a huge problem.

Re:GitHub stale bot considered harmful on Tuesday October 26, 2021 @09:48AM (#29000326)
GitHub issues have labels. You can add "Resolved", "Won’t Resolve", "Paused" as you like.

Many large repositories use labels to show the state of the issue. You do not need to rely on open or closed.

There is a setting in URL of the password called "Match Detection"[1]. You can change it to "Host" if don't want it to match subdomain.

[1]: https://bitwarden.com/help/article/uri-match-detection/#matc...

Re:I mailed an AirTag and tracked its progress on Tuesday May 11, 2021 @09:08PM (#27125543)
I heard MKBHD said it only alert you alert you went home or workplace. Otherwise, it will keep alerting everyone on public transport.
If you want central authority, isn't it the job of CI?

Use CI to verify the commits fits the styles and review the commits before merging.

Re:Python programming is drowning in red tape on Wednesday April 15, 2020 @02:34AM (#22875172)
The problem for me is other people not using it. When I call another library, there is no type hint and the documentation is poor.

You can only read the code and guess the type yourself.