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

Add keycloak integration test #6085

Merged

Conversation

corneil
Copy link
Contributor

@corneil corneil commented Dec 6, 2024

Adds Keycloak integration test to DataflowOAuthIT
Adds Authorities mapping test similar to keycloak role usage.
Added scripts to src/local for testing keycloak locally with preconfigured roles / group and user.

NOTES

The Keycloak configuration uses roles and assigns user to a group containing those roles.
The configuration supports both basic auth endpoint like needed by dataflow shell and REST calls and OAuth2 flow needed by the UI. Default user in keycloak realm is joe:password.

@corneil corneil force-pushed the corneil/add-keycloak-integration-test branch from 53c3975 to bc49898 Compare December 6, 2024 15:32
@corneil corneil requested review from cppwfs and onobc December 9, 2024 09:32
Copy link
Contributor

@onobc onobc left a comment

Choose a reason for hiding this comment

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

Thanks for adding this @corneil . I have quite a few comments/suggestions but all in all this is looking good.

src/local/README.md Show resolved Hide resolved
src/local/README.md Show resolved Hide resolved
src/local/application-dataflow-keycloak.yaml Show resolved Hide resolved
src/local/launch-keycloak.sh Show resolved Hide resolved
src/local/launch-with-keycloak.sh Outdated Show resolved Hide resolved
@corneil corneil requested review from onobc and cppwfs December 11, 2024 12:49
Copy link
Contributor

@onobc onobc left a comment

Choose a reason for hiding this comment

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

Thanks for the updates @corneil - LGTM.

Adds Keycloak integration test to DataflowOAuthIT
Adds Authorities mapping test similar to keycloak role usage.
Added scripts to src/local for testing keycloak locally with preconfigured roles / group and user.
Fix duplicate output for skipper and dataflow and some output frames.
Refactor DefaultAuthoritiesMapperTests for JUnit 5 conventions.
Rename DataflowOAuthIT methods for JUnit 5 conventions.
Add testcontainers-keycloak to dependency management in spring-cloud-dataflow-parent.
Updates src/local/README.md with information on the scripts.
Removes create-containers.sh that used jib
Adds comment to application-dataflow-keycloak.yaml on client-secret.
@corneil corneil force-pushed the corneil/add-keycloak-integration-test branch from 94862fd to 78bf012 Compare December 12, 2024 13:12
@corneil
Copy link
Contributor Author

corneil commented Dec 12, 2024

Squashed all changes into one commit which allowed dropping some unneeded changes.

@corneil corneil merged commit 5e5edc5 into spring-cloud:main Dec 12, 2024
3 checks passed
@corneil corneil deleted the corneil/add-keycloak-integration-test branch December 12, 2024 13:39
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