Closed misterjacko closed 1 week ago
I encountered the same error during upgrade, and came to the same conclusion.
:+1:
Hello,
Thanks for the contribution. This was actually an intentional breaking change, hence the major version bump. This was done because the feeds service is now removed as a dependency from the chart. Anchore Enterprise will now use Anchore's hosted feeds/data service. By default, Anchore's hosted feeds service will not exclude any providers or package_types. If your deployment was using an external/separately deployed feeds service prior, we could not have visibility into what packages/providers may have been disabled, so the decision was made to have users explicitly pass in which providers/packages they want to disable to keep vulnerability results the same.
You can refer to the release notes where this is called out with a WARNING to see how to exclude providers or package types. In response to your concerns, we will make a patch to try to set it to no exclusions if certain conditions apply (eg. used dependent feeds chart and no package/providers exclusions were provided), but in the case where an external feeds service was used, we will still have this fail and require manual action from the user.
Thanks again
I don't know if this is just an issue of a breaking change. I am a potential customer and this is my initial deploy for a POC. Not any sort of upgrade for anything.
The values in that spot are a list/array. you are using the wrong "empty" values.
if the intention is to force the user to address via braking a vanilla helm deploy such a requirement should be outlined in the install docs. https://docs.anchore.com/current/docs/deployment/helm/
I don't know if this is just an issue of a breaking change. I am a potential customer and this is my initial deploy for a POC. Not any sort of upgrade for anything.
The values in that spot are a list/array. you are using the wrong "empty" values.
if the intention is to force the user to address via braking a vanilla helm deploy such a requirement should be outlined in the install docs. https://docs.anchore.com/current/docs/deployment/helm/
Thanks for the input. This was probably an oversight on our part for the new customers/user scenario. We'll try to get this patched asap and will update the docs from that page as well.
Thanks again, Hung
If you must keep it null, I humbly suggest a comment explaining in the default values.yaml pointing to your other docs as that is where people will initially go to investigate.
That makes perfect sense. I think the plan is going to be:
if its a new install:
set it as an empty list.
else if its an upgrade:
if the feeds chart was not enabled (ie. using an externally deployed feeds service): make a manual intervention required
else if the feeds chart _was_ enabled, we'll try to map any excluded packages/providers accordingly as we'll have the values.
In addition to the above, we'll be sure to update the docs and values files to make this more clear. Thanks again. We definitely appreciate any and all feedback, especially when it comes to usability and where we might have shortcomings.
Hung
In the v5.10.0 release a section was added to the default helm values that is invalid
This conflicts with the requirements of the anchore_configmap template where those cant be null.
The code expects a list there so the null values can be changed to empty lists
[]
and the base values will deploy.new values:
will be submitting PR to resolve.