
Security News
crates.io Ships Security Tab and Tightens Publishing Controls
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.
Web Proxy for intercepting and selectively caching HTTP requests.
node ./bin/proxy --help
Web Proxy can be used with a persistant data store. The only backend supported at the moment is MySQL.
To enable use of the MySQL backend, provide connections credentials at the time of starting the proxy.
Database schema can be obtained from ./database/proxy.sql. Note that table is using ROW_FORMAT=COMPRESSED. In order to benefit from the compression, ensure that the following MySQL variables are set:
innodb_file_format=BARRACUDA
innodb_file_per_table=ON
For more information, refer to http://stackoverflow.com/a/13636565/368691.
Web Proxy can forward all outgoing HTTP requests to another proxy.
To enable forwarding, provide proxy credentials at the time of starting the proxy.
WebProxy can be used programmatically.
var WebProxy = require('../src/webproxy'),
config = {},
server;
/**
* @param {Object} reference
* @param {String} reference.method
* @param {String} reference.url
* @return {Null} Returning null will allow HTTP request to progress.
* @return {Object} response
* @return {Number} response.statusCode
* @return {Object} response.headers
* @return {String} response.body
*/
config.read = function (request) {
//
};
/**
* @param {Object} reference
* @param {String} reference.method
* @param {String} reference.url
* @param {Object} response
* @param {Number} response.statusCode
* @param {Object} response.headers
* @param {String} response.body
*/
config.write = function (request, response) {
//
};
/**
* @param {Object} config
* @param {Function} config.read
* @param {Function} config.write
* @param {Object} config.logger
*/
server = WebProxy(config);
server.listen(9000);
Data can be read/written using custom logic.
There are two existing data store interfaces:
| Name | Description |
|---|---|
DataStore.session | Session persits data in an object for the duration of the script runtime. |
DataStore.database | Data is read/written to/from a MySQL database. |
Refer to the ./bin/proxy.php implementation to see a working example.
FAQs
Web Proxy (forward proxy) for intercepting and selectively caching HTTP requests.
The npm package web-proxy receives a total of 3 weekly downloads. As such, web-proxy popularity was classified as not popular.
We found that web-proxy 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
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.

Research
/Security News
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.