aws / aws/sagemaker-python-sdk
Support custom SSL certificate bundles
- Lingua principale
- Python
- Stelle
- 2.3k
- Fork
- 1.3k
- Merge medio
- 1g 22h
- PR unite (30g)
- 35
Descrizione
**Describe the feature you'd like**
Support custom SSL verification control in SageMaker Python SDK.
`Boto3` supports the [verify](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/session.html#boto3.session.Session.client) parameter when creating a client, which allows either disabling SSL verification or setting a custom certificate bundle. Alternatively, a custom certificate bundle can be set through the `config` file or by the `AWS_CA_BUNDLE` environment variable.
However, these are not exposed or respected by the SageMaker Python SDK. This prevents SageMaker code from being used behind some corporate firewalls.
The lack of this feature has been noted in https://github.com/aws/sagemaker-python-sdk/discussions/3656
**How would this feature be used? Please describe.**
Corporate firewalls may re-encrypt an SSL connection with their own certificate. Unless this certificate is configured as a root certificate, SSL verification fails. This change will allow use of the SageMaker Python SDK behind such MITM-based firewalls.
**Describe alternatives you've considered**
N/A
**Additional context**
The specific error raised by SageMaker:
```
SSLError: SSL validation failed for https://sts.us-west-2.amazonaws.com/ [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1147)
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia individuando come l’SDK crea i client Boto3 e come vengono passate le impostazioni di sessione o di config. Confronta questi punti di ingresso con il parametro verify di Boto3 e il comportamento di AWS_CA_BUNDLE. Il lavoro è completato quando i chiamanti possono controllare la verifica SSL o usare un bundle di certificati personalizzato, con test che coprano i percorsi di configurazione supportati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, python
- Ambito
- cloud, security
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100