
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
vendure-plugin-disable-anonymous-access
Advanced tools
Disable anonymous access to shop-api and only allow to defined methods like authenticate
This plugin allows you to disable anonymous access to your Vendure e-commerce store. By requiring users to authenticate before accessing any content, you can enhance security and control access to your store.
To configure the plugin, open your Vendure project's vendure-config.ts
file and add the following code:
import { DisableAnonymousAccessPlugin } from 'vendure-plugin-disable-anonymous-access';
export const config: VendureConfig = {
// ... other config options
plugins: [
// ... other plugins
DisableAnonymousAccessPlugin.int({
allowedMethods:["FirebaseAuth"]
}),
],
};
Once the plugin is installed and configured, anonymous access will be disabled. Users will be required to authenticate before accessing any content on your Vendure store.
We still need to allow some methods like authenticate. This plugin extracts the graphql method name and checks if the method is within the allowed method defined in the options and allow that method to pass by without authentication. In the below, this is the body sent and since FirebaseAuth method is allowed, it bypasses.
body {
operationName: null,
variables: {
uid: 'OWT6nismkIXDrqdZzCK5XXXXXXXXX',
jwt: 'token'
},
query: 'mutation FirebaseAuth($uid: String!, $jwt: String!) {\n' +
' __typename\n' +
' authenticate(input: {firebase: {uid: $uid, jwt: $jwt}}) {\n' +
' __typename\n' +
' }\n' +
'}'
}
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.
FAQs
Disable anonymous access to shop-api and only allow to defined methods like authenticate
The npm package vendure-plugin-disable-anonymous-access receives a total of 12 weekly downloads. As such, vendure-plugin-disable-anonymous-access popularity was classified as not popular.
We found that vendure-plugin-disable-anonymous-access demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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 Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.