Skip to content
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

DRIVERS-2648 Add AWS Secrets handling for serverless #371

Merged
merged 13 commits into from
Jan 19, 2024

Conversation

blink1073
Copy link
Member

@blink1073 blink1073 commented Nov 13, 2023

Also adds credentials for serverless_next.

Tested with mongodb/mongo-python-driver#1428 and mongodb/mongo-go-driver#1473.

@blink1073 blink1073 marked this pull request as ready for review January 16, 2024 16:13
$DRIVERS_TOOLS/.evergreen/serverless/setup-secrets.sh serverless-next
```

The full task group might look like:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this referencing? Feels very out of nowhere when compared to the previous lines.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

. $SCRIPT_DIR/../handle-paths.sh

# Ensure that secrets have already been set up.
if [ -f "$SCRIPT_DIR/secrets-export.sh" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if this file doesn't exist?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Legacy invocations won't have the file, the individual env var checks below will handle it.


SCRIPT_DIR=$(dirname ${BASH_SOURCE[0]})
. $SCRIPT_DIR/../handle-paths.sh
pushd $SCRIPT_DIR
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a matching popd at the end of this script?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@blink1073 blink1073 merged commit 7d8f62f into mongodb-labs:master Jan 19, 2024
21 checks passed
@blink1073 blink1073 deleted the DRIVERS-2648 branch January 19, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants