GUACAMOLE-728: Change default JDBC SSL mode to prefer(red).

This commit is contained in:
Virtually Nick
2020-06-25 18:47:22 -04:00
parent 2522b37997
commit 788395ad9d
4 changed files with 9 additions and 7 deletions

View File

@@ -101,7 +101,7 @@ public class PostgreSQLEnvironment extends JDBCEnvironment {
/**
* The default value to use for SSL mode if none is explicitly configured.
*/
private final PostgreSQLSSLMode DEFAULT_SSL_MODE = PostgreSQLSSLMode.DISABLE;
private final PostgreSQLSSLMode DEFAULT_SSL_MODE = PostgreSQLSSLMode.PREFER;
/**
* Constructs a new PostgreSQLEnvironment, providing access to PostgreSQL-specific
@@ -257,7 +257,8 @@ public class PostgreSQLEnvironment extends JDBCEnvironment {
/**
* Get the SSL mode to use to make the JDBC connection to the PostgreSQL
* server. If unspecified this will default to disabling SSL.
* server. If unspecified this will default to PREFER, attempting SSL
* and falling back to plain-text if SSL fails.
*
* @return
* The enum value of the SSL mode to use to make the JDBC connection

View File

@@ -175,7 +175,8 @@ public class PostgreSQLGuacamoleProperties {
/**
* The SSL mode that should be used by the JDBC driver when making
* connections to the remote server. By default SSL will be disabled.
* connections to the remote server. By default SSL will be attempted but
* plain-text will be allowed if SSL fails.
*/
public static final EnumGuacamoleProperty<PostgreSQLSSLMode> POSTGRESQL_SSL_MODE =
new EnumGuacamoleProperty<PostgreSQLSSLMode>(PostgreSQLSSLMode.class) {