kodadot / workers

Implementation of Cloudflare Workers in KodaDot
https://kodadot.xyz
9 stars 12 forks source link

feat(ipos): filebase IPFS worker #316

Closed hassnian closed 2 months ago

hassnian commented 2 months ago

Context

add new ipos worker

envs

bucket: https://docs.filebase.com/getting-started/ipfs-getting-started-guide#how-to-create-an-ipfs-bucket s3: https://docs.filebase.com/getting-started/s3-api-getting-started-guide#access-keys

 // S3
  S3_ACCESS_KEY_ID: string
  S3_SECRET_ACCESS_KEY: string //  secret env

  // Filebase
  FILEBASE_BUCKET_NAME: string 

Ref

PR Type

Screenshots

CleanShot 2024-07-17 at 13 48 09@2x

CleanShot 2024-07-17 at 13 48 35@2x

socket-security[bot] commented 2 months ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@cloudflare/workers-types@4.20240620.0 None 0 3.7 MB wrangler-publisher
npm/aws-sdk@2.1659.0 environment, filesystem, network, shell 0 97.2 MB aws-sdk-bot
npm/hono@4.4.12 None 0 897 kB yusukebe
npm/valibot@0.30.0 None 0 717 kB fabian-hiller

View full report↗︎

socket-security[bot] commented 2 months ago

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

Ignoring: npm/aws-sdk@2.1659.0

View full report↗︎

Next steps

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

hassnian commented 2 months ago

core packages of the propposed stack are not yet compatible with cloudlflare worker's environment

do we change env or go with another alternative cc @vikiival @preschian

https://github.com/kodadot/workers/issues/304

CleanShot 2024-07-15 at 12 06 06@2x

mainly

ref:

CleanShot 2024-07-15 at 12 09 40@2x

vikiival commented 2 months ago

Hey, Thanks for taking it.

We will use filebase. I will make new issue for that

hassnian commented 2 months ago

@vikiival @preschian pls create a new worker called ipos and update wrangler.toml , so we can test this out

thanks

vikiival commented 2 months ago

@SocketSecurity ignore aws-sdk@2.1659.0

vikiival commented 2 months ago

Tested, works as charm

vikiival commented 2 months ago

@SocketSecurity ignore npm/aws-sdk@2.1659.0