
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
@microfleet/plugin-consul
Advanced tools
Adds consul support to microfleet. This can be used to perform service discovery, leader election and other related tasks Read more about Consul at https://www.consul.io
yarn add @microfleet/plugin-consul
To make use of the plugin adjust microfleet configuration in the following way:
exports.plugins = [
...,
'consul',
...
]
/* this section is optional */
exports.consul = {
base: {
host?: string; // consul-agent host instance
port?: string; // consul-agent port
secure?: boolean; // https?
ca?: string[]; // custom CA
defaults?: { // used for all queries to consul
consistent?: boolean;
dc?: string;
stale?: boolean;
token?: string;
wait?: string;
wan?: boolean;
timeout?: number;
}
},
lock: {
key?: string; // defaults `microfleet/${config.name}/leader`,
session?: Object | string; // session settings
value?: string | Buffer; // arbitrary data
lockwaittime?: string;
lockretrytime?: string;
}
}
Microfleet Consul Plugin extends service interface with the following methods:
Initialized instance. Look at the docs here - https://www.npmjs.com/package/consul#documentation
Initialized leader election lock. Detailed docs here - https://www.npmjs.com/package/consul#lock
Use this to wait until current instance becomes a leader.
// will lock until instance is a leader
// or until service.close() is called
const isLeader = await service.whenLeader()
if (isLeader === true) {
... // means we've acquired leader
} else {
... // this means that instance is closing down
}
FAQs
hashicorp consul adapter
The npm package @microfleet/plugin-consul receives a total of 34 weekly downloads. As such, @microfleet/plugin-consul popularity was classified as not popular.
We found that @microfleet/plugin-consul demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.