Skip to content

Conversation

@pjuarezd
Copy link
Member

What does this do?

Load the available CA in the API when invoking the openid-connect/logout remote IDP endpoint.

Found that even though the CA certificates are properly provided to minio console, the invoke to the logout endpoint when using OIDP was not loading the CA certificates, causing several things:

  1. API /api/v1/logout returned a 500 error.

  2. API call returned tls: failed to verify certificate: x509: certificate signed by unknown authority error:

{
    "detailedMessage": "Post \"https://kc-service.keycloak.svc.cluster.local/realms/oidc-iam/protocol/openid-connect/logout\": tls: failed to verify certificate: x509: certificate signed by unknown authority",
    "message": "an error occurred, please try again"
}
  1. User session on IDP was not closed

  2. User session in Minio Console was not really closed, user is still logged in

idp no logout

@pjuarezd pjuarezd self-assigned this Sep 12, 2023
dvaldivia
dvaldivia previously approved these changes Sep 12, 2023
@pjuarezd pjuarezd force-pushed the bugfix-load-ca-logout branch from 2c55345 to 1e553a3 Compare September 13, 2023 19:43
…gout` remote IDP endpoint.

Out error log to stdout instead of return error to web client
@pjuarezd pjuarezd force-pushed the bugfix-load-ca-logout branch from 1e553a3 to c01a283 Compare September 13, 2023 20:40
Copy link
Collaborator

@bexsoft bexsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bexsoft bexsoft merged commit 65b0bab into minio:master Sep 13, 2023
@pjuarezd pjuarezd deleted the bugfix-load-ca-logout branch September 13, 2023 21:27
cesnietor pushed a commit to cesnietor/console that referenced this pull request Jan 12, 2024
cesnietor pushed a commit to cesnietor/console that referenced this pull request Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants