Skip to content

fix: security hardening - #720

Merged
david-ruiz-cko merged 1 commit into
masterfrom
fix/INT-1893-security-hardening
Dec 1, 2026
Merged

david-ruiz-cko merged 1 commit into
masterfrom
fix/INT-1893-security-hardening

Conversation

@david-ruiz-cko

@david-ruiz-cko david-ruiz-cko commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Update dependencies: the Gradle wrapper moves to Gradle 8.14.8, the latest release on the 8.x
line, and the CI Gradle script refuses wrapper versions below a minimum. This affects the build
tooling only; the published library does not change.

Changes

  • gradle/wrapper/gradle-wrapper.properties: distribution URL and sha256 for Gradle 8.14.8
    (all distribution, as before; sha256 from services.gradle.org).
  • .github/scripts/gradle.sh: checks that the wrapper's Gradle version is at least the minimum
    version.

Design notes: Only the distribution changes. The wrapper jar, gradlew and gradlew.bat are
unchanged: the committed jar is an official wrapper jar (checked by the wrapper validation step)
and runs 8.14.8 with the existing checks in gradle.sh. The minimum version sits in
gradle.sh so that CI refuses a wrapper moved back to an older release; it is set in one case
and needs no network. Versions are compared number by number (8.14.10 is above 8.14.8). The 9.x
minimum applies once CI runs on a JDK that Gradle 9 supports (Gradle 9 needs JDK 17; the
workflows use JDK 11). Gradle stays on 8.x for the same reason. The published files were compared
with a build from master: POM identical; jar, sources and javadoc entries identical (archive
timestamps aside); the module file differs only in the Gradle version it records and the jar
checksums.

API Reference

None.

Breaking changes

None.

Tests

  • Existing tests pass (.github/scripts/gradle.sh build, fresh Gradle home)
  • Serialization tests cover every new or changed property: not applicable, no model changed
  • README updated if documented usage changed: not needed, the documented build commands are unchanged
  • gradle.sh checked on scratch copies: wrapper versions below, at and above the minimum, and repeated runs in one Gradle home
  • Release files staged with publishMavenPublicationToStagingRepository and checked with .github/scripts/verify-artifacts.py

Related

None.

@david-ruiz-cko
david-ruiz-cko requested a review from a team November 30, 2026 13:51
@agent-wall-e

agent-wall-e Bot commented Nov 30, 2026

Copy link
Copy Markdown

🟡 Risk Classification: MINOR

Approval route: AI Review + Human Approval
Rollback controls: Staged rollout + rollback

Classification reasons

  • no_low_class_matched
  • prod_source_modified

Operational gates

  • ✅ jira_ticket (INT-1893)
  • ✅ independent_review

Files analysed: 2


wall-e 2026.06.19-02 · policy 6b4ce2b3b45a…

@agent-wall-e

agent-wall-e Bot commented Nov 30, 2026

Copy link
Copy Markdown
🔬 Debug — why this classification?

Each reason code emitted by the classifier, its source clause in the AI in SDLC Control Framework, and what it means.

Reason code Kind Clause Meaning
no_low_class_matched informational §2.2 (fall-through) None of the deterministic Low classes (§2.2.3, §2.2.4, §2.2.7, docs-only) applied; classifier fell through to LLM evaluation.
prod_source_modified informational §2.1 M7 (informational) At least one file is non-doc, non-test, non-IaC — i.e. application source code was modified.

Kinds:

  • classifying — this rule contributed to the chosen tier.
  • informational — context only; did not by itself decide the tier.

See issue #3 for the proposal to formalise this map as Appendix A of the standards doc.

wall-e 2026.06.19-02 · debug

@agent-wall-e

agent-wall-e Bot commented Nov 30, 2026

Copy link
Copy Markdown

🔵 Advisory review: Sound, but needs your judgement

This PR needs a human approval. The code itself reads as correct; whether it should land depends on context I don't have.

Updates Gradle wrapper to 8.14.8 and adds a minimum-version enforcement check in gradle.sh; the logic looks correct but the reviewer should verify the sha256 and the version-comparison edge cases independently.

For you to decide

  • The distributionSha256Sum value (34b008b7b744e4d12468e97ba03c572d0cd786fd0334e61e0171ea3d1a566b73) cannot be verified from the diff alone — a reviewer must independently confirm this matches the official Gradle 8.14.8-all.zip published at services.gradle.org.
  • The case statement pattern [1-9][0-9]* for major versions ≥10 passes them through by setting minimum to just the major number (e.g., '10'), which version_at_least then accepts for any '10.x.y' — this is the stated intent but a human should confirm this permissive future-proofing is acceptable.
  • The version_at_least function uses ${have[i]:-0} padding, so '8.14' would compare equal to '8.14.0'; this is correct behaviour but worth a quick sanity check given the dist_version extraction strips only the trailing classifier (e.g., '-all'), leaving a dotted version string.
  • There is no test file added or modified in the diff, so the stated manual testing of the version-check logic is unverifiable from the diff — a human reviewer should decide if that is acceptable for a CI security gate.
  • The PR description notes Gradle 9.x won't actually be enforced yet because the workflows use JDK 11 and Gradle 9 requires JDK 17; reviewers should confirm this deferred enforcement is intentional and that the 9.x minimum (9.9.2) is set at the right level for when it eventually activates.

This is not an approval. wall-e cannot auto-approve this PR — it is an opinion to help whoever does. Advisory review · us.anthropic.claude-sonnet-4-6 · wall-e 2026.06.19-02

@sonarqubecloud

Copy link
Copy Markdown

@david-ruiz-cko
david-ruiz-cko merged commit d879590 into master Dec 1, 2026
6 checks passed
@david-ruiz-cko
david-ruiz-cko deleted the fix/INT-1893-security-hardening branch December 1, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants