Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
kong-admin-node-client
Advanced tools
Client API for configuring Kong admin.
This is a Node.js module available through the
npm registry. Installation is done using the
npm install
command:
$ npm install kong-admin-client --save
let KongAPI = require('kong-admin-node-client');
let kongAPI = new KongAPI({
kong_config: {
"kong_admin_api_url": "http://mky-kong:8001",
"apis": [{
"name": "myApp",
"uris": "/path/",
"upstream_url": "http://my-upstream-url.com",
"plugins": [{
"name": "rate-limiting",
"config": {
"second": "5",
"hour": "10000"
}
}]
}],
"root_plugins": [{
"name": "request-termination",
"config": {
"status_code": 403,
"message": "So long and thanks for all the fish!"
}
}]
},
headers: {}, //headersObj,
headers_to_mask: ['maskHeader1', 'maskHeader2'] // array of fields the logger should mask.
});
kongAPI.createConfigurations()
.then((result) => {
// Success
})
.catch((err) => {
// Failure
});
per each function (createApis,getAPIs,removeAPIs,removePlugins,createPlugins,getPluginsOfExistApi) headers object can be sent, which will override the headers provided in the constructor (if any).
FAQs
Kong admin API client in node
The npm package kong-admin-node-client receives a total of 1 weekly downloads. As such, kong-admin-node-client popularity was classified as not popular.
We found that kong-admin-node-client 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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.