-
Notifications
You must be signed in to change notification settings - Fork 293
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
Logging out from MinIO does not log out the session from Keycloak #3286
Comments
Hello @pjuarezd , |
Hello @pjuarezd , |
Looks like a duplicate of minio/operator#1969 @pjuarezd |
those are different software, MinIO Console and Operator Console have their own IDP implementation |
hi @balaKarur already checked, did a test and MinIO Console actually closes the IDP session. If helps, this is the settings I have in Tenant:
Make sure that you are following the docs for Keycloack side configurations https://min.io/docs/minio/linux/operations/external-iam/configure-keycloak-identity-management.html And finally, make sure that domain names for the keycloak service are properly set, for your logout case pay special attention to the |
@pjuarezd Request note: You confirmed and closed this ticket from your side, but due to some configuration issues, I am still facing problems. I have shared all my configurations. Could you please assist?
end_session_endpoint has https so added certs. Can you please check my configuration? This is my yaml file volumes: keycloak Configuration Doc |
hey @balaKarur I added a header to the I do not have a way to replicate your environment and the one I did and shared with you do not have this problem, I closed this issue because is not a feature request, or a bug to be fixed, your case falls into a configuration issues which we already share you how to fix: "make sure that it is reachable to MinIO and if under https, make sure to provide to minio with the certificate to trust the remote IDP endpoint in end_session_endpoint." If there is more assistance needed please reach out to [email protected] with more details. |
Hello @pjuarezd, |
NOTE
If this case is urgent, please subscribe to Subnet so that our 24/7 support team may help you faster.
Expected Behavior
When logging out from MinIO, it should also trigger a logout from Keycloak
Current Behavior
When logging out from MinIO, it's not trigger a logout from Keycloak
Possible Solution
1)When logging out from MinIO,its should logout from Keycloak also ..(This feature is urgent )
2)When logging out from MinIO,its should ask the user , do you need to logout from Keycloak also, if user say yes , then logout from keycloak.
Steps to Reproduce (for bugs)
1)Configure MinIO for authentication using Keycloak by following the steps outlined in the MinIO documentation: [https://min.io/docs/minio/linux/operations/external-iam/configure-keycloak-identity-management.html]. Once Keycloak is updated for MinIO integration, update the Keycloak details in MinIO. Now, MinIO and Keycloak are integrated.
2)Login to MinIO and perform a logout action. This should trigger a logout from Keycloak followed by a logout from MinIO.
Context
To achieve single sign-on (SSO), logging out from the MinIO client console should also log out from Keycloak.
Regression
I am sure this may not be Regression, may be need to update some configuration in minio , even to logout from keycloak.
Your Environment
minio --version
):Latest minio version : quay.io/minio/minio:RELEASE.2024-03-21T23-13-43Z
Latest keycloak : quay.io/keycloak/keycloak:24.0.2
version: "3.8"
services:
minio:
image: quay.io/minio/minio:RELEASE.2024-04-06T05-26-02Z
container_name: minio
volumes:
- ./minio_data:/data
command: server /data --console-address=":9001"
ports:
- 9000:9000
- 9001:9001
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=password
- MINIO_SERVER_URL=http://localhost:9000
- MINIO_DOMAIN=http://localhost:9000
- MINIO_IDENTITY_OPENID_CONFIG_URL_KEYCLOAK_PRIMARY=http://host.containers.internal:8088/kc/realms/myrealm/.well-known/openid-configuration
- MINIO_IDENTITY_OPENID_CLIENT_ID_KEYCLOAK_PRIMARY=minio
- MINIO_IDENTITY_OPENID_CLIENT_SECRET_KEYCLOAK_PRIMARY=SymWPBfZpbPTdeSVz4qJoC7MevG63Sat
- MINIO_IDENTITY_OPENID_DISPLAY_NAME_KEYCLOAK_PRIMARY=MinIO OpenID Login
#- MINIO_IDENTITY_OPENID_SCOPES_KEYCLOAK_PRIMARY=openid,preferred_username
- MINIO_IDENTITY_OPENID_CLAIM_NAME=policy
- MINIO_IDENTITY_OPENID_VENDOR=keycloak
- MINIO_IDENTITY_OPENID_REDIRECT_URI_DYNAMIC_KEYCLOAK_PRIMARY=on
- MINIO_IDENTITY_OPENID_SCOPES=minio-authorization
- MINIO_IDENTITY_OPENID_KEYCLOAK_REALM=myrealm
- MINIO_IDENTITY_OPENID_KEYCLOAK_ADMIN_URL=http://host.containers.internal:8088/kc/admin
#- MINIO_BROWSER_REDIRECT_URL=http://localhost:9000/minio-console
- CONSOLE_SUBPATH=/minio-console
volumes:
minio_data:
uname -a
):The text was updated successfully, but these errors were encountered: