Giter Club home page Giter Club logo

pravega-keycloak's Introduction

Keycloak Security Plugin for Pravega

Build Status codecov License Version

Introduction

This repository contains the source code for the pravega-keycloak-client library, which extends Pravega to use Keycloak Authorization Services to protect Pravega streams.

Application Configuration

Follow this procedure to connect to a Pravega cluster that is protected by Keycloak.

1. Update application dependencies

Update your dependencies to link to the pravega-keycloak-client library, which is hosted in the jcenter repository.

For example, in Gradle:

repositories {
    jcenter()
    mavenCentral()
}
dependencies {
    implementation "io.pravega:pravega-client:0.6.1"
    implementation "io.pravega:pravega-keycloak-client:0.6.1"
}

2. Obtain a Keycloak Client Configuration

Your application authenticates to Pravega using credentials found in a Keycloak client configuration file, which is typically named keycloak.json. Use the Keycloak UI, or consult with product documentation, on how to provision a Keycloak client.

Specific requirements:

  1. Access Type: Confidential
  2. Service Accounts Enabled: Yes

A Keycloak client which has a service account is able to be the subject of authorization policies. See product documentation on how to grant access to your client to specific Pravega scope(s).

3. Set environment variables

The Pravega client library expects a few environment variables to be set to use the Keycloak extension.

NAME VALUE
pravega_client_auth_method Bearer
pravega_client_auth_loadDynamic true
KEYCLOAK_SERVICE_ACCOUNT_FILE Path to Keycloak OIDC JSON client configuration file (keycloak.json).

Contributing

Become one of the contributors! We thrive to build a welcoming and open community for anyone who wants to use the system or contribute to it. Here we describe how to contribute to Pravega!

About

Pravega is 100% open source and community-driven. All components are available under Apache 2 License on GitHub.

pravega-keycloak's People

Contributors

sarlaccpit avatar eronwright avatar addprs avatar apoorva918 avatar crazyzhou avatar derekm avatar sabuz-262 avatar raulgracia 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.