Skip to content

port: fix security audit parse error on duplicate sshd_config directives (upstream #4889) - #171

Merged
AminDhouib merged 1 commit into
canaryfrom
port/upr-4889
Jul 22, 2026
Merged

port: fix security audit parse error on duplicate sshd_config directives (upstream #4889)#171
AminDhouib merged 1 commit into
canaryfrom
port/upr-4889

Conversation

@AminDhouib

Copy link
Copy Markdown
Member

Ports upstream Dokploy PR Dokploy#4889 by @reikjarloekl.

When a directive (e.g. PermitRootLogin, PasswordAuthentication, UsePAM) appears more than once in sshd_config, or when a trailing carriage return is present, the security audit could emit invalid JSON and fail to parse. Each affected pipeline now dedupes to the first match with head -n1 and strips \r with tr -d, keeping the emitted JSON valid.

Upstream: Dokploy#4889

@AminDhouib
AminDhouib merged commit b49d89f into canary Jul 22, 2026
3 checks passed
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.

2 participants