You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: Separate AwsCredentials from AwsConfig (#716)
# Problem
Right now `AwsConfig` has a lot of fields, including the ones related to
credential:
```
pub aws_access_key_id: String,
pub aws_secret_access_key: String,
pub aws_session_token: String,
pub aws_container_credentials_full_uri: String,
pub aws_container_authorization_token: String,
```
The next PR #717
wants to lazily load API key and the credentials. To do that, for the
resolver function `resolve_secrets()`, I need to change the param
`aws_config` from `&AwsConfig` to `Arc<RwLock<AwsConfig>>`. Because
`aws_config` is passed to many places, this change involves updating
lots of functions, which is formidable.
# This PR
Separates these credential-related fields out from `AwsConfig` and
creates a new struct `AwsCredentials`
Thus, the next PR will only need to change the param `aws_credentials`
from `&AwsCredentials` to `Arc<RwLock<AwsCredentials>>`. Because
`aws_credentials` is not used in lots of places, the next PR becomes
easier.
https://datadoghq.atlassian.net/issues/SVLS-6996https://datadoghq.atlassian.net/issues/SVLS-6998
0 commit comments