-
Notifications
You must be signed in to change notification settings - Fork 21
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
UDS Package CR with URI for the SSO ClientID Fails to Create #451
Comments
Just wanted to update this issue as we identified the root cause here but haven't found a happy path forward. Currently we use the
In all these places we currently just use the client ID without any sanitizing/validating that it is a valid name for those use-cases. We started to go down the route of sanitizing names before using them but determined that for the pepr store case it would be helpful to have this resolved/handled in pepr itself, rather than having to build sanitization, mapping, migrations, etc on our side. Currently waiting on an implementation there - we likely need to discuss with the pepr team what will make the most sense for rolling that out. |
Doc for context on Nexus requiring a URI for the entity id. Entity ID == Client ID |
@mjnagel -- thoughts on an (optional) |
@blancharda there are plans to sanitize these keys on the pepr side so we had held off on implementing anything in our own custom code to account for this scenario. We could consider adding something like this for a separate ref, it just means we would have to track throughout all places we use the token (some of which don't have the full Package spec). Just something for us to consider if we did want to implement this on our own. |
Posting another update! After some experimenting and testing it appears that using something like
|
I have the implementation, fuzzing, property-based and unit tests ready to go for this on the Pepr side, need to write a journey test and this one is ready for review. Should be able to get it reviewed on Monday. |
Moving back into planned work - Pepr update is the primary piece here and then ensuring that our code handles this case well. |
Blocked on defenseunicorns/pepr#1047 |
Environment
Device and OS: NUC Ubuntu
App version: 0.22.0
Kubernetes distro being used: k3d
Other:
Steps to reproduce
Expected result
Client gets created and the package CR gets created and has a Ready status.
Actual Result
Client gets created, but keycloak ends up in a forever retry loop erroring with a
jdbc unique index or primary key violation
.The Package CR continually goes from Pending to Failed.
Visual Proof (screenshots, videos, text, etc)
keycloak.log
The text was updated successfully, but these errors were encountered: