Commit Graph

6 Commits

Author SHA1 Message Date
Zubair Haque 3c9ae38d1a
Add tests for gcpauth pkg ()
<!--- 
Thanks so much for your contribution! If this is your first time
contributing, please ensure that you have read the
[CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md)
documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed.
Please also include relevant motivation and context. -->

Add tests for gcpauth pkg

## Checklist

- [x] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [ ] I have formatted my code using `gofumpt`

<!--- Please provide details if the checkbox below is to be left
unchecked. -->
- [x] I have added tests that prove my fix is effective or that my
feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [ ] I have run `make changelog` and committed the
`changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the
Pulumi Cloud,
then the service should honor older versions of the CLI where this
change would not exist.
You must then bump the API version in
/pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi
Cloud API version
<!-- @Pulumi employees: If yes, you must submit corresponding changes in
the service repo. -->

---------

Signed-off-by: zhaque44 <haque.zubair@gmail.com>
2023-09-13 11:27:03 +00:00
phillip edwards 004fb31fbd make linter happy 2023-02-08 10:30:10 -08:00
phillip edwards 7985977da1 fix verbiage of comment 2023-02-08 06:58:08 -08:00
phillip edwards ba7c632924 added comment detailing why access token is being added 2023-02-08 06:55:59 -08:00
phillip edwards 6b8f0ded83 added GOOGLE_OAUTH2_ACCESS_TOKEN to filestate loging for gcloud bucket storage 2023-02-07 20:38:23 -08:00
Vladimir Pouzanov 6ee97e2b2b
Add support for authentication via GOOGLE_CREDENTIALS ()
* Add support for GCP auth via a PULUMI_GOOGLE_CREDENTIALS_HELPER

* Properly propagate the error for the google credentials auth

* Update the changelog with a note and usage example

* Propagate pulumi auth mechanisms to the secretsprovider

* Clean up the linter warnings

* Revert CHANGELOG.md

* Revert PULUMI_GOOGLE_CREDENTIALS_HELPER for now

* Cleanup

* Use same context

* Pass context

* Preserve scopes currently used

Co-authored-by: Fraser Waters <fraser@pulumi.com>
2022-06-07 16:02:08 +01:00