GithubHelp home page GithubHelp logo

bhanditz / nexus-iq-webhook-reference-implementation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sonatype-nexus-community/nexus-iq-webhook-reference-implementation

0.0 2.0 0.0 241 KB

A reference implementation for consuming webhooks via serverless.

License: Other

JavaScript 100.00%

nexus-iq-webhook-reference-implementation's Introduction

Nexus IQ Webhook Reference Implementation

This is a reference implementation for consuming webhooks via serverless. In this implementation, a Nexus IQ Application Policy Evaluation webhook is consumed, validated and a message is sent to a Slack channel.

Running Locally

The serverless offline plugin is installed to allow for local development. The application can be run using

sls offline start

after installing serverless and the node dependencies.

npm install serverless -g
npm install

Configuration

Webhooks must be configured in Nexus IQ Server to point towards the endpoint generated by the serverless application. Information about configuring Nexus IQ Webhooks is available in IQ Server Webhooks.

Environmental variables for the Slack Webhook URL and Nexus IQ Webhook secret key must be set in the serverless configuration.

Unit Tests

Unit tests can be run with mocha using

npm test

Deploying to the Cloud

Information about deploying serverless applications to various cloud providers in available in the serverless documentation. If using AWS, for example, you must configure your credentials and then deploy via sls deploy. Consideration should be taken as to the cost of running this service as well as the scope of the handler as described in serverless.yml and index.js.

nexus-iq-webhook-reference-implementation's People

Contributors

whyjustin avatar

Watchers

James Cloos avatar  avatar

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.