Gremlin Aws Sigv4

Extension for Apache's TinkerPop3 Gremlin JS driver compatible with IAM Database Authentication for Neptune
Alternatives To Gremlin Aws Sigv4
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Casbin14,8324624 days ago210September 20, 202230apache-2.0Go
An authorization library that supports access control models like ACL, RBAC, ABAC in Golang
Casdoor6,204
a day ago432September 25, 2022106apache-2.0Go
An open-source Identity and Access Management (IAM) / Single-Sign-On (SSO) platform powered by Casbin and AI gateway with web UI supporting OAuth 2.0, OIDC, SAML and OpenAI ChatGPT
Iam2,77782 months ago37June 16, 202210otherGo
企业级的 Go 语言实战项目:认证和授权系统(带配套课程)
Aws Iam Authenticator1,9974514 days ago27July 01, 202220apache-2.0Go
A tool to use AWS IAM credentials to authenticate to a Kubernetes cluster
Kanidm1,4793a day ago9May 01, 2022110mpl-2.0Rust
Kanidm: A simple, secure and fast identity management platform
Python Sdk1,43248162 months ago36March 21, 20227apache-2.0Python
:snake: Client library to use the IBM Watson services in Python and available in pip as watson-developer-cloud
Awesome Iam1,202
8 days ago2cc0-1.0
👤 Identity and Access Management knowledge for cloud platforms
Maxkey783
2 days ago7apache-2.0Java
MaxKey SSO ,Leading-Edge IAM-IDaas(Identity and Access Management) Product.
Aws Serverless Auth Reference App753
4 years ago14otherTypeScript
Serverless reference app and backend API, showcasing authentication and authorization patterns using Amazon Cognito, Amazon API Gateway, AWS Lambda, and AWS IAM.
Awesome Auth706
4 months agocc0-1.0
📊 Software and Libraries for Authentication & Authorization & SSO & IAM
Alternatives To Gremlin Aws Sigv4
Select To Compare


Alternative Project Comparisons
Readme

gremlin-aws-sigv4

This package provides an extension for Apache's TinkerPop3 Gremlin javascript driver compatible with IAM Database Authentication for Neptune.

Installation

This project is a Node.js module and can be installed with npm.

npm install gremlin-aws-sigv4

Usage

This package reads the environment variables for AWS authentication. These variables can be overridden.

Usage with environment variables

These three enviroment variables must be defined.

  • AWS_ACCESS_KEY_ID – AWS access key.
  • AWS_SECRET_ACCESS_KEY – AWS secret key.
  • AWS_DEFAULT_REGION – AWS region.
  const gremlin = require('gremlin-aws-sigv4');

  const graph = new gremlin.structure.Graph();
  const connection = new gremlin.driver.AwsSigV4DriverRemoteConnection(
    // host
    'your-instance.neptune.amazonaws.com', 

    // port
    8182,

    // options, 
    {}, 

    // connected callback
    () => { 
      const g = graph.traversal().withRemote(connection);
      const count = await g.V().count().next();
      connection.close();
    }, 

    // disconnected callback
    (code, message) => { }, 

    // error callback
    (error) => { } 
  );

Usage without environment variables

  const gremlin = require('gremlin-aws-sigv4');

  // creates the connection
  const graph = new gremlin.structure.Graph();
  const connection = new gremlin.driver.AwsSigV4DriverRemoteConnection(
    // host
    'your-instance.neptune.amazonaws.com',

    // port
    8182, 
    
    // options
    { 
      accessKeyId: 'your-access-key',
      secretAccessKey: 'your-secret-key',
      sessionToken: 'your-optional-session-token',
      region: 'your-region',
    },
    
    // connected callback
    () => { 
      const g = graph.traversal().withRemote(connection);
      const count = await g.V().count().next();
      connection.close();
    }, 
    
    // disconnected callback
    (code, message) => { }, 
    
     // error callback
     (error) => { }
  );

Additional options

Thses are the available config options, none of them is required.

{
  // Open secure connection - mandatory for engine version 1.0.4.0 and above
  secure: true,

  // Enable auto-reconnection on connection failure - default: false 
  autoReconnect: true,

  // Number of auto-reconnection retries - default: 10 
  maxRetry: 3,
}

Tests

Unit tests

# install dependencies
npm install

# run the tests
npm run test:unit

Dependencies

Contribute

Please do contribute! Open an issue or submit a pull request.

The project falls under @Shutterstock's Code of Conduct.

License

License: MIT

Popular Authentication Projects
Popular Iam Projects
Popular Security Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Amazon Web Services
Authentication
Driver
Apache
Environment Variables
Iam
Graph Database
Gremlin