Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
Security Linux

How IKEA Patched Shellshock 154

jones_supa writes: Magnus Glantz, IT manager at IKEA, revealed that the Swedish furniture retailer has more than 3,500 Red Hat Enterprise Linux servers. With Shellshock, every single one of those servers needed to be patched to limit the risk of exploitation. So how did IKEA patch all those servers? Glantz showed a simple one-line Linux command and then jokingly walked away from the podium stating "That's it, thanks for coming." On a more serious note, he said that it took approximately two and half hours to upgrade their infrastructure to defend against Shellshock. The key was having a consistent approach to system management, which begins with a well-defined Standard Operating Environment (SOE). Additionally, Glantz has defined a lifecycle management plan that describes the lifecycle of how Linux will be used at Ikea for the next seven years.
This discussion has been archived. No new comments can be posted.

How IKEA Patched Shellshock

Comments Filter:
  • by Anonymous Coward

    I imagine it was sudo rm -rf /, but I could be way off.

    • yum update -y && reboot

      • by hawguy ( 1600213 ) on Monday June 29, 2015 @09:21PM (#50016247)

        yum update -y && reboot

        You're going to type that on 3500 servers?

        I think you'll want to use your configuration management platform to kick off the update. That's how we did it -- applied the update to the dev servers, did some testing, then the same to qa, then preprod, then finally to the production servers. Took us more than 2.5 hours to test and validate everywhere, but actually pushing out the patch to 1200 servers was a single line command.

        • by Trogre ( 513942 )

          Well I'd wrap it in a loop of some kind:

          for host in `cat /dev/storage/admin/servers.dat`; do ssh root@$host "yum update -y && reboot"; done

          • by hawguy ( 1600213 )

            Well I'd wrap it in a loop of some kind:

            for host in `cat /dev/storage/admin/servers.dat`; do ssh root@$host "yum update -y && reboot"; done

            You're going to watch the output for 1000+ servers to see which ones failed?

          • by cinky ( 2632165 )
            And how will you handle output from those servers? random errors? or will you just fire it up and hope for the best? I'd suggest using puppet or some similar configuration management tool...
          • pdsh FTW

        • Why not do it the way our ancestors did it? :P

          for i in $(cat ips.txt); do
          XXXXXXXXX
          done;

          • by TCM ( 130219 )

            You mean in an amateurish way that can overload shell buffers?

            Try

            while read i; do ...; done < ips.txt

            or

            xargs ... < ips.txt

        • by pmgst17 ( 524425 ) on Monday June 29, 2015 @09:59PM (#50016405)
          The article says they're using a Red Hat Satellite server and so if they wanted to run `yum update -y && init 6` on all of their systems, they could just push that out as a remote command to the systems / groups of systems. In Satellite, you can push out remote commands to groups of systems, so if they have their systems grouped, it would be an easy process to push that command to all of their systems.
        • by lucm ( 889690 )

          this is why God invented Ansible.

          • by rossz ( 67331 )

            We're currently evaluating Ansible. I expect us to make the switch permanently as part of our move to docker containers. Currently, our puppet manifests are unwieldy and a biatch to maintain.

        • by Jupix ( 916634 )

          If you don't mind my asking, what's the difference between QA and preprod for you?

        • by paradxum ( 67051 )
          ok fine... try:

          for i in {1..3500}; do ssh server$i yum update -y; ssh server$i reboot; done

          better?
      • by ArcherB ( 796902 )

        yum update -y && reboot

        Actually, it kicked off a bash script that consisted of 100,000 commands that took a team of programmers six months to write and debug. But to him, management, it was just a single command that he typed in and took all the credit.

        (it's a joke people)

  • Let's save ourselves from unnecessary clickbait.

  • They were only able to do it because they already had an affordable, high quality krampfor on hand. The whole thing would have fallen apart if not for that.
  • by PopeRatzo ( 965947 ) on Monday June 29, 2015 @09:56PM (#50016391) Journal

    The moment would have been perfect if he'd just dropped the mic.

  • by account_deleted ( 4530225 ) on Monday June 29, 2015 @10:08PM (#50016443)
    Comment removed based on user account deletion
    • by Shinobi ( 19308 ) on Tuesday June 30, 2015 @04:12AM (#50017369)

      If you have troubles putting together IKEA furniture, I imagine Duplo LEGO would be out of your league too...

      • Well got the joy of putting together an IKEA loft bed without instructions. The model isn't sold anymore, I couldn't find the instructions online, and to add further insult to injury I didn't even have a picture of what is was suppose to look like. I did get it together correctly but it took longer than it should have, especially since I was initially told it was a bunk bed. The lesson I learned from that was don't let the wife buy stuff from her friends that I will have to deal with.
    • Comment removed based on user account deletion
    • Sooo... you're a software developer, right?
  • So he is using some sort of configuration management. I modified and tested a puppet manifest and then deployed to to our production puppet server. Over the next 30 minutes I had updated over 1000 machines.
    • Shellshock took less than 4 hours to fix across 20k hardware boxes and many many vm's. Most of that was testing the puppet manifest.

  • by Tablizer ( 95088 ) on Monday June 29, 2015 @10:56PM (#50016581) Journal

    How IKEA Patched Shellshock

    By making the customers do most of it themselves.

  • In other news (Score:5, Insightful)

    by belthize ( 990217 ) on Monday June 29, 2015 @10:56PM (#50016587)

    Man holding hammer demonstrates ease of driving a nail into wood. Thousands holding screwdrivers are amazed.

  • by Anonymous Coward

    was is "chsh -s dash www_data"?

  • Comment removed based on user account deletion
  • OMG, IKEA uses RH enterprise support for managing their servers... Slash *used* to be news for nerds. I have used scripts, after that RunDeck and now Ansible + Debian. And they do not need a subscription and better yet, are *distribution agnostic*.
    • OMG, IKEA uses RH enterprise support for managing their servers... Slash *used* to be news for nerds. I have used scripts, after that RunDeck and now Ansible + Debian. And they do not need a subscription and better yet, are *distribution agnostic*.

      Do you manage 3500 servers for a company with $32.65 billion in revenue?

      • by ruir ( 2709173 )
        Have you ever seen a devop presentation from facebook or better yet twitter techs? This piece of infomercial is rubbish.
  • # find /placewithtaxes -iregex ".*\(money\|geld\|argent\).*" -exec mv '{}' /offshore \;

  • If the heyday of Y2K remediation, I helped set up a push of a SOE to 275,000 distributed PCs in a weekend. It went off without a hitch. Management was happy, but the cries of thousands of employees who lost all their personal files and documents were ignored.

    If you are willing to be heavy handed and brutal, you can accomplish miracles. Surely there is no news in that.

  • "The key was having a consistent approach to system management, which begins with a well-defined Standard Operating Environment (SOE). Additionally, Glantz has defined a lifecycle management plan that describes the lifecycle of how Linux will be used at Ikea for the next seven years."

    And why I regard DevOps as a disaster in the making. While "DevOps" isn't bad for small companies, like ones I've worked for, where you 'wear many hats' or a rapidly moving R and D environment it is very dangerous in a real pro

  • Go to satellite, click on errata, set it to update. If you have it set up for communications Ikea would probably have been done in a half hour at the most. Otherwise, when they check in. Up to 4 hours later.

    What's the big deal?

  • That article in the link is one of the worst I have ever read. No details are given about how they patched their systems. I'm assuming (like others) that they used "yum" to install the update. But no details are given about exactly what they did or how they handled it. Don't waste your time with the link.

Never test for an error condition you don't know how to handle. -- Steinbach

Working...