Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
changefeed
Advanced tools
This repository is part of the Joyent Triton project. See the contribution guidelines -- Triton does not use GitHub PRs -- and general documentation at the main Triton project page.
SDC Changefeed provides support for publishing and listening to change feeds in Triton via Node.js libraries and a CLI.
$ npm install changefeed
Before committing be sure to, at least run:
$ make check # lint and style checks
$ make test # run tests
Simple tests (requires a running CoaL) can be run using:
$ make test
$ changefeedsnoop -h 127.0.0.1 -p 8080 -r vm -s nic,alias | bunyan --color
Publisher
var mod_bunyan = require('bunyan');
var mod_changefeed = require('changefeed');
var mod_restify = require('restify');
var options = {
backoff: {
maxTimeout: Infinity,
minTimeout: 10,
retries: Infinity
},
log: mod_bunyan.createLogger({
name: 'publisher_test',
level: process.env['LOG_LEVEL'] || 'trace',
stream: process.stderr
}),
maxAge: 2000,
moray: {
bucketName: 'pub_change_bucket',
host: '10.99.99.17',
resolvers: {
resolvers: ['10.99.99.11']
},
timeout: 200,
minTimeout: 1000,
maxTimeout: 2000,
port: 2020
}
restifyServer: server,
resources: resources
};
var publisher = mod_changefeed.createPublisher(options);
Listener
var mod_bunyan = require('bunyan');
var mod_changefeed = require('changefeed');
var options = {
backoff: {
maxTimeout: Infinity,
minTimeout: 10,
retries: Infinity
},
log: mod_bunyan.createLogger({
name: 'listener_test',
level: process.env['LOG_LEVEL'] || 'error',
stream: process.stderr
}),
url: 'http://localhost',
instance: 'uuid goes here',
service: 'tcns',
changeKind: {
resource: 'vm',
subResources: ['nic', 'alias']
}
};
var listener = mod_changefeed.createListener(options);
Detailed documentation is located at docs/index.md.
See RFD 0005 Triton Change Feed Support for current design and architecture decisions.
"node-sdc-changefeed" is licensed under the Mozilla Public License version 2.0. See the file LICENSE.
FAQs
Change Feed Modules
We found that changefeed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.