Skip to content

Commit

Permalink
GODRIVER-3358 Add authSource override to OIDC connection strings (mon…
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored and adriandole committed Oct 7, 2024
1 parent 9a76605 commit 08d6e79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .evergreen/auth_oidc/gcp/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ URI=$(check_deployment)

cat <<EOF >> "secrets-export.sh"
export MONGODB_URI="$URI"
export MONGODB_URI_SINGLE="$URI/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:gcp,TOKEN_RESOURCE:$GCPOIDC_AUDIENCE"
export MONGODB_URI_SINGLE="$URI/?authMechanism=MONGODB-OIDC&authSource=%24external&authMechanismProperties=ENVIRONMENT:gcp,TOKEN_RESOURCE:$GCPOIDC_AUDIENCE"
export OIDC_ADMIN_USER=$GCPOIDC_ATLAS_USER
export OIDC_ADMIN_PWD=$GCPOIDC_ATLAS_PASSWORD
EOF
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/auth_oidc/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ EOF
URI=$(check_deployment)
cat <<EOF >> "secrets-export.sh"
export MONGODB_URI="$URI"
export MONGODB_URI_SINGLE="$URI/?authMechanism=MONGODB-OIDC"
export MONGODB_URI_SINGLE="$URI/?authMechanism=MONGODB-OIDC&authSource=%24external"
export OIDC_ADMIN_USER=$OIDC_ATLAS_USER
export OIDC_ADMIN_PWD=$OIDC_ATLAS_PASSWORD
EOF
Expand Down

0 comments on commit 08d6e79

Please sign in to comment.