
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@bpanel/faucet
Advanced tools
A plugin for adding a faucet interface for your bPanel instance, includes rate limiting for the API requests
This plugin adds a rate limited faucet plugin to your bPanel instance. There are both client and server side components to this plugin, which means that a minimum version of bPanel v1.0.0-beta
is required (since older versions do not support backend plugins).
Make sure you've got the latest version of bpanel-cli
installed
$ npm install -g @bpanel/bpanel-cli
Then install the plugin with bpanel-cli:
$ bpanel-cli install @bpanel/faucet
Finally, if you've got bPanel already running, make sure to restart the server. Otherwise, just start bPanel as normal:
# from your bPanel project directory
$ npm run start
This plugin is purely an interface with a compatible wallet node. By default, you will need
to have a wallet server running on the node you're connecting to and it will need to have
a (funded) wallet with the id faucet
in order to have full functionality. See steps below
for additional configuration options.
By default, the plugin will blacklist all backend calls to wallet endpoints not made to a wallet with
the id faucet
. This is to avoid accidentally opening up other wallets on your server to the faucet service.
Absent any other kind of authentication, you can set the config variable faucet-admin
in your bPanel configs
which will disable the blacklisting and rate limiting. This can be helpful when testing during development.
Another useful configuration is faucet-id
which lets you set a custom wallet id for the faucet source.
For example, if you're using a dedicated node for your faucet, you might just want to use your primary
wallet since that is the default wallet created by a bcoin, bcash, or hsd node.
If your faucet wallet has a passphrase set (highly recommended), you can set it for your client with the
faucet-passphrase
config.
The bPanel Faucet plugin uses the bPanel configuration system, built with
bcfg. These can be set at runtime (i.e. npm run start -- --faucet-admin=true --faucet-id=foobar
), in your bpanel's config.js
file or with an environment variable
(BPANEL_FAUCET_ID=primary
). Read more about bPanel's configurations
here.
The rate limiter uses the express-rate-limit middleware
for Express. To customize the limiter, you can change the options in the apiLimiter
handler in
/server/handlers.js
.
FAQs
A plugin for adding a faucet interface for your bPanel instance, includes rate limiting for the API requests
The npm package @bpanel/faucet receives a total of 7 weekly downloads. As such, @bpanel/faucet popularity was classified as not popular.
We found that @bpanel/faucet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.