@liongard/roar-agent
The Node.js Roar Agent that listens for and executes scan jobs
Last updated 2 years ago by liongard-simba .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @liongard/roar-agent 
SYNC missed versions from official npm registry.

Node.js Roar SDK

Overview:

Roar Agent is installed on external system to monitor for incoming jobs from the Roar Scheduler or initiated by the Roar API via direct or indirect user input. It launches jobs which are run in the context of docker containers.

Status:

Dependencies Dev Dependencies Vulnerabilities

Install

Roar Agent is designed to be installed via the Roar CLI. See the Roar CLI documentation and the setup-agent for more details.

Testing

Coming Soon...

Packaging

Packaging requires jq and awcli. See for more information about installing both for your specific OS.

You must also setup your AWS credentials either via a file or environment variables. For more information about how to do this please see: Getting Started with AWS CLI.

./publish.sh

Will automatically bump the build number, build the agent, package it up and then commit it to our S3 script bucket.

Local Installation For Testing and Development

  • make sure you have vagrant installed and localstack installed
  • run vagrant up --provision
  • ssh into the box with vagrant ssh
  • agent code is synced to /vagrant dir
  • vagrant vm is set up like a t2 medium ubuntu ami with 4GB ram
  • run sqs via localstack npm run localstack
  • create a test queue and response bucket node test/aws/createQueuesAndBuckets.js
  • verify queue was created node test/aws/listQueues.js
  • run agent in local mode via npm run debug
  • add a message node test/aws/addDomainInspection.js
  • verify the message is on the queue by querying from the box: node test/aws/getJobQueueAttributes.js
  • you can publish an inspector to your localstack s3 by adding a separate publish script with a custom s3 url eg
$ cat publish-dev.sh
...
aws --endpoint-url http://localhost:4572 s3 cp $NAME.$VERSION.zip s3://roar-dev/inspectors/$NAME.$VERSION.zip --acl public-read

For now, seems like there is a bug in localstack: https://github.com/localstack/localstack/issues/406 so just copy the archive in with the publish script

...
cp $NAME.$VERSION.zip ../roar-agent/inspectorBundles/$NAME.$VERSION.zip

roadmap ideas

  • ~cache as much as possible per inspector so that we minimize elapsed runtime~
  • auto upgrade of the agent
  • include more metadata in the heartbeat of the agent (total memory used, total cpu utilization)
  • set the config of the agent via messages
  • persist config of agent to disk instead of in memory so we can more gracefully restart it
  • fix race condition that causes us to spin up multiple docker containers

Current Tags

  • 1.8.33                                ...           latest (2 years ago)

136 Versions

  • 1.8.33                                ...           2 years ago
  • 1.8.32                                ...           2 years ago
  • 1.8.31                                ...           2 years ago
  • 1.8.30                                ...           2 years ago
  • 1.8.29                                ...           2 years ago
  • 1.8.28                                ...           2 years ago
  • 1.8.25                                ...           2 years ago
  • 1.8.24                                ...           2 years ago
  • 1.8.23                                ...           2 years ago
  • 1.8.22                                ...           2 years ago
  • 1.8.21                                ...           2 years ago
  • 1.8.20                                ...           2 years ago
  • 1.8.18                                ...           2 years ago
  • 1.8.17                                ...           2 years ago
  • 1.8.16                                ...           2 years ago
  • 1.8.15                                ...           2 years ago
  • 1.8.13                                ...           2 years ago
  • 1.8.12                                ...           2 years ago
  • 1.8.11                                ...           2 years ago
  • 1.8.10                                ...           2 years ago
  • 1.8.9                                ...           2 years ago
  • 1.8.8                                ...           2 years ago
  • 1.8.7                                ...           2 years ago
  • 1.8.6                                ...           2 years ago
  • 1.8.5                                ...           2 years ago
  • 1.8.4                                ...           2 years ago
  • 1.8.3                                ...           2 years ago
  • 1.8.2                                ...           2 years ago
  • 1.8.1                                ...           2 years ago
  • 1.8.0                                ...           2 years ago
  • 1.7.99                                ...           2 years ago
  • 1.7.98                                ...           2 years ago
  • 1.7.96                                ...           2 years ago
  • 1.7.95                                ...           2 years ago
  • 1.7.94                                ...           2 years ago
  • 1.7.92                                ...           2 years ago
  • 1.7.90                                ...           2 years ago
  • 1.7.89                                ...           2 years ago
  • 1.7.88                                ...           2 years ago
  • 1.7.86                                ...           2 years ago
  • 1.7.85                                ...           2 years ago
  • 1.7.84                                ...           2 years ago
  • 1.7.83                                ...           2 years ago
  • 1.7.82                                ...           2 years ago
  • 1.7.81                                ...           2 years ago
  • 1.7.80                                ...           2 years ago
  • 1.7.79                                ...           2 years ago
  • 1.7.77                                ...           2 years ago
  • 1.7.75                                ...           2 years ago
  • 1.7.73                                ...           2 years ago
  • 1.7.72                                ...           2 years ago
  • 1.7.71                                ...           2 years ago
  • 1.7.70                                ...           2 years ago
  • 1.7.69                                ...           2 years ago
  • 1.7.68                                ...           2 years ago
  • 1.7.67                                ...           2 years ago
  • 1.7.65                                ...           2 years ago
  • 1.7.64                                ...           2 years ago
  • 1.7.60                                ...           2 years ago
  • 1.7.59                                ...           2 years ago
  • 1.7.58                                ...           2 years ago
  • 1.7.57                                ...           2 years ago
  • 1.7.56                                ...           2 years ago
  • 1.7.55                                ...           2 years ago
  • 1.7.54                                ...           2 years ago
  • 1.7.53                                ...           2 years ago
  • 1.7.52                                ...           2 years ago
  • 1.7.51                                ...           2 years ago
  • 1.7.50                                ...           2 years ago
  • 1.7.42                                ...           2 years ago
  • 1.7.40                                ...           2 years ago
  • 1.7.39                                ...           2 years ago
  • 1.7.38                                ...           2 years ago
  • 1.7.37                                ...           2 years ago
  • 1.7.36                                ...           2 years ago
  • 1.7.35                                ...           2 years ago
  • 1.7.34                                ...           2 years ago
  • 1.7.33                                ...           2 years ago
  • 1.7.32                                ...           2 years ago
  • 1.7.31                                ...           2 years ago
  • 1.7.30                                ...           2 years ago
  • 1.7.29                                ...           2 years ago
  • 1.7.28                                ...           2 years ago
  • 1.7.27                                ...           2 years ago
  • 1.7.26                                ...           2 years ago
  • 1.7.25                                ...           2 years ago
  • 1.7.24                                ...           2 years ago
  • 1.7.23                                ...           2 years ago
  • 1.7.22                                ...           2 years ago
  • 1.7.21                                ...           2 years ago
  • 1.7.20                                ...           2 years ago
  • 1.7.19                                ...           2 years ago
  • 1.7.18                                ...           2 years ago
  • 1.7.17                                ...           2 years ago
  • 1.7.14                                ...           3 years ago
  • 1.7.13                                ...           3 years ago
  • 1.7.12                                ...           3 years ago
  • 1.7.11                                ...           3 years ago
  • 1.7.10                                ...           3 years ago
  • 1.7.9                                ...           3 years ago
  • 1.7.7                                ...           3 years ago
  • 1.7.6                                ...           3 years ago
  • 1.7.5                                ...           3 years ago
  • 1.7.4                                ...           3 years ago
  • 1.7.3                                ...           3 years ago
  • 1.7.2                                ...           3 years ago
  • 1.7.1                                ...           3 years ago
  • 1.7.0                                ...           3 years ago
  • 1.6.20                                ...           3 years ago
  • 1.6.19                                ...           3 years ago
  • 1.6.18                                ...           3 years ago
  • 1.6.17                                ...           3 years ago
  • 1.6.16                                ...           3 years ago
  • 1.6.15                                ...           3 years ago
  • 1.6.14                                ...           3 years ago
  • 1.6.13                                ...           3 years ago
  • 1.6.12                                ...           3 years ago
  • 1.6.11                                ...           3 years ago
  • 1.6.10                                ...           3 years ago
  • 1.6.9                                ...           3 years ago
  • 1.6.8                                ...           3 years ago
  • 1.6.7                                ...           3 years ago
  • 1.6.6                                ...           3 years ago
  • 1.6.5                                ...           3 years ago
  • 1.6.4                                ...           3 years ago
  • 1.6.3                                ...           3 years ago
  • 1.6.2                                ...           3 years ago
  • 1.6.1                                ...           3 years ago
  • 1.6.0                                ...           3 years ago
  • 1.5.19                                ...           3 years ago
  • 1.5.18                                ...           3 years ago
  • 1.5.17                                ...           3 years ago
  • 1.5.16                                ...           3 years ago
  • 1.5.15                                ...           3 years ago
  • 1.5.14                                ...           3 years ago
  • 1.5.13                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 137
Last Month 139
Dependencies (14)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |