-
-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Application Default Credentials & Service Account impersonation (#…
…1148) * Add Application Default Credentials & Service Account impersonation * Fail if service account impersonation used with default creds * Fix some formatting --------- Co-authored-by: Paul Thomson <[email protected]>
- Loading branch information
1 parent
a8e7257
commit c33d4d5
Showing
11 changed files
with
307 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -205,6 +205,24 @@ play { | |
> the `ANDROID_PUBLISHER_CREDENTIALS` environment variable and don't specify the | ||
> `serviceAccountCredentials` property. | ||
#### Application Default Credentials | ||
|
||
Alternatively, you can use [Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc) | ||
(and optionally [Service Account impersonation](https://cloud.google.com/docs/authentication/use-service-account-impersonation)) | ||
instead of specifying a JSON private key file or environment variable: | ||
|
||
```kt | ||
android { ... } | ||
|
||
play { | ||
useApplicationDefaultCredentials = true | ||
impersonateServiceAccount = "[email protected]" // Optional | ||
} | ||
``` | ||
|
||
> Note: Currently [Service Account impersonation](https://cloud.google.com/docs/authentication/use-service-account-impersonation) | ||
is only supported when using [Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc) | ||
|
||
## Task organization | ||
|
||
GPP follows the Android Gradle Plugin's (AGP) naming convention: `[action][Variant][Thing]`. For | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.