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

(GCP) Default Application Credentials flow/support (rebased and make tests pass) #164

Merged
merged 9 commits into from
Dec 2, 2021

Conversation

ingwinlu
Copy link
Contributor

This pull requests follows up on the work done by @braincow in #156.

It is rebased ontop of the current master, extends the structure to be inline with the new with_client functionality and fixes the test that was failing by allowing to provide a custom metadata url to the test server.

Please keep in mind this is my first rust based pull request and I am happy for feedback.

There are still 2 TODO's in the diff which I kind of find improvable.

@dermesser
Copy link
Owner

Thank you for this PR, I will try to take a look soon! Please feel free to remind me if I forget about it, my days are quite busy at the moment :)

@ingwinlu
Copy link
Contributor Author

@dermesser thanks I will, can you maybe approve the github action again?

Copy link
Contributor

@glyn glyn left a comment

Choose a reason for hiding this comment

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

I'm no expert in the internals of this crate, but as a user of the crate, I'd like to offer a bit of early feedback on this PR. Please ignore my comments about bias to Google if that's actually the philosophy of this crate.

examples/test-adc/Cargo.toml Show resolved Hide resolved
src/application_default_credentials.rs Show resolved Hide resolved
src/application_default_credentials.rs Outdated Show resolved Hide resolved
src/application_default_credentials.rs Show resolved Hide resolved
@dermesser
Copy link
Owner

Apologies for the delay! The action is running again.

@dermesser
Copy link
Owner

Also thanks to @glyn and @braincow for reviewing. I'm fine with the code; let me know when the PR is ready for merge.

@ingwinlu
Copy link
Contributor Author

ingwinlu commented Dec 2, 2021

I don't have anything more to add.

@dermesser dermesser merged commit 6baa6be into dermesser:master Dec 2, 2021
@dermesser
Copy link
Owner

As far as I can see, you've only extended the API. Therefore I propose to create a new minor release (as defined by semver) containing this code. Do you agree?

@ingwinlu
Copy link
Contributor Author

ingwinlu commented Dec 2, 2021

No existing behaviour was touched, so a minor release seems to be way to go.

@ingwinlu ingwinlu deleted the gcp_instance_metadata branch December 2, 2021 09:47
dermesser added a commit that referenced this pull request Dec 2, 2021
containing

- #164: GCP application default credentials. Thank you @ingwinlu,
  @braincow!
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.

None yet

4 participants