You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Kyverno 1.10.1+ broke ability to clone secrets with names > 63 characters #8447
In Kyverno 1.10.0, ClusterPolicies which cloned secrets were able to clone secrets of any name length, but in Kyverno 1.10.1+ it can only clone secrets with name length up to 63 characters.
This is because #7436 introduced a new label generate.kyverno.io/source-name which is added to the generated secret. However, labels are only allowed to be 63 characters in length, which obviously will not work if the source secret has a longer name than that.
I propose we either:
change it to an annotation (which can be multiple KB in length)
remove the generate.kyverno.io/source-name label
keep the label, but replace it with a hash that results in less than 63 characters (which might defeat the user-visibility of this label)
@MariamFahmy98 Are you working on this? I think this is a duplicate of #4675. I had assigned myself #4675 previously. Is it ok if I continue working on it?
@Chandan-DK I am interested in which approach you plan to take, I am partial to the idea of using annotations, because it will still be human readable, but can be uncapped in terms of length.
The only caveat is that it is a little more complex (and less efficient) to do filtering than with labels, so if that is a concern, we might have to use the hash approach.
@eddycharly, I just want to make sure this is going to be included in the next release of Kyverno, given its a significant regression. (It is preventing many people from upgrading beyond 1.10.0).
@realshuting@vishal-chdhry@MariamFahmy98, I just want to confirm the status of this issue, as it was a pretty significant regression in 1.10.1 and I strongly believe this must block the release of Kyverno 1.11.0.
@JimBugwadia@MariamFahmy98 I am quite worried about the progression of 1.11.0 release candidates when this issue is not resolved.
If this is not patched before the final 1.11.0, it will mean that 1.10.0 was the latest version that is correctly able to execute generate policies on secrets with names longer than 63 characters, as this was broken in 1.10.1.
I want to highlight that this is not the only recent case of a significant breaking regression that is not yet resolved, for example, #7718 (which is less pressing than the one in this thread, but still important).
I worry that breaking regressions are not seen as a priority to the maintainers of the Kyverno project. I will likely stop using Kyerno (and recommend others do the same) if the serious regression (raised in this thread) is not resolved before 1.11.0.
The mutate issue is present for all versions from 1.10.1 to 1.11.1, so 1.10.0 is still the only "safe" version (but it has lots of other issues that were fixed in later releases, so it's annoying to have to keep using it).
Activity
Chandan-DK commentedon Sep 19, 2023
@MariamFahmy98 Are you working on this? I think this is a duplicate of #4675. I had assigned myself #4675 previously. Is it ok if I continue working on it?
MariamFahmy98 commentedon Sep 19, 2023
Yeah sure. Go ahead. I will assign it to you.
thesuperzapper commentedon Sep 19, 2023
@Chandan-DK I am interested in which approach you plan to take, I am partial to the idea of using annotations, because it will still be human readable, but can be uncapped in terms of length.
The only caveat is that it is a little more complex (and less efficient) to do filtering than with labels, so if that is a concern, we might have to use the hash approach.
Chandan-DK commentedon Sep 19, 2023
@thesuperzapper This is the approach mentioned by @realshuting #4675 (comment)
thesuperzapper commentedon Oct 4, 2023
@eddycharly, I just want to make sure this is going to be included in the next release of Kyverno, given its a significant regression. (It is preventing many people from upgrading beyond
1.10.0).thesuperzapper commentedon Oct 18, 2023
@realshuting @vishal-chdhry @MariamFahmy98, I just want to confirm the status of this issue, as it was a pretty significant regression in
1.10.1and I strongly believe this must block the release of Kyverno1.11.0.thesuperzapper commentedon Oct 24, 2023
@JimBugwadia @MariamFahmy98 I am quite worried about the progression of
1.11.0release candidates when this issue is not resolved.If this is not patched before the final
1.11.0, it will mean that1.10.0was the latest version that is correctly able to execute generate policies on secrets with names longer than 63 characters, as this was broken in1.10.1.I want to highlight that this is not the only recent case of a significant breaking regression that is not yet resolved, for example, #7718 (which is less pressing than the one in this thread, but still important).
I worry that breaking regressions are not seen as a priority to the maintainers of the Kyverno project. I will likely stop using Kyerno (and recommend others do the same) if the serious regression (raised in this thread) is not resolved before
1.11.0.JimBugwadia commentedon Oct 25, 2023
@thesuperzapper - thanks for the feedback. We discussed this earlier in the week and are tracking for 1.11.0.
thesuperzapper commentedon Dec 11, 2023
This issue also affects
mutaterules withtargetsdefined, I have raised a separate issue:targetsfail to apply for trigger resources with names > 63 characters #9134The mutate issue is present for all versions from
1.10.1to1.11.1, so1.10.0is still the only "safe" version (but it has lots of other issues that were fixed in later releases, so it's annoying to have to keep using it).