Skip to content

Commit

Permalink
Initial implementation (#1)
Browse files Browse the repository at this point in the history
* Initial paws

Fix package.json

Add okta extension

Process logs

Fix process logs

Proxy processLogs

Fix typos

Use SQS queue for states.

Add Okta makefile

Fix okta extension

Update collection state in SQS

Init collection state during registration

Make register async

Fix

Add default polling interval

Fix PAWS register

Add local invocation events

Add jshintrc

Init okta collectoion state

Add travis

Add gitignore

Add collector id into env template

Add self update event

Add poll interval

Use poll interval

Fix okta template

Process collection status for okta

Add logging

Fix template

Fix logging.

Cleanup template

Amend package.json

Fix package name

* Pass collector id in the template

* Fix

* Increase Lambda memory to 256MB

* Use common endpoint and secret parameters

* Fix template

* Address comments. Pass CID as a template parameter

* Add publish makefile target.

* Add licenses

* Fix package.json dependency versions
  • Loading branch information
kkuzmin authored Nov 26, 2019
1 parent 978c449 commit 8dbb9d7
Show file tree
Hide file tree
Showing 30 changed files with 1,092 additions and 262 deletions.
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
node_modules/
test/report.xml
#idea
.idea/
nbproject/
.nyc_output/
coverage/
test/ide_test.js
.env
**/local/env.json
.project
**.zip
**/report.xml

15 changes: 15 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"esversion": 6,
"shadow": "outer",
"undef": true,
"unused": "vars",
"node": true,
"predef": [
"it",
"describe",
"before",
"after",
"beforeEach",
"afterEach"
]
}
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sudo: false
language: node_js
node_js:
- "10"
install:
- make deps
script:
- make test
8 changes: 8 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Copyright 2019 ALERT LOGIC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ package: test package.zip
package.zip: node_modules/ *.js package.json
zip -r $(AWS_LAMBDA_PAWS_PACKAGE_NAME) $^

publish:
npm run rel

deploy:
aws lambda update-function-code --function-name $(AWS_LAMBDA_PAWS_FUNCTION_NAME) --zip-file fileb://$(AWS_LAMBDA_PAWS_PACKAGE_NAME)

Expand Down
Loading

0 comments on commit 8dbb9d7

Please sign in to comment.