Repository navigation
fix(deps): close all 67 known dependency advisories and gate against new ones - #5
Merged
Merged
Conversation
Trivy reported 33 advisories against the runtime classpath, none of which had ever been checked because nothing scans this build. jackson and postgresql are declared here and are bumped directly. netty and jetty are not: netty arrives with the AWS SDK's netty-nio-client and jetty with javalin-ssl, so the only way to raise them without waiting for those projects is a platform constraint. Both stay on the line their consumers compile against, because netty 4.2.x and jetty 12.1.x are not drop-in replacements for what the AWS SDK and Javalin expect. Also adds the task that made the scan possible. Trivy reads lockfiles and this build has none, while the shadow jar flattens away the nested jars it would identify dependencies by, so the resolved runtime classpath is copied out and the scanner is pointed at the jars themselves. Verified: 33 advisories to 0, with the unit and integration suites passing.
Trivy reported 18 advisories. axios is declared here and is bumped; postcss and fast-uri were already inside their parents' accepted ranges and only needed the lockfile refreshed. unhead needed more than a bump. @vueuse/head 2.0.0 is its last release and pins @unhead/vue to the 1.x line, so the three advisories against unhead 1.11.20 are unreachable from there. An override would have been dishonest: it would place unhead 2.x under an @unhead/vue that calls 1.x internals. The head management therefore moves to @unhead/vue 3, which is where upstream went, and which the project's Vue and Vite versions already satisfy. The migration is two import lines, since the only usage is createHead in main.js and a single useHead in App.vue. Verified against a running dev server, not just a build: a probe title set through useHead reaches document.title. The Vue plugin warning visible in the console predates this change, comes from vue3-tabs, and reproduces on an unmodified checkout. Verified: 18 advisories to 0, npm ci and the licence gate still pass.
Trivy reported 16 advisories. Bumping next to 15.5.21 cleared the six against Next itself, and js-yaml was already inside gray-matter's accepted range. postcss and sharp needed overrides. Next pins postcss to an exact version and constrains sharp to a range that excludes the fixed release, so neither moves on its own. Overrides are load bearing here rather than cosmetic, which is why the change is verified by a full next build: every guide and plugin page still prerenders.
Sixty-seven advisories accumulated across the JVM and npm trees without anything noticing, because nothing was looking. Renovate raises versions but says nothing about whether the current ones are exploitable, and the licence gate beside this one answers a different question. Trivy now scans all three dependency trees and fails on CRITICAL, HIGH and MEDIUM. The backend scan runs against the collected runtime classpath rather than the sources, since Trivy reads lockfiles and this build has none. Deliberately not set: --ignore-unfixed. An advisory with no released fix is still worth knowing about, and suppressing it should be a recorded decision in .trivyignore rather than a blanket flag.
The vulnerability gate has no escape hatch documented, so the first person to meet an advisory without a released fix has to guess whether to widen the severity filter, add --ignore-unfixed, or pin something. The file is empty on purpose and says what qualifies: no fix exists, or the code path is provably unreachable. It also asks for a reason and an expiry, so a suppression that outlived its cause surfaces instead of becoming permanent.
This comment has been minimized.
This comment has been minimized.
Test results 67 files 67 suites 10m 6s ⏱️ Results for commit eed6e68. ♻️ This comment has been updated with latest results. |
`gradle build test`, the task set the shared build workflow runs, failed validation: jacocoTestReport reads execution data out of the build directory that integrationTest also writes to, without any ordering between them. Gradle refuses that rather than risk a report built from data a task it may schedule later has not produced yet. Two tasks write there. The coditory plugin contributes `integration` and the JVM test suite plugin contributes `integrationTest`, and only the first was ordered. Pre-existing and unrelated to the dependency work in this branch: it reproduces on an unmodified main. It surfaces now because the build job in question has never actually run. It failed at startup validation until this week, and has been skipped on pushes since.
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.
Trivy reported 67 advisories across the three dependency trees. All of them are closed here, and a CI gate stops the next batch from accumulating the same way.
None of these had ever been checked: nothing in this repository scanned for known advisories. Renovate raises versions, but it says nothing about whether the ones in use are exploitable.
What was found and fixed
Zero remaining at every severity, LOW included.
The three that needed more than a bump
netty and jetty are not declared here. netty arrives with the AWS SDK's
netty-nio-client, jetty withjavalin-ssl. Waiting for those projects to bump was the alternative, so both are raised with a platform constraint instead. Each stays on the line its consumer compiles against: netty 4.2.x and jetty 12.1.x are not drop-in replacements for what the AWS SDK and Javalin expect.unhead was unreachable from where we were.
@vueuse/head2.0.0 is its final release and pins@unhead/vueto 1.x, so no bump reaches the fixed unhead. An override would have been dishonest, placing unhead 2.x under an@unhead/vuethat calls 1.x internals. Head management therefore moves to@unhead/vue3, which is where upstream went and which this project's Vue and Vite versions already satisfy. The migration is two import lines; the only usage is onecreateHeadand oneuseHead.postcss and sharp are pinned by Next, exactly and by range respectively, so neither moves on its own. Both are overridden.
How each change was verified
useHeadreachesdocument.title, so the head migration actually works.next build. The overrides are load bearing, so a green install proves nothing; every guide and plugin page still prerenders.One finding worth stating plainly: the console shows a Vue plugin warning near the head setup. It predates this branch, comes from
vue3-tabs, and reproduces on an unmodified checkout. It is not a regression from the unhead migration.The gate
A new
Vulnerabilitiesjob scans all three trees and fails on CRITICAL, HIGH and MEDIUM.The backend scan needed groundwork. Trivy reads lockfiles and this build has none, and the shadow jar flattens away the nested jars Trivy would identify dependencies by, so a
collectRuntimeDependenciestask copies the resolved runtime classpath out and the scanner reads the jars by checksum. That is why the backend's 33 advisories were invisible until now.--ignore-unfixedis deliberately not set. An advisory with no released fix is still worth knowing about, and suppressing one should be a recorded decision in.trivyignore, which asks for a reason and an expiry.One unrelated fix, needed to get CI green
gradle build test, the task set the shared build workflow runs, failed validation:jacocoTestReportreads coverage data out of a directoryintegrationTestalso writes to, with no ordering between them. Two tasks write there,integrationandintegrationTest, and only the first was ordered.This is pre-existing and reproduces on an unmodified main. It surfaces now because that build job has never actually run in this repository: it failed at startup validation until this week, and has been skipped on pushes since. This branch is the first time it has executed, and therefore the first time it passed.