Skip to content

Deploy: CodeQL security fixes and dependency upgrades - #2

Merged
codeministry merged 3 commits into
masterfrom
release/v0.5.0-security
Oct 24, 2026
Merged

codeministry merged 3 commits into
masterfrom
release/v0.5.0-security

Conversation

@codeministry

Copy link
Copy Markdown
Owner

Brings the fixes from encircle360-oss#4 to master so the monorepo image gets rebuilt and deployed.

Security

  • Template sandbox (critical): templates could read encryption.key and call any Spring bean through springMacroRequestContext.webApplicationContext. They now get the narrow TemplateRequestContext facade; DefaultMemberAccessPolicy blocks getClass() reflection.
  • CSRF enabled on all filter chains, exempting only the API prefix (bearer token / X-API-KEY).
  • LogSanitizer for request-controlled values in log lines.
  • EncryptionService without length arithmetic.
  • Runtime image applies pending Ubuntu security updates and drops the unused pebble Go binary (2 critical, 9 high stdlib CVEs).

Dependencies

  • Spring Boot 4.1.2, Gradle 9.8.2. The Tomcat/FreeMarker overrides from d67e828 are dropped: Boot 4.1.2 manages Tomcat 11.0.27 and FreeMarker 2.3.35 itself.
  • Angular 22.2, Vitest 5, Playwright 1.64, npm 12; vite overridden to 8.3.5.

Verification

  • Backend 235/235, frontend unit 169/169, Playwright E2E 30/30
  • Trivy on the built image: 0 critical/high, no CVEs in any JAR; npm audit: 0

Breaking

Templates using the Spring form-binding macros (spring.bind, spring.formInput, …) no longer render.

- Templates get a narrow TemplateRequestContext instead of Spring's
  RequestContext; through webApplicationContext any template could read
  encryption.key and call any bean. JsonNodeObjectWrapper pins
  DefaultMemberAccessPolicy so getClass() reflection is blocked as well.
- CSRF stays enabled on all filter chains and exempts only the API prefix,
  which authenticates by bearer token or X-API-KEY header.
- Request-controlled values pass through LogSanitizer before logging.
- EncryptionService concatenates IV and ciphertext without length arithmetic.
- Spring Boot 4.1.2, Gradle 9.8.2; hibernate-community-dialects, sqlite-jdbc
  and Testcontainers versions come from the Boot BOM again
- Angular 22.2, Vitest 5, Playwright 1.64, npm 12 and all other frontend
  dependencies on their latest releases; vite overridden to 8.3.5 to close
  the advisories in the 8.3.0 that @angular/build pins
- Runtime image applies pending Ubuntu security updates and drops the unused
  pebble Go binary carrying critical stdlib CVEs
- Keycloak 26.8.1 in the OIDC Compose stacks
- Ignore .worktrees/
Brings the CodeQL fixes (template sandbox, CSRF, log injection, overflow),
Spring Boot 4.1.2, Gradle 9.8.2, the frontend upgrades and the hardened
runtime image to master for deployment.

Drops the Tomcat and FreeMarker overrides from d67e828: Spring Boot 4.1.2
manages Tomcat 11.0.27 and FreeMarker 2.3.35 itself, which is the removal
condition those overrides named.
@codeministry
codeministry merged commit b10afdc into master Oct 24, 2026
6 checks passed
@codeministry
codeministry deleted the release/v0.5.0-security branch October 24, 2026 13:42
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