Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
carpenterd-worker
Advanced tools
The carpenterd
worker process for executing builds.
npm install carpenterd-worker --save
const carpenterd = require('carpenterd-worker');
const app = new Map();
// Select the directory that contains a `config` directory so that `slay-config`
// works appropriately
app.rootDir = require('path').join(__dirname);
carpenterd(app)
.start(carpenterd.worker);
carpenterd-worker
is responsible for receiving job messages from carpenterd
, fetching the fully built npm
tarball from a place like amazon s3, execute thewebpack
/browserify
/babel
build using workers-factory
.
nsq
for job distribution to all the workers in given cluster.carpenterd
.cassandra
cluster that is storing the warehouse.ai
system data.See the example config config.example.json
in this repo.
notes
nsq
config option is for a fork of nsq.js
that has kubernetes support but otherwise has the same options.
statusTopic
for setting the nsq topic that should be written to for status updates.assets.prefix
in the config is the bucket name for where the public CDN assets are uploaded.http
is the http port the healhcheck listens on.npm-tars
the npm tarball bucket to fetch from.datastar
the configuration for cassandra that gets passed directly to datastar
.Carpenterd-worker supports posting messages to the [warehouse.ai] status-api via NSQ. It will post messages to the nsq topic configured at:
{
// ...other configuration
"nsq": {
"statusTopic": "an-nsq-topic", // topic that you choose for the status-api to consume
// ...other nsq setup
},
// ...other configuration
}
The NSQ payloads will be object that take the form:
{
eventType: "event|error|complete", // The type of status event that occurred
name: "package-name",
env: "dev", // The environment that is being built
version: "1.2.3", // The version of the build
locale: "en-US", // (Optional) The locale that is being built
buildType: "webpack", // The type of the build (typically just webpack)
message: "Description of what happened"
}
In the status-api NSQ payload there is a field called eventType
. The possible values that carpenterd-worker will send are:
event
- Used for interim statuses that a user might care about, but doesn't affect/progress the overall build statuscomplete
- Used to indicate that the build is completederror
- Used to indicate that carpenterd-worker
encountered an error and wasn't able to complete the buildFAQs
Receives and runs builds received from nsqd
The npm package carpenterd-worker receives a total of 7 weekly downloads. As such, carpenterd-worker popularity was classified as not popular.
We found that carpenterd-worker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 16 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.