[ 
https://issues.apache.org/jira/browse/FLINK-41659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gabor Somogyi updated FLINK-41659:
----------------------------------
    Release Note: 
Fixed a bug where REST mutual authentication was silently not enforced. Since 
1.18.0 (FLINK-32035), a REST server (JobManager, SQL Gateway, HistoryServer) 
with `security.ssl.rest.authentication-enabled: true` and no truststore started 
without error but never requested a client certificate.

Such a server now fails at startup with a message that names 
`security.ssl.rest.truststore` and `security.ssl.truststore`. The same applies 
to processes that start a REST endpoint from their own configuration: the 
embedded SQL Gateway of the SQL Client (it fails with "Failed to start the 
embedded sql-gateway.") and a local MiniCluster.

To resolve it, configure a truststore that contains the client certificates or 
their CA (`security.ssl.rest.truststore` and 
`security.ssl.rest.truststore-password`), or set 
`security.ssl.rest.authentication-enabled` to false if mutual authentication is 
not wanted. REST clients without a truststore still use the default truststore 
of the JDK.


> Validate that truststore is configured when mTLS is enabled
> -----------------------------------------------------------
>
>                 Key: FLINK-41659
>                 URL: https://issues.apache.org/jira/browse/FLINK-41659
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / Network
>            Reporter: Robert Metzger
>            Assignee: Gabor Somogyi
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.5.0
>
>
> Fail if security.ssl.rest.enabled: true, security.ssl.rest.keystore and 
> security.ssl.rest.authentication-enabled: true is set, but no truststore.
> Otherwise, it might be unexpected for users that mTLS is not properly working 
> (even though the docs clearly state that a truststore is required)



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to