Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote state not used for managed scopes and scopeMappings #1012

Open
Skg-754 opened this issue Apr 25, 2024 · 1 comment
Open

Remote state not used for managed scopes and scopeMappings #1012

Skg-754 opened this issue Apr 25, 2024 · 1 comment
Assignees
Labels

Comments

@Skg-754
Copy link

Skg-754 commented Apr 25, 2024

Current Behavior

When the environment variable IMPORT_REMOTESTATE_ENABLED=true is set, remote state is not working for "clientScopes" and "scopeMappings" resources. All "clientScopes" and "scopeMappings" which are not present in the json import files are deleted from keycloak.

Expected Behavior

When the environment variable IMPORT_REMOTESTATE_ENABLED=true, only "clientScopes" and "scopeMappings" present in the remote state and not present in the json import files should be deleted from keycloak.

Steps To Reproduce

1. Set env var IMPORT_REMOTESTATE_ENABLED=true
2. Create a ClientScope and a ScopeMapping manually in keycloak
3. Start a keycloak-config-cli with a JSON import file containing ClientScopes and ScopeMappings
4. Manually created ClientScope and ScopeMapping are deleted from keycloak.

Environment

  • Keycloak Version: 22.0.4
  • keycloak-config-cli Version: 5.9.0
  • Java Version: 17.0.8

Anything else?

No response

@Skg-754 Skg-754 added the bug label Apr 25, 2024
@Calebasah Calebasah self-assigned this Oct 16, 2024
@Calebasah
Copy link
Collaborator

Hello @Skg-754, We encountered a compatibility issue between keycloak-config-cli:5.9.0 and Keycloak 22.0.4. Specifically, when trying to import the configuration, an UnrecognizedPropertyException error was thrown due to the features field not being recognized by the Keycloak version.
Question: Could you please confirm the exact tag of keycloak-config-cli that was used when generating the responses in the logs? It seems like there might be a compatibility issue, and we want to ensure that the correct tag is being used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

No branches or pull requests

2 participants