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.
koatty_apollo
Advanced tools
Apollo Plugin for Koatty.
npm i koatty_apollo
1、项目中增加plugin
koatty plugin apollo;
2、修改 plugin/ApolloPlugin.ts:
import { Koatty, Plugin, IPlugin } from "koatty";
import Apollo from "koatty_apollo";
@Plugin()
export class ApolloPlugin implements IPlugin {
run(options: any, app: Koatty) {
return Apollo(options, app);
}
}
3、项目plugin配置 config/plugin.ts:
list: ["ApolloPlugin"], //加载的插件列表,执行顺序按照数组元素顺序
config: { //插件配置
...,
ApolloPlugin: {
host: 'http://127.0.0.1:8080', //your-config-server-url
appId: 'test', //your-config-appId
clusterName: 'default', //cluster-name
namespace: 'application', //your-config-namespace
enableUpdateNotification: true, // boolean=true set to false to disable update notification.
enableFetch: true, //boolean=false set to true to enable the feature
fetchTimeout: 30000, // number=30000 timeout in milliseconds before the initial fetch or interval fetch result in an FETCH_TIMEOUT error.
fetchInterval: 3 * 60 * 1000, // number = 3 * 60 * 1000 interval in milliseconds to pull the new configurations.Defaults to 5 minutes.Setting this option to 0 will disable the feature.
fetchCachedConfig: true, // boolean = true whether refresh configurations by fetching the restful API with caches.Defaults to true.If you want to always fetch the latest configurations(not recommend), set the option to false
}
}
FAQs
Apollo Plugin for Koatty.
The npm package koatty_apollo receives a total of 1 weekly downloads. As such, koatty_apollo popularity was classified as not popular.
We found that koatty_apollo 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.