Skip to content

Warn when RD_INSECURE_SSL_HOSTNAME disables hostname verification - #660

Open
skywalkw3r wants to merge 1 commit into
rundeck:mainfrom
skywalkw3r:fix/warn-insecure-ssl-hostname
Open

skywalkw3r wants to merge 1 commit into
rundeck:mainfrom
skywalkw3r:fix/warn-insecure-ssl-hostname

Conversation

@skywalkw3r

@skywalkw3r skywalkw3r commented Oct 28, 2026 •

Copy link
Copy Markdown

Fixes #663.

RD_INSECURE_SSL=true prints a warning on every run, but RD_INSECURE_SSL_HOSTNAME=true silently disables hostname verification. With it set, any certificate that chains to a trusted CA is accepted for the Rundeck host, so a certificate for an unrelated domain is enough to intercept the connection and the API token. A setting like that is easy to forget in CI variables or rd.conf.

This prints a matching warning when RD_INSECURE_SSL_HOSTNAME=true (unless RD_INSECURE_SSL=true already printed one), and honours the existing RD_INSECURE_SSL_NO_WARN=true to suppress it.

Testing

  • ./gradlew :rd-cli-tool:test passes (348 tests, JDK 17).
  • Ran the built rd system info against an unreachable https URL:
Settings Output
RD_INSECURE_SSL_HOSTNAME=true # WARNING: RD_INSECURE_SSL_HOSTNAME=true, server hostnames will not be verified against the certificate
RD_INSECURE_SSL_HOSTNAME=true + RD_INSECURE_SSL_NO_WARN=true no warning
RD_INSECURE_SSL_HOSTNAME=true + RD_INSECURE_SSL=true only the existing RD_INSECURE_SSL=true warning
neither no warning

RD_INSECURE_SSL=true prints a warning on every run, but
RD_INSECURE_SSL_HOSTNAME=true silently accepts any certificate that chains
to a trusted CA, whatever host it was issued for. Left set in CI or rd.conf,
it lets a certificate for an unrelated domain intercept the connection and
the API token without any reminder that the check is off.

Print a matching warning, skipped when RD_INSECURE_SSL=true already warned,
and honour RD_INSECURE_SSL_NO_WARN=true.

Signed-off-by: Lucas Weir <skywalkw3r@protonmail.com>

This branch has not been deployed

No deployments
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.

RD_INSECURE_SSL_HOSTNAME=true disables hostname verification without a warning

1 participant