Giter Site home page Giter Site logo

microservice-identity-propagation's Introduction

microservice-identity-propagation

When building multi user or tenant system composed of many microservices you will need to consider how identity is propagated between internal services.This can be achieved by including a caller context (e.g. user ID, user roles/groups) in all calls to downstream internal microservices.

In the following diagram taken from the OWASP Microservices Security Cheat Sheet we can see an example of this.

ID propagation

The OWASP document outlines some important attributes / recommendations / guidelines for identity propagation:

  1. Decouple external and internal identity representations.
  2. Implement some sort of internal user / session service to enable enrichment of user data prior to propagation to internal services.
  3. Ensure the identity information is signed by the service which is calling on the users behalf.
  4. Logging / Auditing of these flows is really important, ensuring you have a complete picture of the call flow, and caller context in each event.
  5. The calling context is provided at the transport layer, rather than being embedded as an argument to every REST call.
  6. Internal entity representation structure must not be exposed outside.

References

microservice-identity-propagation's People

Contributors

wolfeidau avatar

Watchers

 avatar 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.