1.1.0 • Published 5 months ago

@continuoussecuritytooling/keycloak-reporter v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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

5 months ago

1.0.5-2092

8 months ago

1.0.4-1906

11 months ago

1.1.0-2364

5 months ago

1.0.5-2251

6 months ago

1.0.6-2343

5 months ago

1.0.5-2095

8 months ago

1.1.0-2363

5 months ago

1.1.0-2367

5 months ago

1.0.5-1968

10 months ago

1.0.5-2019

9 months ago

1.0.5-1964

10 months ago

1.0.4-1872

11 months ago

1.0.6-2340

5 months ago

1.0.5-2013

9 months ago

1.0.5-1960

10 months ago

1.0.5-2132

7 months ago

1.0.5-2252

6 months ago

1.0.5-2098

8 months ago

1.0.5-2010

9 months ago

1.0.4-1876

11 months ago

1.0.5-2138

7 months ago

1.0.5-2258

6 months ago

1.0.5-2137

7 months ago

1.0.5-2016

9 months ago

1.0.5-2257

6 months ago

1.0.6-2354

5 months ago

1.0.5-2261

6 months ago

1.1.0-2358

5 months ago

1.0.5-1979

10 months ago

1.0.4-1880

11 months ago

1.0.5-1975

10 months ago

1.0.4-1883

11 months ago

1.0.6-2351

5 months ago

1.0.4-1886

11 months ago

1.0.5-2144

7 months ago

1.0.5-2264

6 months ago

1.0.5-2143

7 months ago

1.0.5-2022

9 months ago

1.0.5-1973

10 months ago

1.0.5-2028

9 months ago

1.0.4-1889

11 months ago

1.0.5-2147

7 months ago

1.0.5-2267

6 months ago

1.0.5-2025

9 months ago

1.1.0-2383

5 months ago

1.1.0

5 months ago

1.1.0-2380

5 months ago

1.0.6-2324

5 months ago

1.0.6-2289

6 months ago

1.0.5-2273

6 months ago

1.0.5-2031

9 months ago

1.0.5-2272

6 months ago

1.0.5-2150

7 months ago

1.0.2-1858

11 months ago

1.0.5-1989

10 months ago

1.0.5-1986

10 months ago

1.0.6-2284

6 months ago

1.0.5-2034

9 months ago

1.0.5-1983

10 months ago

1.0.5-2153

7 months ago

1.0.6-2281

6 months ago

1.0.5-2039

9 months ago

1.0.5-2158

7 months ago

1.0.6-2337

5 months ago

1.1.0-2370

5 months ago

1.0.6-2334

5 months ago

1.1.0-2376

5 months ago

1.0.6-2299

6 months ago

1.1.0-2373

5 months ago

1.0.6-2331

5 months ago

1.0.5-2161

7 months ago

1.0.5-2040

9 months ago

1.0.5-1912

11 months ago

1.0.5-2206

7 months ago

1.0.5-1915

11 months ago

1.0.3-1859

11 months ago

1.0.2-1857

11 months ago

1.0.5-1998

9 months ago

1.0.5-2209

7 months ago

1.0.6-2296

6 months ago

1.0.5-2167

7 months ago

1.0.5-2046

9 months ago

1.0.5-1992

10 months ago

1.0.4-1863

11 months ago

1.0.4-1866

11 months ago

1.0.6-2293

6 months ago

1.0.5-2164

7 months ago

1.0.5-2043

9 months ago

1.0.5-1995

9 months ago

1.0.5-2203

7 months ago

1.0.5-2049

9 months ago

1.0.4-1900

11 months ago

1.0.6-2290

6 months ago

1.0.4-1903

11 months ago

1.0.4-1869

11 months ago

1.0.5-2170

7 months ago

1.0.2

11 months ago

1.0.6-2302

6 months ago

1.0.5-2173

7 months ago

1.0.5-2052

9 months ago

1.0.6-2308

6 months ago

1.0.6

6 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.6-2305

6 months ago

1.0.5-2219

6 months ago

1.0.5-1924

11 months ago

1.0.5-2216

7 months ago

1.0.5-1921

11 months ago

1.0.5-2176

7 months ago

1.0.5-2055

8 months ago

1.0.5-2213

7 months ago

1.0.5-2179

7 months ago

1.0.5-2058

8 months ago

1.0.6-2315

5 months ago

1.0.6-2312

5 months ago

1.0.6-2278

6 months ago

1.0.5-2185

7 months ago

1.0.5-2064

8 months ago

1.0.5-2182

7 months ago

1.0.5-2061

8 months ago

1.0.6-2318

5 months ago

1.0.5-1928

11 months ago

1.0.5-1934

10 months ago

1.0.5-2228

6 months ago

1.0.5-2107

8 months ago

1.0.5-1937

10 months ago

1.0.5-1931

10 months ago

1.0.5-2101

8 months ago

1.0.5-2188

7 months ago

1.0.5-2067

8 months ago

1.0.5-2225

6 months ago

1.0.5-2104

8 months ago

1.0.5-2224

6 months ago

1.0.5-2191

7 months ago

1.0.5-2070

8 months ago

1.0.5-2075

8 months ago

1.0.5-2194

7 months ago

1.0.5-2119

8 months ago

1.0.5-1946

10 months ago

1.0.5-2118

8 months ago

1.0.4-1893

11 months ago

1.0.5-1943

10 months ago

1.0.4-1895

11 months ago

1.0.5-2111

8 months ago

1.0.5-2078

8 months ago

1.0.5-2231

6 months ago

1.0.5-1940

10 months ago

1.0.5-2237

6 months ago

1.0.5-2234

6 months ago

1.0.5-2113

8 months ago

1.0.5-2081

8 months ago

1.0.5-2240

6 months ago

1.0.5-2084

8 months ago

1.0.5-1957

10 months ago

1.0.5-2129

7 months ago

1.0.5-2007

9 months ago

1.0.5-1953

10 months ago

1.0.5-2243

6 months ago

1.0.5-2001

9 months ago

1.0.5-2126

8 months ago

1.0.5-2246

6 months ago

1.0.1

12 months 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

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago