Skip to content

RUST-1417 Add support for GCP attached service accounts when using GCP KMS #877

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 17, 2023

Conversation

isabelatkinson
Copy link
Contributor

This is going to be a slightly messy rebase, so I'm going to hold off on doing that until this PR is approved and I can squash my git history.

@isabelatkinson
Copy link
Contributor Author

The evergreen failures should be fixed after rebasing.

@isabelatkinson isabelatkinson marked this pull request as ready for review May 16, 2023 18:31
@isabelatkinson isabelatkinson requested a review from abr-egn May 16, 2023 18:31
Copy link
Contributor

@abr-egn abr-egn left a comment

Choose a reason for hiding this comment

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

LGTM!

let host = std::env::var("GCE_METADATA_HOST")
.unwrap_or_else(|_| "metadata.google.internal".into());
let uri = format!(
"http://{}/computeMetadata/v1/instance/service-accounts/default/token",
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: looks like these lines are missing an indent

@@ -1,17 +1,17 @@
#[cfg(feature = "aws-auth")]
#[cfg(any(feature = "aws-auth", feature = "in-use-encryption-unstable"))]
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume you're planning to switch this over to the setup I used for Azure in the merge?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh yes I left a review comment for this but forgot to post it :) yep, I was holding off on updating this since it'll need refactoring during the rebase anyway

@@ -29,15 +29,8 @@ use json_models::{Events, Results};
use super::spec::unified_runner::EntityMap;

#[test]
#[ignore]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will require an update to our script in drivers-atlas-testing; I'll make a PR there once this one is merged.

@@ -1,17 +1,17 @@
#[cfg(feature = "aws-auth")]
#[cfg(any(feature = "aws-auth", feature = "in-use-encryption-unstable"))]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh yes I left a review comment for this but forgot to post it :) yep, I was holding off on updating this since it'll need refactoring during the rebase anyway

@isabelatkinson isabelatkinson merged commit 8cb9096 into mongodb:main May 17, 2023
@isabelatkinson isabelatkinson deleted the gcp-on-demand branch June 21, 2023 20:12
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