Giter VIP home page Giter VIP logo

js-code-runner's People

Contributors

andrsvsrg avatar illyav avatar ksv510 avatar markpiller avatar stanislav-grin avatar valodya avatar vengrov avatar viktor-liablin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

js-code-runner's Issues

Deploy stdout should have an option to hide sensitive information like API keys

Currently this is what happens on coderunner deploy

$ coderunner deploy --quiet
12:59:41.891 CodeRunner(tm) Backendless JavaScript CodeRunner v6.0.2
12:59:41.924 Copyright(C) 2020 Backendless Corp. All rights reserved.
12:59:41.980 Run Options is:  {
  "backendless": {
    "apiServer": "https://api.backendless.com",
    "msgBroker": {
      "host": "cl.backendless.com",
      "port": 6379
    },
    "public": {
      "fileDownloadUrl": "http://localhost:9000",
      "publicAPIUrl": "http://localhost:9000",
      "internalAPIUrl": "https://api.backendless.com"
    },
    "apiUrl": "https://api.backendless.com",
    "repoPath": "/var/lib/backendless/repo/"
  },
  "app": {
    "id": "62HIL0-UWL6N5M-WY6I1NL", <-- NOTE
    "apiKey": "CB1OL4-ZNL43I5BY8-ERZB", <-- NOTE
    "exclude": [
      "package.json",
      "coderunner.json",
      "README.md",
      "servercode.iml",
      "servercode.ipr",
      "servercode.iws"
    ],
    "model": "default"
  },
  "workers": {
    "cache": false,
    "concurrent": 4,
    "heartbeat": {
      "interval": 5,
      "timeout": 10
    }
  },
  "sandbox": false,
  "verbose": false,
  "compression": {
    "debug": false,
    "prod": false
  }
}
12:59:41.980 IMPORTANT!
The business logic code will be deployed to model "default".
Any business logic which is already deployed on the server in that model
will be removed and replaced with the code from your current project.
12:59:42.616 Building Model..
12:59:43.672 ServerCode Model built in 1056ms
12:59:43.672 Custom Types (1):
12:59:43.672   SampleModel (models/SampleModel.js)
12:59:43.672 Services (1):
12:59:43.673   SampleService (services/SampleService.js)
12:59:43.678 Preparing app zip file for deployment..
13:00:00.265 4 files added into deployment archive
13:00:00.276 Publishing Model to server
13:00:03.280 Successfully published

I replaced my actual app id and api keys with some random letters + numbers but obviously, if the app is going to be deployed through any kind of CI pipeline, it's not in anyone's best interests to expose those keys.

$ coderunner -h
Usage: coderunner [options] [command]

Options:
  -V, --version             output the version number
  -c, --config <path>       set config path. defaults to ./coderunner.json
  -a, --app-id <id>         Application Id
  -k, --app-key <key>       Application CodeRunner API Key
  -s, --api-server <url>    Backendless API Server URL
  -m, --model <model>       Business Logic model
  -q, --quiet               Don't show the confirmation dialog before deploy to Business Logic model
  --msg-broker-host <host>  Message Broker Host
  --msg-broker-port <port>  Message Broker Port
  --repo-path <path>        Backendless Repo Path
  --cache-limit <n>         Count for cached workers
  --keep-zip                Keep generated zip file after deploying
  --zip-size-confirmation   Confirm size of generated zip file before deploying
  --verbose                 Verbose mode. More information output.
  -h, --help                output usage information

Commands:
  debug                     debug business logic
  pro                       Pro CodeRunner
  deploy                    deploy business logic to production

As far as I'm aware, no option exists yet that would omit that info.

Possible memory leak with Winston logging

Sometimes I get this warning in the logs

MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 unpipe listeners added to [DerivedLogger]. Use emitter.setMaxListeners() to increase limit 

We need to investigate what types of event listening we have regarding winston and how it could lead to memory leaking

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.