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 · 0 comments
Open

Remote state not used for managed scopes and scopeMappings #1012

Skg-754 opened this issue Apr 25, 2024 · 0 comments
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant