-
Notifications
You must be signed in to change notification settings - Fork 532
RUBY-1999 MONGODB-AWS Support #1788
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
Conversation
d648f8c
to
d977412
Compare
6178682
to
148d1ec
Compare
2d78fcf
to
93b0acd
Compare
c9b870f
to
8d1a540
Compare
f16269a
to
36b4857
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few questions but otherwise this is looking good.
.evergreen/lib/server_setup.rb
Outdated
else | ||
raise 'Expected the bootstrap user to had been deleted, but it was not' | ||
end | ||
=end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a scenario in which this code should be un-commented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not, removed it to https://gist.github.com/p-mongo/2829f9fece71753b40133ae0d180fcb2.
@@ -29,6 +29,9 @@ class Runner | |||
|
|||
opts.on("-a", "--add-env=PATH", "Load environment variables from PATH in .env format") do |path| | |||
@options[:extra_env] ||= {} | |||
unless File.exist?(path) | |||
raise "-a option references nonexistent file #{path}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for this.
@@ -58,6 +58,7 @@ module Auth | |||
# | |||
# @since 2.0.0 | |||
SOURCES = { | |||
aws: Aws, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think it would make sense to eventually change the other auth class names to all be written in the same style (i.e. Ldap
, Scram
, etc)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to but we can't do this until driver 3.0.
would need to specify MONGO_RUBY_DRIVER_AWS_AUTH_USER_ARN in your | ||
`.env.private` file with the ARN of the user to add to MongoDB. The easiest | ||
way to find out this value is to run the tests and note which username the | ||
test suite is trying to authenticate as. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This last sentence is unclear to me -- how do you find the ARN from the username?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARN is the username.
@@ -61,8 +61,7 @@ | |||
) | |||
|
|||
orchestrator.clear_instance_profile(Utils.ec2_instance_id) | |||
# Wait for change to propagate | |||
sleep 5 | |||
Utils.wait_for_no_instance_profile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the test-mlaunch evergreen failures expected?
JRuby builds tend to fail in varying amounts so some failures are expected. |
No description provided.