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

Let google-credentials take precedence over google-id #283

Merged
merged 2 commits into from
Jan 18, 2023
Merged

Conversation

pietern
Copy link
Contributor

@pietern pietern commented Jan 18, 2023

It is possible that both GoogleCredentials and GoogleServiceAccount are set. Because GoogleCredentials is self-contained, it should have priority over google-id. This mirrors behavior of the TF provider.

It is possible that both `GoogleCredentials` and `GoogleServiceAccount` are
set. Because `GoogleCredentials` is self-contained, it should have priority
over `google-id`.
@pietern pietern requested a review from nfx January 18, 2023 08:12
@codecov-commenter
Copy link

Codecov Report

Base: 40.73% // Head: 40.73% // No change to project coverage 👍

Coverage data is based on head (07654cb) compared to base (a88ca4d).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #283   +/-   ##
=======================================
  Coverage   40.73%   40.73%           
=======================================
  Files          45       45           
  Lines        2627     2627           
=======================================
  Hits         1070     1070           
  Misses       1475     1475           
  Partials       82       82           
Impacted Files Coverage Δ
config/auth_default.go 100.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@pietern pietern merged commit d7fb943 into main Jan 18, 2023
@pietern pietern deleted the auth-precedence branch January 18, 2023 11:05
@nfx nfx mentioned this pull request Feb 3, 2023
nfx added a commit that referenced this pull request Feb 3, 2023
# Version changelog

## 0.3.0

 * Added support for GCP deployment APIs in Public Preview.
* Added new node type selector
([#287](#287)).
* Added Azure MSI auth
([#279](#279)).
* Added validation of strings in user agent package
([#291](#291)).
* Added logging for error responses
([#289](#289)).
* Update implementation of smallest node selection to match terraform's
([#273](#273)).
* Added experimental OAuth support
([#276](#276),
[#266](#266),
[#292](#292)).
* Fixed `google-credentials` to take precedence over `google-id`
([#283](#283)).
* Test with Go 1.20
([#295](#295)).
* Regenerate from OpenAPI
([#293](#293),
[#294](#294),
[#296](#296),
[#282](#282),
[#269](#269),
[#272](#272)).
* Added `replaceAll` and `lowerFirst` template functions
([#288](#288),
[#277](#277)).

Dependency updates:

* Bump google.golang.org/api from 0.105.0 to 0.109.0
([#271](#271),
[#280](#280),
[#284](#284),
[#290](#290)).

API changes:

 * Renamed `clusters.CreateCluster` to `clusters.BaseClusterInfo`.
 * Renamed `jobs.Job` to `jobs.BaseJob`.
 * Renamed `jobs.Run` to `jobs.BaseRun`.
* Fixed `commands.Results` `Schema` type from `[][]any` to
`[]map[string]any`.
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.

3 participants