Skip to content

Ability to inline JSON into GOOGLE_APPLICATION_CREDENTIALS #828

Closed
@jart

Description

@jart

Some CI systems don't really give you the option to have files. Since we're not sure yet if it would be a good idea to allow the user to configure the default instance of CloudStorageFileSystemProvider with a Storage object that has custom authentication, it would be really nice if the environment variable provided greater flexibility.

I propose that, if the GOOGLE_APPLICATION_CREDENTIALS environment has a value that:

  1. Starts with ^\s*\{
  2. Is valid JSON

Then it will be treated as though it's the contents of the key file, rather than a filename.

@aozarov @jean-philippe-martin

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions