
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@super-protocol/tunnels-lib
Advanced tools
Library with Tunnel Server and Tunnel Client for secure distributed connection with SGX
Connecting custom local server to Tunnel Server. Example of usage:
const fs = require('node:fs');
const { TunnelClient } = require('@super-protocol/tunnels-lib');
const pino = require('pino');
const serverFile = __dirname + '/server.js';
const domainConfigs = [
{
trustedTunnelServers: [
{
algo: "sha256",
hash: "d60d874e28cf606210c4ea472677565041096001918e7bc66bb0beb2090d547",
encoding: "hex",
},
],
authToken: 'b97e4be4-6546-43a1-85d9-fa28a447dd07',
site: {
key: fs.readFileSync('private.pem'),
cert: fs.readFileSync('ssl_fullchain.crt'),
},
},
];
const logger = pino({ level: 'trace' });
const options = { logger };
const tunnelClient = new TunnelClient(serverFile, domainConfigs, options);
tunnelClient.run().catch((error) => {
logger.fatal({ error }, `Fail to start Tunnel Client`);
});
Tunnel Client properties:
options
. This file will be run from NodeJS worker*threads. Tunnel Client will path HTTPS_PORT env variable that equals "applicationPort" property from options
. Also it will pass TLS_CERT and TLS_KEY env variables that should be used to start https server. It's important to note that this certificate is not obtained from the domainConfigspino
logger. pino
is a peer dependency of the library. Default: undefinedconst { isMainThread, parentPort } = require('node:worker_threads');
if(!isMainThread) {
parentPort.on('message', (message) => {
if(['SIGTERM', 'SIGINT', 'SIGABRT'].includes(message)) {
...
shutdownHandler();
...
}
})
}
FAQs
Library with Tunnel Server and Tunnel Client for secure distributed connection with SGX
The npm package @super-protocol/tunnels-lib receives a total of 233 weekly downloads. As such, @super-protocol/tunnels-lib popularity was classified as not popular.
We found that @super-protocol/tunnels-lib demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.