
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@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 18 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 17 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.