Giter VIP home page Giter VIP logo

ignite-security-plugin's Introduction

Apache Ignite Security Plugin

Authentication and Authorization are two most important apsects for any data systems. This plugin helps to achieve that. This is custom Apache Ignite plugin implemented by following these guidelines https://apacheignite.readme.io/docs/plugins

Apache Ignite loads plugin through Java service loader, one just need to put this jar in classpath and Apache Ignite will pick it up on startup.

Article for this customization can be found here https://www.bugdbug.com/post/how-to-secure-apache-ignite-cluster

ignite-security-plugin's People

Contributors

aamargajbhiye avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

ignite-security-plugin's Issues

How do I understand and debug this code?

This project was super helpful for getting me started with creating an Ignite plugin for custom authorization.
However, it's not clear to me how to debug this code.
Here are some of my questions:

  1. Is the login object (in SecurityCredentials) convertible to a string? (I'm hoping that the string equals the username of the person attempting the action.)
  2. I need to be able to check usernames against what actions are allowed for those users. Is AuthenticationProcessor.authorize(..) the right place to put that logic? If so, then what would SecurityContextImpl be used for? It looks like the AuthenticationContext that gets passed to SecurityContextImpl's constructor in SecurityProcessor.authenticate(..) could be used as a property in SecurityContextImpl for performing most of the complex auth logic.
  3. SecurityProcessor.authenticateNode(..) does not pass an AuthenticationContext instance to the constructor of SecurityContextImpl. What purpose does SecurityContextImpl provide in this situation? It looks like perhaps it could be used to set very broad restrictions (that would apply to all users); but, if so, then I'd think it would be better to create a second class that implements SecurityContext specifically for these broad restrictions, perhaps like:
  • UserSecurityContextImpl implements SecurityContext (for SecurityProcessor.authenticate(..))
  • NodeSecurityContextImpl implements SecurityContext (for SecurityProcessor.authenticateNode(..))

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.