Skip to content

Allow implicit dataset / bucket / other behavior from environment #337

Description

@dhermes

Not necessarily needed for M1, just points in the direction of running in environments like GAE and GCE.

I took a stab at it using environment variables in dhermes@0860e59
In #444 this is done for datasets.

@craigcitro I tried to parse how getting auth values from the environment works in GetCredentials and BaseApiClient.__init__ but it was unclear (for example) how _API_KEY is set.

Activity

  1. craigcitro commented on Nov 4, 2014

    @craigcitro
    Contributor

    You can actually ignore _API_KEY -- for Cloud, it's basically unneeded. (It's still needed in a few internal use cases, so it needs to stay available.)

    GetCredentials otherwise just steps through each of service account, GAE, GCE, looking to get credentials, and finally bottoms out in the usual oauth2 flow.

  2. reopened this on Nov 4, 2014
  3. silvolu commented on Nov 4, 2014

    @silvolu
    Contributor

    I've been talking with Craig to move parts of GetCredentials to oauth2client; after that we can rework the auth bits of this lib. Tracked in #335.

  4. changed the title [-]Allow implicit auth from environment[/-] [+]Allow implicit dataset / bucket / other behavior from environment[/+] on Dec 17, 2014
  5. dhermes commented on Dec 17, 2014

    @dhermes
    ContributorAuthor

    Just renamed this issue from Allow implicit auth from environment

    The auth parts will be handled in #335

    The remaining will be dataset / etc. specific so certain things "just work".

  6. added
    api: datastoreIssues related to the Datastore API.
    api: storageIssues related to the Cloud Storage API.
    on Dec 30, 2014
  7. 38 remaining items

  8. added a commit that references this issue on Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: datastoreIssues related to the Datastore API.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions