1.1.0 • Published 6 months ago

@continuoussecuritytooling/keycloak-reporter v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Keycloak Reporter

Keycloak user and client reporting tool for automated regular access checks.

License CI npm version npm downloads Docker Stars Known Vulnerabilities Docker Stars Artifact Hub

Usage

npm i @continuoussecuritytooling/keycloak-reporter --location=global
kc-reporter help

For listing clients:

kc-reporter listClients <Keycloak_Root_URL> <Client_ID> <Client_Secret> --format=csv

The output looks for CSV, like that:

"client","id","description","realm","enabled","public","allowedOrigins"
"account","d192964b-189e-499b-ada4-b82b37b9cc50",,"master",true,false,"[]"
"account-console","f8ca4598-0335-445c-992e-fed749ff464a",,"master",true,true,"[]"
"admin-cli","615cbe43-0747-4273-8bc4-b7897a27ce39",,"master",true,true,"[]"
"broker","3e3a17c4-37d4-4a66-bb59-0ddd1b0fa4f6",,"master",true,false,"[]"
"keycloak-reporter","363bd6ed-e0fc-48f6-b896-27d9b16be42a","","master",true,false,"["""",""+""]"
"master-realm","5d822cd2-2583-4d45-ae33-c85ebd6099fa",,"master",true,false,"[]"
"nodejs-test-realm","6b6c26e7-175a-45df-a919-de51ca4f4523",,"master",true,false,"[]"
"security-admin-console","239fca1d-e027-4d3b-9814-3b517272cb80",,"master",true,true,"[""+""]"
"tokenRealmTest-realm","10f8398f-44a5-4f4b-9efb-6a0c4b79af66",,"master",true,false,"[]"
"account","bdf23b22-5abb-4823-aa76-9d21216d7143",,"nodejs-test",true,false,"[]"
"account-console","7eb727fb-18d2-482b-8e34-8982a4efffc3",,"nodejs-test",true,true,"[]"
"admin-cli","99aeb26e-222d-4195-a5e8-f2f94db12b83",,"nodejs-test",true,true,"[]"
"broker","6f3a7144-872e-415b-ab9a-d5a66a3f2951",,"nodejs-test",true,false,"[]"
"confidential-client","d0650a93-8fe2-4524-8020-4531b6276230",,"nodejs-test",true,false,"[""http://localhost/confidential-client""]"
"public-client","c2bd2473-f46c-4c51-af36-b40bef9bb644",,"nodejs-test",true,true,"[]"
"realm-management","49fd4151-3d49-4d10-968b-841123831399",,"nodejs-test",true,false,"[]"
"security-admin-console","ed86e5ed-ced1-435c-b62b-632fe545359c",,"nodejs-test",true,true,"[""+""]"
"account","0a57c891-1d38-4782-badf-a68140a8cf76",,"tokenRealmTest",true,true,"[]"
"account-console","977ac593-4fc7-4a69-94f4-d5e88cd563e9",,"tokenRealmTest",true,true,"[]"
"admin-cli","50ada8d5-bd5e-4182-b6c5-dd4ec5c280b6",,"tokenRealmTest",true,true,"[]"
"broker","91ea3c53-9583-40f6-b3ef-e7bfa28a8385",,"tokenRealmTest",true,false,"[]"
"customer-portal","491ff0ea-51e1-41df-8ee2-2865537da924",,"tokenRealmTest",true,false,"[]"
"realm-management","8dec327b-c120-436d-a27a-bed9494962cd",,"tokenRealmTest",true,false,"[]"
"security-admin-console","a136d00b-119b-4fda-a203-2b946add9b4b",,"tokenRealmTest",true,true,"[""+""]"

Valid commands are:

  • listClients
  • listUsers

Advanced

Helm

To install the Helm Chart use the OCI Package Registry:

helm install keycloak-reporter oci://ghcr.io/cloudtooling/helm-charts

NOTE Keep in mind, that you need a client/service account in keycloak with the appropriate rights. You can use this template to deploy with keycloak-config-cli a service account.

Config file

You can also provider a config file via env var CONFIG_FILE and then just provide the commands, e.g.:

CONFIG_FILE==$(pwd)/e2e/fixtures/config.json kc-reporter listClients

Post to Slack or Teams

When using this command:

kc-reporter listUsers <Keycloak_Root_URL> <Client_ID> <Client_Secret> --format=json --output=webhook --webhookType=slack --webhookUrl=$WEBHOOK_TESTING_SLACK

the following entry in slack will be created: Slack Sample

And for Teams:

kc-reporter listUsers <Keycloak_Root_URL> <Client_ID> <Client_Secret> --format=json --output=webhook --webhookType=teams --webhookUrl=$WEBHOOK_TESTING_TEAMS

the following entry in slack will be created: Team Sample

1.0.6-2348

7 months ago

1.0.5-2092

9 months ago

1.0.4-1906

1 year ago

1.1.0-2364

6 months ago

1.0.5-2251

7 months ago

1.0.6-2343

7 months ago

1.0.5-2095

9 months ago

1.1.0-2363

6 months ago

1.1.0-2367

6 months ago

1.0.5-1968

11 months ago

1.0.5-2019

11 months ago

1.0.5-1964

11 months ago

1.0.4-1872

1 year ago

1.0.6-2340

7 months ago

1.0.5-2013

11 months ago

1.0.5-1960

11 months ago

1.0.5-2132

9 months ago

1.0.5-2252

7 months ago

1.0.5-2098

9 months ago

1.0.5-2010

11 months ago

1.0.4-1876

1 year ago

1.0.5-2138

9 months ago

1.0.5-2258

7 months ago

1.0.5-2137

9 months ago

1.0.5-2016

11 months ago

1.0.5-2257

7 months ago

1.0.6-2354

7 months ago

1.0.5-2261

7 months ago

1.1.0-2358

6 months ago

1.0.5-1979

11 months ago

1.0.4-1880

1 year ago

1.0.5-1975

11 months ago

1.0.4-1883

1 year ago

1.0.6-2351

7 months ago

1.0.4-1886

1 year ago

1.0.5-2144

9 months ago

1.0.5-2264

7 months ago

1.0.5-2143

9 months ago

1.0.5-2022

10 months ago

1.0.5-1973

11 months ago

1.0.5-2028

10 months ago

1.0.4-1889

1 year ago

1.0.5-2147

9 months ago

1.0.5-2267

7 months ago

1.0.5-2025

10 months ago

1.1.0-2383

6 months ago

1.1.0

6 months ago

1.1.0-2380

6 months ago

1.0.6-2324

7 months ago

1.0.6-2289

7 months ago

1.0.5-2273

7 months ago

1.0.5-2031

10 months ago

1.0.5-2272

7 months ago

1.0.5-2150

9 months ago

1.0.2-1858

1 year ago

1.0.5-1989

11 months ago

1.0.5-1986

11 months ago

1.0.6-2284

7 months ago

1.0.5-2034

10 months ago

1.0.5-1983

11 months ago

1.0.5-2153

9 months ago

1.0.6-2281

7 months ago

1.0.5-2039

10 months ago

1.0.5-2158

8 months ago

1.0.6-2337

7 months ago

1.1.0-2370

6 months ago

1.0.6-2334

7 months ago

1.1.0-2376

6 months ago

1.0.6-2299

7 months ago

1.1.0-2373

6 months ago

1.0.6-2331

7 months ago

1.0.5-2161

8 months ago

1.0.5-2040

10 months ago

1.0.5-1912

1 year ago

1.0.5-2206

8 months ago

1.0.5-1915

1 year ago

1.0.3-1859

1 year ago

1.0.2-1857

1 year ago

1.0.5-1998

11 months ago

1.0.5-2209

8 months ago

1.0.6-2296

7 months ago

1.0.5-2167

8 months ago

1.0.5-2046

10 months ago

1.0.5-1992

11 months ago

1.0.4-1863

1 year ago

1.0.4-1866

1 year ago

1.0.6-2293

7 months ago

1.0.5-2164

8 months ago

1.0.5-2043

10 months ago

1.0.5-1995

11 months ago

1.0.5-2203

8 months ago

1.0.5-2049

10 months ago

1.0.4-1900

1 year ago

1.0.6-2290

7 months ago

1.0.4-1903

1 year ago

1.0.4-1869

1 year ago

1.0.5-2170

8 months ago

1.0.2

1 year ago

1.0.6-2302

7 months ago

1.0.5-2173

8 months ago

1.0.5-2052

10 months ago

1.0.6-2308

7 months ago

1.0.6

7 months ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.6-2305

7 months ago

1.0.5-2219

8 months ago

1.0.5-1924

12 months ago

1.0.5-2216

8 months ago

1.0.5-1921

1 year ago

1.0.5-2176

8 months ago

1.0.5-2055

10 months ago

1.0.5-2213

8 months ago

1.0.5-2179

8 months ago

1.0.5-2058

10 months ago

1.0.6-2315

7 months ago

1.0.6-2312

7 months ago

1.0.6-2278

7 months ago

1.0.5-2185

8 months ago

1.0.5-2064

10 months ago

1.0.5-2182

8 months ago

1.0.5-2061

10 months ago

1.0.6-2318

7 months ago

1.0.5-1928

12 months ago

1.0.5-1934

12 months ago

1.0.5-2228

8 months ago

1.0.5-2107

9 months ago

1.0.5-1937

12 months ago

1.0.5-1931

12 months ago

1.0.5-2101

9 months ago

1.0.5-2188

8 months ago

1.0.5-2067

10 months ago

1.0.5-2225

8 months ago

1.0.5-2104

9 months ago

1.0.5-2224

8 months ago

1.0.5-2191

8 months ago

1.0.5-2070

10 months ago

1.0.5-2075

10 months ago

1.0.5-2194

8 months ago

1.0.5-2119

9 months ago

1.0.5-1946

11 months ago

1.0.5-2118

9 months ago

1.0.4-1893

1 year ago

1.0.5-1943

11 months ago

1.0.4-1895

1 year ago

1.0.5-2111

9 months ago

1.0.5-2078

10 months ago

1.0.5-2231

8 months ago

1.0.5-1940

11 months ago

1.0.5-2237

8 months ago

1.0.5-2234

8 months ago

1.0.5-2113

9 months ago

1.0.5-2081

10 months ago

1.0.5-2240

8 months ago

1.0.5-2084

10 months ago

1.0.5-1957

11 months ago

1.0.5-2129

9 months ago

1.0.5-2007

11 months ago

1.0.5-1953

11 months ago

1.0.5-2243

8 months ago

1.0.5-2001

11 months ago

1.0.5-2126

9 months ago

1.0.5-2246

7 months ago

1.0.1

1 year ago

1.0.0

1 year ago

0.8.14

1 year ago

0.8.12

1 year ago

0.8.11

1 year ago

0.8.10

2 years ago

0.8.9

2 years ago

0.8.8

2 years ago

0.8.5

2 years ago

0.8.7

2 years ago

0.8.4

2 years ago

0.8.3

2 years ago

0.8.0

2 years ago

0.8.2

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago