[CONJ-452] serverSslCert=----BEGIN CERTIFICATE Not Compatible with Google App Engine Created: 2017-04-06 Updated: 2017-05-26 Resolved: 2017-05-10 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other, TLS |
| Affects Version/s: | 1.5.6 |
| Fix Version/s: | 1.6.0, 2.0.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Robert Dyas | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Google Cloud App Engine |
||
| Description |
|
It appears that using the serverSslCert=-----BEGIN CERTIFICATE type of syntax (i.e. specifying it inline which we need to do) causes a write to the keyStore. Google App Engine runs on a read-only file system, so no writes are allowed. I suspect this is why the connection fails. Is there some way to work around this? Possibly not write it to the trust store? The exception backtrace looks like this:
|
| Comments |
| Comment by Robert Dyas [ 2017-04-26 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Any update as to if this can be fixed? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Diego Dupin [ 2017-04-27 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Issue reproduced. priority will then be change to critical. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Diego Dupin [ 2017-04-27 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
for documentation, error is :
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Diego Dupin [ 2017-04-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
That issue will be corrected in next release. Btw, reading Google App Engine documentation, it seems it require mutual authentication (client certificat + client private key too). It seems it would be better to provide a keystore to provide all certificates/private key in a file protected with a password, but i don't know if gae permit it. If not, actual version of the driver permit setting server certificat by option, but not client (only keystore is actually possible). Can you confirm my assumption (mutual authentication mandatory if SSL is enabled, and that no keystore can be used) ? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Robert Dyas [ 2017-04-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
#1 App Engine Std only supports Java 1.7 currently, so your connector 1.6 release for the jvm7 is great. #2 Mutual auth is only needed when connecting to Google Cloud SQL from non-app engine. Not required from App Engine. But this is not the use case that is giving us problems.... #3 The use case that is giving us problems is App Engine Std --> Google Compute Engine (running MariaDb server). This communication currently must go over an External IP address, so must be secured. However this does NOT require mutual auth. So long as we can specify the server CA we are good! Note that GAE Std never allows writing to disk in any form. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Robert Dyas [ 2017-05-26 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Just to confirm back, the fix in 1.6.0 works great! |