
Security News
Inside Lodash’s Security Reset and Maintenance Reboot
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.
@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 37 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
Lodash 4.17.23 marks a security reset, with maintainers rebuilding governance and infrastructure to support long-term, sustainable maintenance.

Security News
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.