Skip to content

Use secrets manager to initialize atlas connect variables. #1774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .evergreen/.evg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,17 @@ functions:
cd $DRIVERS_TOOLS/.evergreen/auth_aws
./setup_secrets.sh drivers/aws_auth

"add-atlas-connect-variables-to-file":
- command: shell.exec
type: "test"
params:
include_expansions_in_env: [ "AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN" ]
shell: "bash"
working_dir: "src"
script: |
${PREPARE_SHELL}
${DRIVERS_TOOLS}/.evergreen/secrets_handling/setup-secrets.sh drivers/atlas_connect

"start-csfle-servers":
- command: ec2.assume_role
params:
Expand Down Expand Up @@ -1465,6 +1476,8 @@ tasks:

- name: "atlas-connectivity-task"
commands:
- func: "assume-aws-test-secrets-role"
- func: "add-atlas-connect-variables-to-file"
- command: shell.exec
type: "test"
params:
Expand All @@ -1473,7 +1486,7 @@ tasks:
script: |
# DO NOT ECHO WITH XTRACE (which PREPARE_SHELL does)
# The connection strings are pipe-delimited
MONGODB_URIS="${atlas_free_tier_uri}|${atlas_replica_set_uri}|${atlas_sharded_uri}|${atlas_tls_v11_uri}|${atlas_tls_v12_uri}|${atlas_free_tier_uri_srv}|${atlas_replica_set_uri_srv}|${atlas_sharded_uri_srv}|${atlas_tls_v11_uri_srv}|${atlas_tls_v12_uri_srv}" \
MONGODB_URIS="${atlas_free}|${atlas_repl}|${atlas_shrd}|${atlas_tls11}|${atlas_tls12}|${atlas_srv_free}|${atlas_srv_repl}|${atlas_srv_shrd}|${atlas_srv_tls11}|${atlas_srv_tls12}" \
JAVA_VERSION="8" \
.evergreen/run-connectivity-tests.sh

Expand Down