Skip to content

Lal/keycloak group members prod 16016 - #1203

Open
lalepee wants to merge 14 commits into
mainfrom
LAL/keycloak_group_members_PROD-16016
Open

Lal/keycloak group members prod 16016#1203
lalepee wants to merge 14 commits into
mainfrom
LAL/keycloak_group_members_PROD-16016

Conversation

@lalepee

@lalepee lalepee commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

This add a link from the API to Keycloak admin which is a different link than the authentication.

@lalepee
lalepee force-pushed the LAL/keycloak_group_members_PROD-16016 branch 3 times, most recently from 984a2ad to f925ab3 Compare July 27, 2026 13:15
@lalepee
lalepee force-pushed the LAL/keycloak_group_members_PROD-16016 branch from f925ab3 to 1f9af68 Compare July 27, 2026 14:36

@sjoubert sjoubert left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we also need to add tests for all the new endpoints:

  • unit/integration tests that check the RBAC requirements
  • controller test in the main root module to generate documentation

The merge will also be blocked with the integration of the new keycloak configuration into terraform (maybe the helm chart, but I don't think so) and by the deployment/update of tenant (and the broken CI tenant that needs to be moved from warp to vela) with the new terraform module.

return keycloak.getAllGroups().map { it.name }
}

override fun listKeycloakMembers(): OrganizationMembers {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

According to the design, shouldn't this be secured behind a Platform.Admin?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🤔 Actually I'm not sure the security check should be done here. Shouldn't it be handled somewhere in common/src/main/kotlin/com/cosmotech/common/security/AbstractSecurityConfiguration.kt? As well as all the other new endpoints?

Comment thread organization/src/main/openapi/organization.yaml Outdated
Comment thread common/src/main/kotlin/com/cosmotech/common/security/keycloak/KeycloakClient.kt Outdated
Comment thread common/src/main/kotlin/com/cosmotech/common/security/keycloak/KeycloakClient.kt Outdated
Comment thread organization/src/main/openapi/organization.yaml
Comment thread common/src/main/kotlin/com/cosmotech/common/tests/CsmTestBase.kt
return keycloak.getAllGroups().map { it.name }
}

override fun listKeycloakMembers(): OrganizationMembers {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🤔 Actually I'm not sure the security check should be done here. Shouldn't it be handled somewhere in common/src/main/kotlin/com/cosmotech/common/security/AbstractSecurityConfiguration.kt? As well as all the other new endpoints?

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

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.

3 participants