File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ namespace Snowflake {
2222 };
2323
2424 boost::optional<Attestation> createAwsAttestation (const AttestationConfig& config) {
25+ if (config.workloadIdentityImpersonationPath &&
26+ !config.workloadIdentityImpersonationPath .get ().empty ()) {
27+ CXX_LOG_ERROR (" Workload identity impersonation is not supported for AWS" );
28+ return boost::none;
29+ }
30+
2531 auto awsSdkInit = AwsUtils::initAwsSdk ();
2632 auto creds = config.awsSdkWrapper ->getCredentials ();
2733 if (creds.IsEmpty ()) {
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ namespace {
1313namespace Snowflake {
1414 namespace Client {
1515 boost::optional<Attestation> createAzureAttestation (AttestationConfig& config) {
16+ if (config.workloadIdentityImpersonationPath &&
17+ !config.workloadIdentityImpersonationPath .get ().empty ()) {
18+ CXX_LOG_ERROR (" Workload identity impersonation is not supported for Azure" );
19+ return boost::none;
20+ }
21+
1622 auto azureConfigOpt = AzureAttestationConfig::fromConfig (config);
1723 if (!azureConfigOpt) {
1824 return boost::none;
You can’t perform that action at this time.
0 commit comments