Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
express-gateway-plugin-body-modifier-example
Advanced tools
A body modifier plugin for Express Gateway
This plugin for Express Gateway makes it possible rewrite request and response body before
these get proxied to the target serviceEndpoint
or returned back to the client
Simply type from your shell environment:
eg plugin install express-gateway-plugin-body-modifier
Make sure the plugin is listed in system.config.yml file. This is done automatically for you if you used the command above.
Add the configuration keys to gateway.config.yml file.
policies:
- body-modifier:
action:
request:
add:
- name: fullname
value: req.body.name + ' ' + req.body.surname
remove:
- name
- surname
response:
add:
- name: createdBy
value: "'Clark Kent'"
remove:
- uselessParam
Just check out our plugin development guide. We can't wait to see your custom stuff in the Gateway!
FAQs
A body modifier plugin for Express Gateway
The npm package express-gateway-plugin-body-modifier-example receives a total of 7 weekly downloads. As such, express-gateway-plugin-body-modifier-example popularity was classified as not popular.
We found that express-gateway-plugin-body-modifier-example 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.