Skip to content

Conversation

prabhu
Copy link
Collaborator

@prabhu prabhu commented May 29, 2025

Image signing is now performed directly from an environment variable without the need to create a file with the private key.

Then I thought of a crazy idea. I generated an SBOM and asked cdxgenGPT to look for packages with multiple versions that could be overridden to reduce the dependencies. From this list, I kept adding one override at a time and repeatedly ran the unit tests (across node versions). I managed to reduce dependencies from 624 to 587, a 5.9% reduction!

node bin/cdxgen.js -t pnpm -o bom.json --no-recurse $(pwd)

Screenshot 2025-05-29 at 17 05 24

prabhu added 7 commits May 29, 2025 16:22
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
@prabhu prabhu marked this pull request as draft May 29, 2025 16:42
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
@prabhu
Copy link
Collaborator Author

prabhu commented May 29, 2025

The two problematic packages that are pulling old dependencies are:

  • jest@29.7.0
  • table@6.9.0

@prabhu prabhu marked this pull request as ready for review May 29, 2025 17:04
@prabhu prabhu changed the title fileless image sign fileless image sign + trim deps with cdxgen May 29, 2025
@prabhu prabhu merged commit 29622bc into master May 29, 2025
72 checks passed
@prabhu prabhu deleted the feature/fileless-image-sign branch May 29, 2025 18:07
@prabhu
Copy link
Collaborator Author

prabhu commented May 29, 2025

More examples:

Screenshot 2025-05-29 at 18 50 26 Screenshot 2025-05-29 at 18 53 06

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant