Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
shopcloud-serverless
Advanced tools
CLI tool for creating a serverles api with API Gateway and Cloud Functions
Serverless tool for the Google Cloud. You need the gcloud
installed.
$ pip install shopcloud-serverless
$ serverless init
$ serverless jobs init
$ serverless jobs create <job-name>
$ serverless jobs deploy <job-name>
$ serverless jobs run <job-name>
Secrets:
Secrets can you write in the .env.temp
file with the SecretHub syntax.
The main entrypoint for you serverless endpoint api is the gateway.
Init the gateway with the function and then deploy the endpoints and then you can deploy the api.yaml file with gateway deploy endpoint.
$ serverless gateway init
$ serverless gateway deploy
Create a new endpoint for every path.
$ serverless endpoints init
$ serverless endpoints create health
Add the Endpoint in the api.yaml
the operation_id
must be unqie and is the identifier for the library.
You can change the <endpoint-name>.yaml
with the parameters
memory
: memory in MBruntime
: runtime of the function "python312"trigger
: http or pubsub the value is the name of the topic
dependencies
: as string arrayfor development in the background we use functions-framework
$ serverless endpoints serve health
run the integration test suite
$ serverless endpoints test health
then deploy the function
$ serverless endpoints deploy health
FAQs
CLI tool for creating a serverles api with API Gateway and Cloud Functions
We found that shopcloud-serverless demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.