aws / aws/aws-sdk-java-v2

V2 SDK S3TransferManager with SSL Factory

Aperta
#2,896 8 commenti 1 reazione 0 assegnatari Vedi su GitHub
1.x Parity feature-request p2 transfer-manager
Lingua principale
Java
Stelle
2.6k
Fork
1k
Merge medio
2g 9h
PR unite (30g)
51

Descrizione

### Describe the issue

I'm migrating some V1 AWS SDK code to the V2 SDK. In V1, it was possible to define a custom SSL socket factory to use with the `TransferManager` (abbreviated):
```
ClientConfiguration cliConfig = new ClientConfiguration();
cliConfig.getApacheHttpClientConfig().setSslSocketFactory(new SdkTLSSocketFactory(...));
AmazonS3ClientBuilder clientBuilder = AmazonS3ClientBuilder.standard().withClientConfiguration(cliConfig)...;
TransferManagerBuilder.standard().withS3Client(clientBuilder.build())...
etc.
```
I don't see a way to do this with the V2 SDK. The new `S3ClientConfiguration` allows some other configurables but not the HTTP client, or the SSL factory. Similarly the `S3TransferManager` does not appear to expose these. This document - https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/http-configuration-netty.html - talks about "configuring the Netty-based HTTP client" but I don't see a way to get that client into the `S3TransferManager`.

Help is appreciated. Thank you.

### Steps to Reproduce

See snippet above

### Current behavior

It is possible with V1 to assign a custom SSL socket factory to the V1 transfer manager.

### AWS Java SDK version used

V1 to V2

### JDK version used

1.8

### Operating System and version

linux

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia tracciando la configurazione di V2 S3TransferManager e del client HTTP basato su Netty descritta nell’issue. Confrontala con il flusso di V1 TransferManager e determina come devono essere fornite le factory di socket SSL personalizzate; il lavoro è completato quando il transfer manager V2 può utilizzare una factory SSL personalizzata e il comportamento è coperto dai test del progetto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws, java
Ambito
cloud
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.