A simple application to export identifiable data from keycloak
785
A simple Kotlin application to export user information from Keycloak and store it on a CSV file then remove personally identifiable information.
All processed users will be marked as processed in Keycloak and will not be processed in subsequent reads.
docker run -it radarbase/user-data-export:0.0.2 "user-data-exporter" "path/to/data-export-config.yml"
Sample configuration file with all configurable parameters
keycloakUrl: "http://localhost:8080/auth/"
clientId: "user-data-manager" # default is user-data-export
clientSecret: "client secret of the above clientId"
realmName: "keycloak realm name"
userDataExportFile: "keycloak-user-export.csv" # default is keycloak-user-export.csv
userDataExportPath: "etc/" # default is etc/
keycloakUserPageSize: 100 # default is 100
exportIntervalInMin: 120 # default is 120 minutes
jwtResourceName: "user-data-manager" # equal to your client id
jwtRSAPublicKeys: "public key" # public key from keycloak
This implementation works with having a separate client for confidential communication (client credentials grant type). This configuration should only done for trusted applications and deployments.
Tested with Keycloak:9.0.0 image.
Content type
Image
Digest
Size
97.1 MB
Last updated
over 5 years ago
docker pull radarbase/user-data-export