Code Monkey home page Code Monkey logo

deploy-with-serverless's People

Contributors

rafalwilinski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

deploy-with-serverless's Issues

Arbitrary user-provided code execution

It appears that an attacker could cause your batch job to run arbitrary code in your account by specifying the URL of a github project that they own, or by specifying commands that they want to run in the BEFORE_CMD, PACKAGE_CMD, or AFTER_CMD.

This is a great idea for a service, but it would be safer if you set up a registry of the packages that you want to make available and then allow people to reference packages by ID instead of providing this kind of arbitrary execution power.

Support project versioning

Every N image-proxy invocations, there should be version check (build version vs available version). On version mismatch, new build should be triggered (via handler function).

Add /tmp level cache mechanism

href and image-proxy functions interact on each call with DynamoDB by performing a get request. In order to minimize amount of requests to Dynamo, functions should implement /tmp based cache.

Validate repos

Before spinning up a machine, validate whether this task was submitted with correct parameters, that includes:

  • Correct URL
  • GitHub.com as domain
  • has package.json
  • Serverless framework as dependency

Unify variable data sources

Right now, e.g. table names are defined in two separate places: in scripts and in Serverless.yml. it should be defined in one place.

Add build status in image-proxy function

image-proxy function should check build status (whether it's present in dynamodb) and return correct image.

If entry is not found in DB, lambda should return quite different image with some indication that build is in progress and trigger handler function which submits build job.

It should also leverage #2

Fix bug with pulling image from ECR

Status reason: Essential container in task exited
Container message: CannotPullContainerError: API error (404): repository serverless-batch not found: does not exist or no pull access

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.