
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@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 10 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.