-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
invalid: metadata.labels for createBy when SSO subject does not start with alphanumeric charecters #4880
Comments
would you like to submit a PR to fix? |
https://stackoverflow.com/questions/106179/regular-expression-to-match-dns-hostname-or-ip-address I think we must remove underscores completely, and trim hyphens from both ends. This bit of code has produced many bugs for its size. |
I can see if I can work out a PR, I am seeing if I can get the compile to run so I can try and write some tests for this also. |
Added a PR with fixes to clean the beginning and ends of the creator label, and added tests for it Let me know if there is anything else |
This fix is out on https://github.com/argoproj/argo/releases/tag/v2.12.5 |
Summary
Submitting a workflow from the UI when SSO is enabled fails and throws a kubernetes validation error
Diagnostics
What Kubernetes provider are you using?
EKS v1.18
What version of Argo Workflows are you running?
reproduced in 2.12.2 and 2.12.4
The error we receive is
where
_Cjks_k4UFqRHnV8IEbPNXVrhpAeJZa6It-6cxYHGD8
is the subject name in user infolooking at argo/workflow/creator/creator.go
It appears that some of this was addressed in a recent PR, but a change to the
dnsFriendly
function something like this would probably address the problem we are seeingSince that should satisfy the regex used for validation in the above error message
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.
The text was updated successfully, but these errors were encountered: