mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] dw_dev2020-04-20 11:03 pm
Entry tags:

Code tour: 2020 Q1 edition!

Continuing on from the last code tour!

Hi all, some changes coming your way -- figured I'd make the noise!

  • Fix Summertime horizontal growth (pull request 2613) by [personal profile] roadrunnertwice

    Fix an issue in the Summertime style, where sometimes it would grow sideways in an infinite and disgusting fashion. Fixed.

  • Fix cut tags sometimes going backwards (pull request 2614) by [personal profile] roadrunnertwice

    Fix an issue that, in rare circumstances, caused cut tags to expand backwards. And by that I mean that you would click the cut and suddenly be looking at the end of the story, wondering how you got there. Wat.

  • Fix Crossposter formatting to be less wild (pull request 2616) by [personal profile] roadrunnertwice

    As part of the improvements we've made to Markdown in the last few months (see the previous code tour!), we took a backwards step in terms of the Crossposter and accidentally made it spit out some ... less than good ... output.

    This PR not only fixes that, but improves the flow of the system so that the Crossposter behaves in a much more sane fashion when it comes to formatting the post being sent out. The result of this is that even if we add new formatting and fun stuff to Dreamwidth, it should always work wherever the post ends up! Nice!

  • Remove MD5 password hashing hack (pull request 2619) by [personal profile] momijizukamori

    MD5 has not been hot technology in a good decade, but at one point in our long, storied existence we couldn't rely on browsers and servers being capable of secure connections (HTTPS). Since we had to (gasp!) sometimes send traffic in an unencrypted fashion, we had this ancient hack that would use MD5 to hash your password locally before sending it over the wire.

    That was cool in 2001, but in 2020, not only has MD5 been so laughably broken for so long that you might as well not even use it, but every browser and all pages on Dreamwidth force you to use encryption. We never send anything unencrypted, so this hack is no longer necessary.

    Deleted with passion by the fearless [personal profile] momijizukamori.

  • Modernize password storage (pull request 2621) by [personal profile] momijizukamori and [staff profile] mark (and h/t [personal profile] me_and [personal profile] kaberett)

    As part of modernizing our systems to be vaguely with the times, this change updates how we store your authentication information in the database. Once this is deployed, passwords will no longer be stored -- instead, we will use bcrypt (with random salts) as is considered best-in-class for storing authentication credentials.

    We need to do some testing on this to ensure we don't break any of the authentication flows on Dreamwidth (there are so many!), but once that's done we can finally say we comply with modern best practices for how to securely store user credentials.

    Also a big hat tip to [personal profile] me_and for writing the original proposal (which I can't find now... argh) and [personal profile] kaberett for pushing on this :)

  • Support development with TaskQueue (pull request 2622) by [staff profile] mark

    Recently we moved off of using MogileFS in many places, which was one of the old systems we used back before... there were better things. Recently we moved over to SQS, a queueing service. That's cool, but there wasn't a way to run the new system "locally" (i.e., in development) unless you were willing to set up an SQS account.

    That's not ideal, so this change makes it so developers can interact with our task queue system without doing that. It will magically just work using your local disk and butter your bread.

Cool beans, that's what I've got for now! Bye bye!

havocthecat: the lady of shalott (Default)

[personal profile] havocthecat 2020-04-21 02:59 pm (UTC)(link)
Thank you for all the work everyone has put into this! As not-a-programmer, I also appreciate that it was made reasonably understandable for people like me.