Skip to content

PHPC-1835: Rotate credentials for Atlas connectivity tests #1220

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

Merged
merged 2 commits into from
May 11, 2021

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented May 10, 2021

Passing tests may be blocked on fixing expired certificates in cloud-dev, per the related HELP ticket in PHPC-1835.

This PR corresponds with a change to the Evergreen project config to rotate the vars used for decrypting the URI file.

@jmikola jmikola requested a review from alcaeus May 10, 2021 15:01
@jmikola jmikola changed the base branch from master to v1.8 May 10, 2021 15:15
@@ -32,16 +38,22 @@ foreach ($urls as $url) {
===DONE===
<?php exit(0); ?>
--EXPECTF--
Atlas replica set (3.4)
Copy link
Member Author

Choose a reason for hiding this comment

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

FYI, the URI file now has the following format:

# Atlas replica set (3.4)
mongodb://user:pass@...
mongodb+srv://user:pass@...

# Atlas sharded cluster (3.4)
mongodb://user:pass@...
mongodb+srv://user:pass@...

# Atlas free tier replica set (4.4)
mongodb://user:pass@...
mongodb+srv://user:pass@...

# Atlas with only TLSv1.1 enabled (3.4)
mongodb://user:pass@...
mongodb+srv://user:pass@...

# Atlas with only TLSv1.2 enabled (3.4)
mongodb://user:pass@...
mongodb+srv://user:pass@...

# Atlas with only TLSv1.2 enabled (3.4) and bad credentials
mongodb://user:INVALID@...
mongodb+srv://user:INVALID@...

Copy link
Member

Choose a reason for hiding this comment

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

That explains the trim you introduced above. Thanks!

Copy link
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

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

LGTM! There may be failures due to HELP-24523, so you may want to either ignore the failure or wait for a fix.

@@ -32,16 +38,22 @@ foreach ($urls as $url) {
===DONE===
<?php exit(0); ?>
--EXPECTF--
Atlas replica set (3.4)
Copy link
Member

Choose a reason for hiding this comment

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

That explains the trim you introduced above. Thanks!

This corresponds with a change to the project's Evergreen config to rotate keys for decrypting atlas-uris.txt.enc.

Additionally, this adds comments atlas-uris.txt and atlas.phpt test output for improved readability.
@jmikola jmikola merged commit 96bbdab into mongodb:v1.8 May 11, 2021
@jmikola jmikola deleted the phpc-1835 branch May 11, 2021 17: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