-
Notifications
You must be signed in to change notification settings - Fork 191
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
Roll-out-create failure with openid connect #992
Comments
Any updates on this questions and the solution to it? |
Hi, I found a working example here #966 What is correct setup to authenticate users via an Authentication Provider and give to a few the rights to create a Rollout? |
Hi, |
@slv-009 Indeed implementation improved quite a bit. Any update on this? |
@camal-cakar-gcx InMemoryUserManagementAutoConfiguration should not be involved in an OIDC setup if it is configured properly. So no need for configuring any users on hawkBit side |
Firstly, apologies for the late response. I reconfigured my test scenario as set out initially, and this time using 030M6, it works perfectly, so I can confirm that any changes have been effective and resolved what I experienced above. Really appreciate the great effort here. Thank you. I'll close this for now. |
Never mind! Same over here: Occasionally distracted by my day to day job which require some time to answer. Nevertheless glad to see you happy with hawkBit and the recently made changes |
Hi, |
@camal-cakar-gcx , Im running on a VM and built from sources as I need the S3 extension, I havent tried it with the docker. My initial test scenario Begin August 2020 had the scenario. This week I deleted the hawkbit folder, ran a fresh "git clone" and "mvn clean install", applied the application.properties file and it works perfectly. The only difference that was obvious on the GUI is the save icon under the system config menu. |
Thanks @slv-009 that is clarifying why it is working for you :) My context is running Hawkbit within Kubernetes connected to Keycloak for OIDC. So I am relying on the latest pushed Container Image. On a side note, I see the old save image. Maybe it is time for a new Container Image tag? |
Definitively! I'm almost done with the paperwork for the upcoming 0.3.0M7. Hope to get a fresh version out of the door next week or at least the week after ... so stay tuned |
Hi all.
I would appreciate some assistance / guidance with regard to a hawkbit / keycloak (openid connect) integration. In summary, we’ve built a hawkbit server and using a reverse proxy for ssl termination, and using gateway authentication (ddi) for now. The next step, a keycloak instance was added to manage / authenticate users, all users created in keycloak for now. Initially it all seemed to be working well. We have however come across an issue with regard to creating rollouts, when logged in to hawkbit with a keycloak user.. all the functions with regard to create, delete, update targets, distributions and artifacts is working as expected, except creating a new rollout. When creating a new roll-out, it fails to complete, and remains in the creating state on the GUI.
The following error appears in the logs:
o.e.h.r.jpa.JpaSystemManagement: Exception on forEachTenant execution for tenant DEFAULT with error message [No such user]. Continue with next tenant.
If the new rollout is deleted the, it deletes successfully.
If the hawkbit configuration is changed and keycloak auth is removed (revert to direct login) the rollout can be created and deployed successfully.
In order to remove as many components as possible, the above was rebuilt in a lab and consists of a hawkbit install from sources, using an external mariadb, and then a keycloak docker, also using an external mariadb. All connections (hawkbit & keycloak) are http on port 8080.(Seperate ip’s) If the keycloak is removed, and logging directly into hawkbit, the roll-out can successfully be created.
The following roles / permissions have been added to the keycloak user for this hawkbit client:
APPROVE_ROLLOUT, CREATE_REPOSITORY, CREATE_ROLLOUT, CREATE_TARGET, DELETE_ROLLOUT,
DELETE_REPOSITORY, DELETE_TARGET, DOWNLOAD_REPOSITORY_ARTIFACT, HANDLE_ROLLOUT,
READ_REPOSITORY, READ_ROLLOUT, READ_TARGET, READ_TARGET_SECURITY_TOKEN,
ROLLOUT_MANAGEMENT, TENANT_CONFIGURATION, UPDATE_REPOSITORY, UPDATE_TARGET,
UPDATE_ROLLOUT, SYSTEM_ADMIN,
And various combinations of the above have been attempted without success.
Any assistance will be appreciated!
Hopefully I've missed something simple!
Please let me know if any other information is required.
The text was updated successfully, but these errors were encountered: