patch

Heartbleed vulnerability and Stackato

Question: 

Is Stackato vulnerable to the Heartbleed bug? How can I patch Stackato?

Answer: 

Stackato is vulnerable to the Heartbleed bug. You can patch your system by running "kato patch install heartbleed-fix". This patch will install updated OpenSSL libraries on both the host VM and inside the container templates. Most apps won't need to be redeployed, but some may depending on the app and how SSL is used. We advise you test your app (see tools below) after applying the patch to determine if redeploying the app is necessary.

A patch is also available for Stackato 2.10.4 here:
https://get.stackato.com/patch/2.10/stackato-2.10.4-heartbleed.sh

If you have any questions please contact ActiveState support.

More info:

http://heartbleed.com/
http://filippo.io/Heartbleed/
https://gist.github.com/sh1n0b1/10100394
https://github.com/titanous/heartbleeder

Stackato 2.10.6 Ruby Security Patch

Question: 

I notice that ruby released a critical security update recently. Is stackato impacted by this?

Answer: 

Stackato is indeed affected by this. A patch has been generated and is available via 'kato patch'. As always this can be installed via 'kato patch status' followed by 'kato patch install.

Notes: This patch downloads a 50 MB tar file from our public download site, and will do so on every node in your cluster. This file will be removed once the patch is installed.

Additionally, this patch will restart EVERY role on EVERY node on your cluster as stackato makes significant use of ruby in a number of places. The outage shouldn't last more than a minute for each node though this might vary slightly depending on your IaaS solution.

Stackato 2.10.6 - Patching Linux on a Stackato VM

Question: 

How do I ensure that my Stackato nodes are running the latest patches released for Ubuntu?

Answer: 

Stackato 2.10.6 supports the use of the standard Ubuntu "apt-get" patching tools. Critical Stackato components are protected by pinning the affected packages, so users are able to run
'sudo apt-get update&&sudo apt-get dist-upgrade'
from a terminal window (ssh) to patch the base VM. Each VM will need to be patched separately.

Pinning packages means that apt-get is unlikely to result in a reboot being needed, however, it is still good practice to check the content of the recommended patches. Planning for the use of maintenance mode, with a contingency of a controlled reboot if appropriate, is strongly recommended.

Pinned packages can only be updated by upgrading to a newer version of Stackato. To see a list of pinned packages, execute 'sudo apt-mark showhold'.

After patching the base VM, the template for generating new LXC containers should also be patched. See the FAQ for patching the templates:
http://community.activestate.com/node/10406

While it is possible to 'stackato ssh' into a running container and patch it if you have sudo enabled for that container, we do not recommend this. Patching the template, spinning up new containers, and dropping the old container will give more consistent results over the long term.

Stackato 2.10.X NodeJS security fix v0.10.21

Question: 

I saw that NodeJS recently released a critical security patch. Is Stackato effected by this as it uses nodejs for the router component?

Answer: 

Yes, this vulnerability does impact Stackato. We have already generated a patch which will replace the existing Node version with their updated version.

###2.10.4
You can download the patch at http://get.stackato.com/patch/2.10/stackato-2.10.4-nodejs-security-fix.sh. This patch will need to be applied to any nodes running the 'router' role as well as your core role (which acts as a router). The patch can be applied via 'sh stackato-2.10.4-nodejs-security-fix.sh'. After applying this patch you should restart your router role by executing 'kato restart router'.

###2.10.6
This patch is available for 2.10.6 through the kato patch command. You will need to update your manifest via 'kato patch status', and you can install the patch after doing that by executing 'kato patch install'. This patch will require a sudo password, and you should note that it will restart your router.

Stackato 2.10.X Security Fix - container sudo fix

Question: 

Any recent security patches for Stackato?

Answer: 

We've generated a second patch that needs to be applied on top of the initial apt-get-wrapper patch to fix an issue that this was causing with unprivileged users in containers.

###2.10.4

First step is to install everything at http://community.activestate.com/node/10157. This will include http://get.stackato.com/patch/2.10/stackato-2.10.4-apt-get-wrapper.sh, which has an issue as described above. This can be corrected with the patch downloaded at http://get.stackato.com/patch/2.10/stackato-2.10.4-apt-get-wrapper-fix.sh. Patch instructions are to upload the patch to all nodes running 'DEA' or 'Stager' in your cluster and execute via 'sh stackato-2.10.4-apt-get-wrapper-fix.sh'. Upon doing this you should restart your stager and/or dea roles. Any future applications deployed will have this fix enabled.

###2.10.6

This patch is available via the kato patch command and can be installed by executing 'kato patch update' followed by 'kato patch install'.

Stackato 2.10.6 - Patching the LXC container template

Question: 

When Ubuntu patches are issued, how do I apply those updates to the template used to create new LXC containers?

Answer: 

We have a script to assist with this.

http://get.stackato.com/patch/upgrade-container.tar.gz

The tarfile contains the script and Installation instructions. It will need to be run on each node running a DEA or a Stager at any time that you would like to apply updates*. This should be done interactively from the command line, so that you can monitor the progress.

New containers launched after our script is run will have the updates applied. Containers started before the updates were applied will not be altered, but you can migrate running droplets to updated containers on other DEAs. See this FAQ for a more detailed description of moving apps.
http://community.activestate.com/node/10219

*Note that the actual updates that will be installed are provided by the Ubuntu community, and what you install when you run our script will depend on what is available, and what you have already installed.

Stackato 2.10.X MongoDB Client version in containers is outdated

Question: 

I've noticed that the version of MongoDB client that gets deployed to Stackato containers used by 'stackato dbshell' is 2.0.4. Is there any way to update this?

Answer: 

We've created a patch for 2.10.4 and 2.10.6 to update the MongoDB client in the container to 2.4.1. Instructions to follow

##2.10.4
You can download the patch from http://get.stackato.com/patch/2.10/stackato-2.10.4-mongodb-client-versio.... You'll need to copy it to the node you have running the MongoDB role. Once you've uploaded the patch you can install it via 'sh stackato-2.10.4-mongodb-client-version.sh'. This patch does not require a restart of any roles. Note that this will not update the client version in any already-running mongodb services. These will need to be redeployed.

##2.10.6
This patch is available via kato patch. You will need to update your patch manifest via 'kato patch status'. Once you've updated the manifest you can install the patch to all of your nodes via 'kato patch install'. You will be prompted for sudo passwords for your nodes.

Stackato 2.10.x Router does not reconnect to doozer when it loses connection

Question: 

I've noticed that when my routers can't connect to the primary/doozer node for more than a few seconds, they give up and enter a 'starting' state. Is there anything that can be done about this?

Answer: 

We've generated a patch that adds some reconnection logic to the router role. The patch is available for both 2.10.4 and 2.10.6, with instructions to follow.

###2.10.4
You can download this patch from http://get.stackato.com/patch/2.10/stackato-2.10.4-router-reconnect.sh. You'll want to upload it to every node in your cluster running the router role (Including the router on your primary node, for consistency). After you've uploaded the patch, open a terminal session to each of your nodes and execute 'sh stackato-2.10.4-router-reconnect.sh'. Once the patch has been applied you'll need to restart your router role via 'kato restart router'. If you've only got one router in your cluster this will interrupt access to/within your cluster for a few moments. If you have redundant routers this should not be a problem. NOTE: This patch touches the same file as http://community.activestate.com/node/9948, which must be installed first.

###2.10.6
This patch is available via kato patch. You will need to open a terminal session to a node in your cluster and execute 'kato patch update' to download the latest manifest. Once you've done this you can install the patch via 'kato patch install'. This will deploy and install the patch to every node in your cluster, and restart the 'router' role where appropriate. Note that if you have one router in your cluster this will interrupt access to/within your cluster for a few moments while the role restarts.

Stackato 2.10.X Logyard not destroying all tcp connections when it is closed

Question: 

I've noticed that when I close a drain, logyard does not tear down all of its connections and leaves one running. I'm worried about hitting my system ulimit, is there anything that can be done about this?

Answer: 

This is a bug with logyard. We've created a new binary that will correct the issue and tear down all of your tcp connections properly. This can be patched in to your stackato system via the following instructions

###2.10.4
You can download your patch from http://get.stackato.com/patch/2.10/stackato-2.10.4-logyard-connection.sh. You should upload this patch to all nodes. The patch can be installed via 'sh stackato-2.10.4-logyard-connection.sh'. Note that this patch will restart several logyard related processes, so you should expect to see some traffic in your cloud events in the admin console. After you run this patch you should not need to restart anything else.

###2.10.6
This patch can be installed via the kato patch command from a terminal session. After accessing one of your nodes in a terminal session, execute 'kato patch status' to update your machine with the most recent patch manifest. After you've done this, execute 'kato patch install'. This will kick off the patch install process on all of your nodes (you'll be prompted for sudo passwords, and also ssh passwords if you haven't set up passwordless authentication between the node you're running the command on and the rest of your cluster). Note that this patch will restart several logyard related processes, so you should expect to see some traffic in your cloud events in the admin console.

Stackato 2.10.X-Security: Disable SSLv2 in Stackato

Question: 

I've noticed stackato allows communication via SSLv2 and I have some concerns about how secure that is. Is there any way to disable SSLv2?

Answer: 

We're aware of security concerns related to SSLv2, as discussed in http://en.wikipedia.org/wiki/Secure_Sockets_Layer#Security. To this end we've created a patch for stackato that replaces a package used by our routers and disables SSLv2.

##2.10.4
2.10.4 users can download this patch from http://get.stackato.com/patch/2.10/stackato-2.10.4-sslv2-disable.sh. This patch should be applied to (at least) all of the routers in the cluster. After uploading the patch to the affected nodes, install it via 'sh stackato-2.10.4-sslv2-disable.sh'.

After installing this patch, the router role will need to be restarted via 'kato restart router'. This will result in a brief interruption to router services, which will interrupt communication to your cluster for several seconds if your cluster has one router only.

*IMPORTANT NOTE* Edited in October 18, 2013: Due to a security fix with NodeJS, we've created basically a newer binary for this component. More information at http://community.activestate.com/node/10409, but you should note that this patch does not need to be installed anymore, and the patch in the above link will provide this functionality as well as providing a security fix. If you have already installed this patch, please install the patch linked above as well as it will overwrite the binary created here.

##2.10.6
This patch can be installed via kato patch. Execute 'kato patch update' to download the most recent list of patches. After this is finished, execute 'kato patch install' to install all patches. This will restart the router role on any node running that role, which will result in an interruption of service for several seconds if your cluster has one router only.