@@ -78,8 +78,12 @@ functions:
78
78
bash ${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh
79
79
80
80
" bootstrap mongohoused " :
81
+ - command : ec2.assume_role
82
+ params :
83
+ role_arn : ${DRIVERS_SECRETS_ARN}
81
84
- command : shell.exec
82
85
params :
86
+ add_expansions_to_env : true
83
87
script : |
84
88
${PREPARE_SHELL}
85
89
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/pull-mongohouse-image.sh
@@ -354,13 +358,17 @@ functions:
354
358
rm -rf ./node_modules/@aws-sdk/credential-providers
355
359
356
360
" run atlas tests " :
361
+ - command : ec2.assume_role
362
+ params :
363
+ role_arn : ${DRIVERS_SECRETS_ARN}
357
364
# This creates secrets-export.sh, which is later sourced by run-tests.sh
358
365
- command : subprocess.exec
359
366
params :
360
367
working_dir : " src"
361
368
binary : bash
362
369
env :
363
370
DRIVERS_TOOLS : ${DRIVERS_TOOLS}
371
+ add_expansions_to_env : true
364
372
args :
365
373
- -c
366
374
- ${DRIVERS_TOOLS}/.evergreen/secrets_handling/setup-secrets.sh drivers/atlas_connect
@@ -623,6 +631,9 @@ functions:
623
631
include_expansions_in_env :
624
632
- MONGODB_URI
625
633
- DRIVERS_TOOLS
634
+ - AWS_SECRET_ACCESS_KEY
635
+ - AWS_ACCESS_KEY_ID
636
+ - AWS_SESSION_TOKEN
626
637
env :
627
638
AWS_CREDENTIAL_TYPE : env-creds
628
639
MONGODB_AWS_SDK : " true"
@@ -742,6 +753,9 @@ functions:
742
753
- ${PROJECT_DIRECTORY}/.evergreen/install-mongodb-client-encryption.sh
743
754
744
755
" build and test alpine FLE " :
756
+ - command : ec2.assume_role
757
+ params :
758
+ role_arn : ${DRIVERS_SECRETS_ARN}
745
759
- command : subprocess.exec
746
760
type : test
747
761
params :
@@ -753,6 +767,7 @@ functions:
753
767
NODE_VERSION : ${NODE_VERSION}
754
768
MONGODB_URI : ${MONGODB_URI}
755
769
binary : bash
770
+ add_expansions_to_env : true
756
771
args :
757
772
- .evergreen/docker/alpine.sh
758
773
@@ -777,12 +792,14 @@ tasks:
777
792
params :
778
793
updates :
779
794
- { key: NPM_VERSION, value: "9" }
795
+ - func : assume secrets manager rule
780
796
- func : " install dependencies"
781
797
# Upload node driver to a GCP instance
782
798
- command : subprocess.exec
783
799
type : setup
784
800
params :
785
801
binary : bash
802
+ add_expansions_to_env : true
786
803
env :
787
804
DRIVERS_TOOLS : ${DRIVERS_TOOLS}
788
805
args :
@@ -813,6 +830,7 @@ tasks:
813
830
814
831
- name : " test-azurekms-task"
815
832
commands :
833
+ - func : assume secrets manager rule
816
834
- command : expansions.update
817
835
type : setup
818
836
params :
@@ -825,6 +843,7 @@ tasks:
825
843
binary : bash
826
844
env :
827
845
DRIVERS_TOOLS : ${DRIVERS_TOOLS}
846
+ add_expansions_to_env : true
828
847
args :
829
848
- src/.evergreen/run-deployed-azure-kms-tests.sh
830
849
@@ -1051,10 +1070,12 @@ task_groups:
1051
1070
setup_group_timeout_secs : 1800 # 30 minutes
1052
1071
setup_group :
1053
1072
- func : fetch source
1073
+ - func : assume secrets manager rule
1054
1074
- command : subprocess.exec
1055
1075
params :
1056
1076
working_dir : " src"
1057
1077
binary : bash
1078
+ add_expansions_to_env : true
1058
1079
args :
1059
1080
- ${DRIVERS_TOOLS}/.evergreen/csfle/gcpkms/setup.sh
1060
1081
@@ -1073,12 +1094,14 @@ task_groups:
1073
1094
setup_group_timeout_secs : 1800 # 30 minutes
1074
1095
setup_group :
1075
1096
- func : fetch source
1097
+ - func : assume secrets manager rule
1076
1098
- command : subprocess.exec
1077
1099
params :
1078
1100
working_dir : " src"
1079
1101
binary : bash
1080
1102
env :
1081
1103
AZUREKMS_VMNAME_PREFIX : " NODE_DRIVER"
1104
+ add_expansions_to_env : true
1082
1105
args :
1083
1106
- ${DRIVERS_TOOLS}/.evergreen/csfle/azurekms/setup.sh
1084
1107
@@ -1099,12 +1122,11 @@ task_groups:
1099
1122
- name : testk8soidc_task_group_eks
1100
1123
setup_group :
1101
1124
- func : fetch source
1102
- - command : ec2.assume_role
1103
- params :
1104
- role_arn : ${DRIVERS_SECRETS_ARN}
1125
+ - func : assume secrets manager rule
1105
1126
- command : subprocess.exec
1106
1127
params :
1107
1128
binary : bash
1129
+ add_expansions_to_env : true
1108
1130
args :
1109
1131
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/setup.sh
1110
1132
teardown_group :
@@ -1122,12 +1144,11 @@ task_groups:
1122
1144
- name : testk8soidc_task_group_gke
1123
1145
setup_group :
1124
1146
- func : fetch source
1125
- - command : ec2.assume_role
1126
- params :
1127
- role_arn : ${DRIVERS_SECRETS_ARN}
1147
+ - func : assume secrets manager rule
1128
1148
- command : subprocess.exec
1129
1149
params :
1130
1150
binary : bash
1151
+ add_expansions_to_env : true
1131
1152
args :
1132
1153
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/setup.sh
1133
1154
teardown_group :
@@ -1145,12 +1166,11 @@ task_groups:
1145
1166
- name : testk8soidc_task_group_aks
1146
1167
setup_group :
1147
1168
- func : fetch source
1148
- - command : ec2.assume_role
1149
- params :
1150
- role_arn : ${DRIVERS_SECRETS_ARN}
1169
+ - func : assume secrets manager rule
1151
1170
- command : subprocess.exec
1152
1171
params :
1153
1172
binary : bash
1173
+ add_expansions_to_env : true
1154
1174
args :
1155
1175
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/setup.sh
1156
1176
teardown_group :
@@ -1168,9 +1188,7 @@ task_groups:
1168
1188
- name : testtestoidc_task_group
1169
1189
setup_group :
1170
1190
- func : fetch source
1171
- - command : ec2.assume_role
1172
- params :
1173
- role_arn : ${DRIVERS_SECRETS_ARN}
1191
+ - func : assume secrets manager rule
1174
1192
- command : subprocess.exec
1175
1193
params :
1176
1194
binary : bash
@@ -1190,9 +1208,11 @@ task_groups:
1190
1208
- name : testazureoidc_task_group
1191
1209
setup_group :
1192
1210
- func : fetch source
1211
+ - func : assume secrets manager rule
1193
1212
- command : shell.exec
1194
1213
params :
1195
1214
shell : bash
1215
+ add_expansions_to_env : true
1196
1216
script : |-
1197
1217
set -o errexit
1198
1218
${PREPARE_SHELL}
@@ -1214,9 +1234,11 @@ task_groups:
1214
1234
- name : testgcpoidc_task_group
1215
1235
setup_group :
1216
1236
- func : fetch source
1237
+ - func : assume secrets manager rule
1217
1238
- command : shell.exec
1218
1239
params :
1219
1240
shell : bash
1241
+ add_expansions_to_env : true
1220
1242
script : |-
1221
1243
set -o errexit
1222
1244
${PREPARE_SHELL}
@@ -1238,10 +1260,12 @@ task_groups:
1238
1260
- name : test_atlas_task_group
1239
1261
setup_group :
1240
1262
- func : fetch source
1263
+ - func : assume secrets manager rule
1241
1264
- command : subprocess.exec
1242
1265
params :
1243
1266
working_dir : src
1244
1267
binary : bash
1268
+ add_expansions_to_env : true
1245
1269
env :
1246
1270
MONGODB_VERSION : " 7.0"
1247
1271
LAMBDA_STACK_NAME : dbx-node-lambda
@@ -1268,13 +1292,15 @@ task_groups:
1268
1292
- name : test_atlas_task_group_search_indexes
1269
1293
setup_group :
1270
1294
- func : fetch source
1295
+ - func : assume secrets manager rule
1271
1296
- command : subprocess.exec
1272
1297
params :
1273
1298
working_dir : src
1274
1299
binary : bash
1275
1300
env :
1276
1301
MONGODB_VERSION : " 7.0"
1277
1302
CLUSTER_PREFIX : dbx-node-search
1303
+ add_expansions_to_env : true
1278
1304
args :
1279
1305
- ${DRIVERS_TOOLS}/.evergreen/atlas/setup-atlas-cluster.sh
1280
1306
- command : expansions.update
0 commit comments