chore: remove allowNewContainerFacts feature flag - #7143
Merged
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Contributor
This comment has been minimized.
This comment has been minimized.
jcambier
approved these changes
Aug 17, 2026
CatalinSnyk
approved these changes
Aug 18, 2026
kateeselius
enabled auto-merge
August 18, 2026 12:01
This comment has been minimized.
This comment has been minimized.
PR Reviewer Guide 🔍
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Removes the
allowNewContainerFactsfeature flag (constantCONTAINER_NEW_FACTS_FEATURE_FLAG) from the container test/monitor flow. The flag is 100% rolled out, so all facts returned bysnyk-docker-pluginare now passed through unfiltered.Removed:
CONTAINER_NEW_FACTS_FEATURE_FLAGconstant insrc/cli/commands/constants.tsfilterDockerFactshelper, theFILTERED_FACT_TYPES/ADDITIONAL_FILTERED_FACT_TYPES_FOR_APP_PROJECTSsets, and theshouldFilterFactinternal insrc/lib/ecosystems/common.tsfilterDockerFactscalls at the three call sites (snyk-test/assemble-payloads.ts,ecosystems/monitor.ts,ecosystems/test.ts)test/jest/unit/ecosystems-common.spec.ts(its purpose was to test the removed behavior)Notes for the reviewer
isUnmanagedEcosystemincommon.tsis preserved; only the docker-fact filtering was tied to the flag.More information
The
allowNewContainerFactsflag previously gated whether new fact types (containerConfig,history,pluginVersion,platform,pluginWarnings,imageNames,ociDistributionMetadata) were included in the CLI's payloads to the Snyk API. Now that it's fully rolled out, the filtering path is dead code.