Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
A build and deploy utility for Cloudflare Workers.
WORK IN PROGRESS
Status: Functional, but incomplete.
There are two approaches in providing cfw
with a set of Cloudflare credentials:
Create a ~/.cfw/config
file, where ~
is that path to your home directory. Inside, you'll store your credentials under different "profile" namespaces. (If you're familiar, this is very similar to an AWS credentials file.) An example file may look like this:
[personal]
CLOUDFLARE_AUTH_EMAIL = hello@me.com
CLOUDFLARE_ACCOUNTID = ACCOUNTID_VALUE
CLOUDFLARE_AUTH_KEY = GLOBAL_API_KEY
CLOUDFLARE_ZONEID = ZONEID_VALUE
In this case, we have a "personal" profile containing our personal account credentials. You can define multiple credential groups by repeating this template as needed, using different profile names.
[personal]
CLOUDFLARE_AUTH_EMAIL = hello@me.com
# ...
[work]
CLOUDFLARE_AUTH_EMAIL = hello@company.com
# ...
Additionally, all credential key names may be lowercased.
Default Profile
If a profile named [default]
exists, then cfw
will auto-load that credentials group when no there is no profile configured.
Selecting a Profile
You may use a profile
key inside your configuration file, or define --profile
when running an cfw
command.
The same keys found within your credentials file may be used again as environment variables.
When defined, an environment variable takes priority over all other configuration avenues.
CLOUDFLARE_ACCOUNTID
– your account identifier; alias of config.accountid
CLOUDFLARE_AUTH_EMAIL
– your account email address; alias of config.email
CLOUDFLARE_AUTH_KEY
– your account's global API key; alias of config.authkey
CLOUDFLARE_ZONEID
– your domain/zone's identifier; alias of config.zoneid
CLOUDFLARE_TOKEN
– an API access token; alias of config.token
In order to successfull access your Cloudflare account's resources, you must satisfy the following requirements:
A CLOUDFLARE_ACCOUNTID
(or config.accountid
) is always required.
A valid token or key-pair; you have two options:
A CLOUDFLARE_TOKEN
(or config.token
) containing a valid API token.
(Recommended) Preferred solution, as this API token can be narrowly scoped and can be revoked at any time.
A valid CLOUDFLARE_AUTH_EMAIL
and CLOUDFLARE_AUTH_KEY
combination.
This requires your Global API Key, which grants full access to all account resources.
A CLOUDFLARE_ZONEID
is only required if you are not deploying to a *.workers.dev
subdomain (via config.subdomain
).
The following profiles represent valid combinations:
[recommended]
cloudflare_accountid = da32...
cloudflare_token = 78a...
# (optional) cloudflare_zoneid = b58...
[other]
cloudflare_accountid = da32...
cloudflare_auth_email = hello@example.com
cloudflare_auth_key = 62d...
# (optional) cloudflare_zoneid = b58...
MIT © Luke Edwards
FAQs
WIP
The npm package cfw receives a total of 23 weekly downloads. As such, cfw popularity was classified as not popular.
We found that cfw 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.