You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When applying a config with custom authentication flow, somewhere near the end keycloak-config-cli makes a series of silent requests to update authenticator configurations, even if they haven't changed. This can be seen in the Keycloak admin events:
I assume due to Keycloak Admin API limitations there's no efficient way to check if config changed or not, so the tool is just overwriting everything just in case (correct me if I'm wrong). (since the tool is using realm export representation, can't it compare new config with old one to avoid redundant updates?)
But I'd expect some feedback when it does it instead of silence, as the delay is quite significant with a large number of configurations in a file.
Proposed Solution
Add some feedback to stdout when updating authenticator configs so it doesn't appear like the tool isn't doing anything.
Printing a separate log message for each request would probably be too much, so maybe it could print some progress every N number of seconds? E.g.
gim-
changed the title
No stdout output/feedback during authenticator config update requests
No stdout output/feedback during long series of authenticator config update requests
Jul 19, 2024
This Tool in general does not override directly. It does an export and compares it with your import using remote state management. You can refer to this documentation to see
This is the file that performs the export and then does the comparison to ensure that the configurations are synchronized
This Tool in general does not override directly. It does an export and compares it with your import using remote state management. You can refer to this documentation to see
This is the file that performs the export and then does the comparison to ensure that the configurations are synchronized
Concerning the feedback to stdout, we will see how to work on it.
Problem Statement
When applying a config with custom authentication flow, somewhere near the end keycloak-config-cli makes a series of silent requests to update authenticator configurations, even if they haven't changed. This can be seen in the Keycloak admin events:
I assume due to Keycloak Admin API limitations there's no efficient way to check if config changed or not, so the tool is just overwriting everything just in case (correct me if I'm wrong).(since the tool is using realm export representation, can't it compare new config with old one to avoid redundant updates?)But I'd expect some feedback when it does it instead of silence, as the delay is quite significant with a large number of configurations in a file.
Proposed Solution
Add some feedback to stdout when updating authenticator configs so it doesn't appear like the tool isn't doing anything.
Printing a separate log message for each request would probably be too much, so maybe it could print some progress every N number of seconds? E.g.
Environment
Additional information
No response
Acceptance Criteria
The text was updated successfully, but these errors were encountered: