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.
@bonniernews/gcpohoy
Advanced tools
Node helper for a standardized shell execution of terraform and gcloud commands
A node-module that helps you deploy, monitor and rollback your (mainly GCP) services managed with Terraform.
To run this package successfully you need GCloud CLI and Terraform:
brew install terraform
Install this script in the project(s) you want it or globally. Note that conflicts with node version might occur when installing globally
npm i @bonniernews/gcpohoy
npm i @bonniernews/gcpohoy -g
In a project running Terraform and GCloud with Expressen's standard setup you can run for example:
gcpohoy help
gcpohoy login
gcpohoy deploy <environment>
gcpohoy rollback <environment> -r <revision>
gcpohoy forward-db <environment> -p <port> -s <secret_pw_name>
You can run --help for any given command to see all available arguments/options:
gcpohoy deploy <environment> --help
This package handles multi-cloudrun projects (Note: Uses the same docker image with different args)
gcpohoy deploy <environment>
- Default: Deploys all cloud runs it can find in Terraform.To manage your services use --serviceName (-s)
gcpohoy <deploy|changes|status> <environment> -s <service-name>
gcpohoy status <environment> -s <service-name>
Note: gcpohoy apply
doesn't support --serviceName
flag, it runs everything.
Rollback works the same:
gcpohoy rollback <environment> -s <service-name> -r <revision>
Detailed instructions found here examples/workflow-example.md
gcpohoy can easily be used in CI/CD with the benefit of working mostly the same as locally.
serviceName
and projectId
A final deploy step using gcpohoy can look something like:
- name: "Deploy"
run: npm run deploy ${{inputs.environment}} -- --serviceName=layout-service-${{inputs.environment}} --projectId=${{secrets.gcp-project-id}}
FAQs
Node helper for a standardized shell execution of terraform and gcloud commands
The npm package @bonniernews/gcpohoy receives a total of 168 weekly downloads. As such, @bonniernews/gcpohoy popularity was classified as not popular.
We found that @bonniernews/gcpohoy 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 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.