Filter
Exclude
Time range
-
Near
23 Mar 2024
AWSのIoT Device SDKでMosquittoに繋げるかを実験中。 AWSのサンプルコードはクライアント証明書と秘密鍵を問われるが、mosquitto_pubはCAの署名も問われるんだよな。 あー。AWSのCA証明書はルート証明書に載ってるからいらないのか。逆にオレオレ証明書が通らない。 SocketFactoryでやってみる。
195
Application->DriverManager->Driver->Connection->SocketFactory->Socket
1
56
"A #security advisory has been created for the #PostgreSQL #JDBC driver. The driver provides the facility to instantiate plugin instances based on class names provided via authenticationPluginClassName, sslhostnameverifier, socketFactory, sslfactory, ss... joindiaspora.com/p/22436641

Amazon Redshift JDBC Driver は 2.0 から SocketFactory を差し替えることができるようだ。SOCKS5 経由でアクセスできないか確認中。 aws.amazon.com/jp/about-aws/…

The correct fix is to remove the Channel SocketFactory from Presto. But if you then hit the IPv6 issue you are still screwed. Disabling ALPN shouldn't be the solution, it's at best a workaround. But generally try to get onto the well lit path. Many things converge on this bug.
Not only are the new JDBC and Python drivers for RedShift open source, but they include a bunch of new features too, like cross DB query support in preview, improved metadata fetching, and support for SocketFactory! buff.ly/38npNwR
1
16 Jun 2020
SocketFactoryでゴニョゴニョしたらええのかな
Digged into androids sourcecode to find out how to use my own SocketFactory for a HttpURLConnection just to find this…

1
Hack of the day: some class only let you specify the SocketFactory by class name. I have instances I need it to use. Solution: have #bytebuddy conjure up a delegating class for each time.
10 Jan 2020
Also, damn, nice use of the SocketFactory to override the host that the exploit connects to. RMI objects can be bound to "localhost" or internal IP addresses or hostnames, but they can often be accessed externally by redirecting RMI's connection to the external interface.
1
1
#pgjdbc Aleksander Blomskøld has forked junixsocket and added a Unix SocketFactory that works with the driver. His code can be found at github.com/fiken/junixsocket… @PostgreSQL

1
1
[google-cloud-sql-discuss] Re: Why? Postgres SocketFactory version 1.0.14 does not work but version 1.0.10 works. ift.tt/2LWMMUr

[google-cloud-sql-discuss] Re: Cannot connect to Cloud SQL with Java SocketFactory Library ift.tt/2JAy6sp

[google-cloud-sql-discuss] Why? Postgres SocketFactory version 1.0.14 does not work but version 1.0.10 works. ift.tt/2Y3DyMF

[google-cloud-sql-discuss] Re: Cannot connect to Cloud SQL with Java SocketFactory Library ift.tt/2YY6jHF

Replying to @Schlogen
Got it working! I needed to do BeanInitializedEventListener<io.micronaut.configuration.jdbc.hikari.DatasourceConfiguration> and that gave me the opportunity to set the socketFactory property. I'll update my Github issue soon.
@Schlogen Hey there - I'm using your Hikari / Micronaut database integration and was wondering if the current code allowed for overriding the SocketFactory with a custom one? I need it to connect Google Cloud Run and Google SQL.
2
AbstractSocketConnectionの中でSocketFactory使っていてこれがリフレクションだったか。