Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
hapi-gitlab-webhooks
Advanced tools
A Hapi plugin for receiving requests from the GitLab webhooks API.
Github version here: hapi-github-webhooks.
An authentication strategy plugin for hapi for validating webhook requests from Gitlab. This strategy validates the payload with the signature sent with the request.
The 'gitlabwebhook'
scheme takes the following options:
secret
- (required) the token configured for the webhook (never share or commit this to your project!)1.1.X: compatible HAPI 17.x.x
1.0.X: compatible HAPI 16.x.x
var hapi = require('hapi');
var gitlabWebhooksPlugin = require('hapi-gitlab-webhooks');
var token = 'SomeUnsharedSecretToken';
var server = new hapi.Server({
host: host,
port: port
});
try {
await server.register(hapiGitlabWebhook)
} catch (err) {
throw err;
}
// Register gitlab webhook auth strategy
server.auth.strategy('gitlabwebhook', 'gitlabwebhook', { secret: token });
// Apply the strategy to the route that handles webhooks
server.route([
{
method: 'POST',
path: '/webhooks/gitlab',
config: {
auth: {
strategies: ['gitlabwebhook'],
payload: 'required'
}
},
handler: () => null
}
]);
FAQs
A Hapi plugin for receiving requests from the GitLab webhooks API.
The npm package hapi-gitlab-webhooks receives a total of 0 weekly downloads. As such, hapi-gitlab-webhooks popularity was classified as not popular.
We found that hapi-gitlab-webhooks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.