theapsgroup / steampipe-plugin-keycloak

Use SQL to instantly query Keycloak clients, users and more. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/theapsgroup/keycloak
Apache License 2.0
6 stars 1 forks source link
golang keycloak postgres postgresql postgresql-fdw sql steampipe steampipe-plugin

image

Keycloak Plugin for Steampipe

Use SQL to query information including Users, Groups, Clients, Roles and more from Keycloak.

Quick start

Install the plugin with Steampipe:

steampipe plugin install theapsgroup/keycloak

Set up the configuration:

vi ~/.steampipe/config/keycloak.spc

or set the following Environment Variables

Run a query:

select * from keycloak_user;

Developing

Prerequisites:

Clone:

git clone https://github.com/theapsgroup/steampipe-plugin-keycloak.git
cd steampipe-plugin-keycloak

Build, which automatically installs the new version to your ~/.steampipe/plugins directory:

make install

Configure the plugin:

cp config/* ~/.steampipe/config
vi ~/.steampipe/config/keycloak.spc

Try it!

steampipe query
> .inspect keycloak

Further reading:

Credits

Keycloak API Wrapper Nerzal/gocloak licensed separately using this Apache License.