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
Make sure to sanitize entity IDs before usage in labels #55
Conversation
I tested this on my EKS cluster as well. BEFORE:
AFTER:
|
UPDATE: I started hitting the char length limit as well, so decided to switch to using just entity ID instead of including the full resource name. Note that this makes the revoke command backwards incompatible. Note that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks for the review Petri! Will merge and release. |
This is backwards incompatible
Kubernetes labels can only support alphanumerics,
-
,_
, and.
. This can be problematic when adding labels that include the entity IDs, which is free form and user provided. To address this, this PR updates the label generators to sanitize the values before adding them into the label.