![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@innovorder/serverless-resize-bucket-images
Advanced tools
When an image is uploaded to the bucket and his path contains `toBeResized` (`uploads//toBeResized/image1.png`), the image resizer Cloud Function resizes and compress it. When the job is done, the new image is uploaded to the same pat
When an image is uploaded to the bucket and his path contains toBeResized
(uploads/<brand_id/brand_hash>/toBeResized/image1.png
), the image resizer Cloud Function resizes and compress it. When the job is done, the new image is uploaded to the same path extracting the toBeResized
part (uploads/<brand_id/brand_hash>/image1.png
).
You need to set (or create in a .env
file) a GOOGLE_APPLICATION_CREDENTIALS environment variable with the path to your Google Storage credentials.
Use yarn start
to load a local hot reloaded instance of the Cloud Function. The instance listens on http://localhost:8080. You must do a POST request to simulate an event (https://github.com/GoogleCloudPlatform/functions-framework-nodejs/blob/master/docs/events.md). To test inputs you must send a body with data as it follows:
{
"data": {
"bucket": "static-dev.innovorder.fr",
"name": "uploads/toBeResized/test-image.png"
}
}
Remove eslint-config-innovorder
package before deploying. Cloud function deployment tries to install devDependencies
also (which is not normal) and it will not found this package.
Install Google Cloud SDK
in your system and authenticate with gcloud
(https://cloud.google.com/sdk/docs/authorizing#running_gcloud_auth_login).
To deploy an specific version, just checkout this repository and run yarn deploy-<environment_name>
, where environment_name
can be dev
, preprod
or prod
.
To see the deployed Cloud Function logs use yarn logs-<environment_name>
FAQs
When an image is uploaded to the bucket and his path contains `toBeResized` (`uploads//toBeResized/image1.png`), the image resizer Cloud Function resizes and compress it. When the job is done, the new image is uploaded to the same pat
The npm package @innovorder/serverless-resize-bucket-images receives a total of 0 weekly downloads. As such, @innovorder/serverless-resize-bucket-images popularity was classified as not popular.
We found that @innovorder/serverless-resize-bucket-images 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.