STS does not respect ca cert setting
- Lingua principale
- C++
- Stelle
- 2.2k
- Fork
- 1.2k
- Merge medio
- 4g 11h
- PR unite (30g)
- 13
Descrizione
### Describe the bug
https://github.com/aws/aws-sdk-cpp/blob/e9d0d247be909ade39f213a3e2915aa262755a78/src/aws-cpp-sdk-core/source/auth/STSCredentialsProvider.cpp#L110
The SDK Client Configuration allows user to set [caPath and caFIle](https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/client-config.html) but STS authentication doesn't use/respect the setting
### Expected Behavior
All authentication respects caPath and caFile setting.
### Current Behavior
The SDK Client Configuration allows user to set [caPath and caFIle](https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/client-config.html) but STS authentication doesn't use/respect the setting
### Reproduction Steps
In the below code, `caFile` is pointed to wrong ca file. Yet STS auth should still be able to return a valid token yet the connection to the storage should fail.
```
Aws::Client::ClientConfiguration config;
config.caFile = "WRONG_CA_FILE";
Aws::S3::S3Client s3_client(config, Aws::Client::AWSAuthV4Signer::PayloadSigningPolicy::Never, false);
Aws::S3::Model::ListObjectsV2Request objects_request;
objects_request.WithBucket("abc");
auto list_objects_outcome = s3_client.ListObjectsV2(objects_request);
```
### Possible Solution
_No response_
### Additional Information/Context
_No response_
### AWS CPP SDK version used
1.11.201
### Compiler and Version used
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
### Operating System and version
Ubuntu 22.04
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Iniziare da src/aws-cpp-sdk-core/source/auth/STSCredentialsProvider.cpp intorno alla riga 110 e confrontare il percorso di autenticazione STS con le impostazioni caPath e caFile di ClientConfiguration descritte nella documentazione collegata. Riprodurre il comportamento con l’esempio S3 fornito e verificare che l’autenticazione STS rispetti le impostazioni CA configurate e che la richiesta di archiviazione risultante produca l’esito previsto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, cpp
- Ambito
- authentication, security
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100