Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
worksmith_etcd
Advanced tools
Etcd activities for worksmith
This package contains the following activities/tasks:
name | description |
---|---|
createClient | Creates an etcd client |
lock | Creates a distributed lock using etcd |
unlock | Releases a distributed lock created with the lock activity |
Creates an etcd client
name | type | description |
---|---|---|
hosts | array | Array of hosts |
var worksmith = require('worksmith')
worksmith.use('etcd', require('worksmith_etcd'))
var workflow = worksmith({task:"sequence", items : [{
task:'etcd/createClient',
hosts: ['localhost:4001']
resultTo: 'etcd'
}])
Creates a distributed lock using etcd
name | type | description |
---|---|---|
etcd | etcd client | The etcd client (if not specified expected to be in the context 'etcd' property) |
key | string | The etcd key to be used in the lock |
value | string | Optional value for the lock, defaults to a uuid |
ttl | integer | Optional time in secords before the lock automatically expires |
var worksmith = require('worksmith')
worksmith.use('etcd', require('worksmith_etcd'))
var workflow = worksmith({task:"sequence", items : [{
task:'etcd/createClient',
hosts: ['localhost:4001']
resultTo: 'etcd'
}, {
task:"etcd/lock",
key:"record_12345"
resultTo: "lock.value"
}])
Releases a distributed lock created with the lock activity
name | type | description |
---|---|---|
etcd | etcd client | The etcd client (if not specified expected to be in the context 'etcd' property) |
key | string | The etcd key to be used in the lock |
value | string | Optional value for the lock. If specified both the key and lock must match |
var worksmith = require('worksmith')
worksmith.use('etcd', require('worksmith_etcd'))
var workflow = worksmith({task:"sequence", items : [{
task:'etcd/createClient',
hosts: ['localhost:4001']
resultTo: 'etcd'
}, {
task:"etcd/unlock",
key:"record_12345"
}])
You need an etcd server running on localhost:4001 for the tests to pass. If you have docker and docker-compose installed simply run docker-compose up
in the route of this project, however watch out for this bug.
FAQs
Etcd activites for worksmith
The npm package worksmith_etcd receives a total of 0 weekly downloads. As such, worksmith_etcd popularity was classified as not popular.
We found that worksmith_etcd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
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.