Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@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
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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.