fix(security): remediate OWASP/CWE audit findings (2026-06-30)#142
Merged
Conversation
…audit Fixes identified in automated security audit (kestra-plugin-security-auditing skill): - HIGH: Docker config field (containing registry credentials) missing @PluginProperty(secret=true) and @ToString.Exclude - MEDIUM: Registry credentials field missing @PluginProperty(secret=true) - LOW: Unpinned 'docker:latest' used as default container image in Compose task Part of security audit EPIC. See kestra-io/kestra-ee#9092 for full scope.
Contributor
🧪 Java Unit Tests
📦 Artifacts
🔁 Unreleased Commits1 commits since
|
Contributor
Tests report quick summary:success ✅ > tests: 37, success: 37, skipped: 0, failed: 0 unfold for details
|
…lable The pinned kestraVersion predates the secret attribute on @PluginProperty, causing a compile error on the credential-annotation fixes in this PR.
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.
Summary
Remediates all findings from the 2026-06-30 automated security audit against OWASP Top 10 (2025), CWE Top 25, and OWASP ASVS Level 1.
Findings Fixed
[HIGH] Docker config field (containing registry credentials) missing @PluginProperty(secret=true) and @ToString.Exclude (
src/main/java/io/kestra/plugin/docker/AbstractDocker.java:73)secret = trueto@PluginProperty(dynamic = true, group = "advanced")on theconfigfield and added@ToString.Excludeabove it to prevent credential leakage in logs/toString output[MEDIUM] Registry credentials field missing @PluginProperty(secret=true) (
src/main/java/io/kestra/plugin/docker/AbstractDocker.java:79)secret = trueto@PluginProperty(dynamic = true, group = "connection")on thecredentialsfield so Kestra's UI masks the value[LOW] Unpinned 'docker:latest' used as default container image in Compose task (
src/main/java/io/kestra/plugin/docker/Compose.java:87)docker:latesttodocker:27.5.1-clito ensure reproducible, tamper-resistant buildsTesting
./gradlew buildpassesReferences
Automated security fix — please review each change carefully before merging.