What are domains? How restify uses domains People have been having problems using Promises with restify And people have been having problems with Promises and domains in node for a long time Maybe it will be resolved in node v8.x In the meantime, one “solution” (a/k/a work-around, a/k/a hack) is to swap out the native Promise… Continue reading The Problem with Promises and Domains
Tag: node
So You Want To Keep Your Cookies Secure
At Social Tables, we have this Koa app that needs to read and set a session cookie. We don’t want to send that cookie over an unencrypted connection, though. We use koa-generic-session for session management. That library uses the cookies library under-the-hood, and luckily, there’s a simple configuration option to avoid sending cookies over an… Continue reading So You Want To Keep Your Cookies Secure
Link Dump – Node.js Security
A Malicious Module on npm The npm Meltdown Uncovers Serious Security Risks Package install scripts vulnerability Is Guy Fieri in Your Node.js Packages? Controlling the Node.js security risk of npm dependencies One easy way to inject malicious code in any Node.js application
Making the Correct Insanely Difficult
tl;dr If you’re trying to configure nginx on Elastic Beanstalk to redirect http requests to https, here’s what I learned. During deployment, the nginx configuration for your app is located at this file path: /tmp/deployment/config/#etc#nginx#conf.d#00_elastic_beanstalk_proxy.conf via Using a container command, you can edit that nginx configuration file right before it gets deployed. I used a… Continue reading Making the Correct Insanely Difficult
So you want to move your Homebrew folder
By default, Homebrew gets installed under /usr/local. This is great, because it doesn’t require you to use sudo to install and upgrade packages. But the downside is that it turns your /usr/local directory into a git repository. If you don’t have any conflict with this, then by all means, stick with the default. I had… Continue reading So you want to move your Homebrew folder