Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
hapi-lbstatus
Advanced tools
Shared code for the _lbstatus
endpoint. Essentially a poor-man's service discovery, will be used until the front-door service is ready.
Reads the specified file and looks for the value 'ON' or 'OFF' and returns ON or OFF from the endpoint.
If the file is missing, or empty, or an exception occurs, then default value is OFF.
Also performs a liveness check by injecting a request to a specified endpoint (using server.inject). If the response is an error (or times out) it returns "OFF".
Installation:
npm install hapi-lbsstatus
Usage:
var server = hapi.createServer();
server.pack.require("hapi-lbstatus",
{
file: '/etc/lbstatus/myappname',
liveness: '/my/api/123',
headers: {
// optional headers to apply when making the liveness check
'accept-language': 'en-US'
},
on: "MYAPP_ON", // override the default return value of 'ON'
off: "MYAPP_OFF" // override the default return value of 'OFF'
},
function (err){
if(err){
throw err;
}
}
);
Notes:
FAQs
lbstatus plugin for hapi
The npm package hapi-lbstatus receives a total of 4 weekly downloads. As such, hapi-lbstatus popularity was classified as not popular.
We found that hapi-lbstatus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.