
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
https-server-proxy
Advanced tools
An https server proxy for node.js (supporting http2 and Express applications)
This is reverse-proxy meant to run at 'the front' of live web server. It will:
npm install https-reverse-proxy
Call proxy with the name of your certificate as the first argument and a mapping object between domains/subdomain-names and internal ports as your second argument. You can also choose to redirect one domain to another (see below).
const proxy = require('https-reverse-proxy');
proxy('some.domain.org' /*cert name*/, {
'some.domain.org': 3002,
'domain.com': 3003,
'www.domain.com': { redirect: "domain.com" }
});
(If you need to use several certificates then add another cert-name as argument 3, the mapping for domains in this certificate as argument 4 etc.)
There are some settings you change by calling proxy.settings(), see the default values below):
const proxy = require('https-reverse-proxy');
proxy.settings({
httpPort: 80,
httpsPort: 443,
pathToCerts: '/etc/letsencrypt/live',
xPoweredBy: 'Love'
});
proxy(/* see previous example */);
Note: The cert name is the name of a subfolder in the folder pathToCerts (default: /etc/letsencrypt/live). Each cert folder must contain the two files privkey.pem and fullchain.pem. This is the standard for LetsEncrypt certificates obtained using certbot. (If you have obtained a certificate with different file names for the pem-files, then rename them.)
FAQs
An https server proxy for node.js (supporting http2 and Express applications)
The npm package https-server-proxy receives a total of 17 weekly downloads. As such, https-server-proxy popularity was classified as not popular.
We found that https-server-proxy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.