[pgjdbc/pgjdbc] ad921b: Gssapi encrypted (#1821)
[pgjdbc/pgjdbc] ad921b: Gssapi encrypted (#1821)
От:
Dave Cramer <noreply@github.com>
Дата:
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: ad921b9e3563b28b9a03b1e2dfaad0e34efc02f1
https://github.com/pgjdbc/pgjdbc/commit/ad921b9e3563b28b9a03b1e2dfaad0e34efc02f1
Author: Dave Cramer
Date: 2020-07-18 (Sat, 18 Jul 2020)
Changed paths:
A .github/workflows/testgss.yml
M CHANGELOG.md
M README.md
M build.properties
M docs/documentation/head/connect.md
M pgjdbc/src/main/java/org/postgresql/PGProperty.java
M pgjdbc/src/main/java/org/postgresql/core/PGStream.java
M pgjdbc/src/main/java/org/postgresql/core/VisibleBufferedInputStream.java
M pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java
M pgjdbc/src/main/java/org/postgresql/ds/common/BaseDataSource.java
A pgjdbc/src/main/java/org/postgresql/gss/GSSInputStream.java
A pgjdbc/src/main/java/org/postgresql/gss/GSSOutputStream.java
M pgjdbc/src/main/java/org/postgresql/gss/GssAction.java
A pgjdbc/src/main/java/org/postgresql/gss/GssEncAction.java
M pgjdbc/src/main/java/org/postgresql/gss/MakeGSS.java
A pgjdbc/src/main/java/org/postgresql/jdbc/GSSEncMode.java
M pgjdbc/src/test/java/org/postgresql/test/TestUtil.java
A test-gss/build.gradle
A test-gss/gradle/wrapper/gradle-wrapper.jar
A test-gss/gradle/wrapper/gradle-wrapper.properties
A test-gss/gradlew
A test-gss/gradlew.bat
A test-gss/jaas.conf
A test-gss/settings.gradle
A test-gss/src/main/groovy/Kerberos.groovy
A test-gss/src/main/groovy/PgJDBC.groovy
A test-gss/src/main/groovy/Postgres.groovy
A test-gss/src/main/groovy/TestPostgres.groovy
A test-gss/src/main/groovy/Util.groovy
Log Message:
-----------
Gssapi encrypted (#1821)
* add test-gss to test gss encrypted mode
* chore: add gss encrypted mode
This was added in PostgreSQL 12
After creating an initial socket we then try to elevate the connection to GSS encrypted
If this fails we then try ssl
All of this is dependent on the gssEncMode
* try normal authentication
* use encrypted authentication when necessary
* make test fail using Assert.that if they do not succeed
* document use of gssEncMode, add entry to changelog
Co-authored-by: Vladimir Sitnikov