GlareDB / glaredb

GlareDB: An analytics DBMS for distributed data
https://glaredb.com
GNU Affero General Public License v3.0
637 stars 37 forks source link

optionally auto detect credentials from env #2092

Open universalmind303 opened 10 months ago

universalmind303 commented 10 months ago

Description

A lot of the credentials variants (especially the object store credentials) usually have env var equivalents that are specified by the provider.

Such as google cloud, it'll look for .config/gcloud/application_default_credentials.json by default. Same goes for AWS, there are many AWS specific env vars that the aws default credentials provider chain will use.

not sure exactly what the UX would be, but I do think it'd be nice if we could auto detect credentials if the user opts in to it.

Possibly through a session var?

set gcp_use_env_credentials = true;
select * from csv_scan('gs://my_bucket/my_file.csv')
CREATE CREDENTIALS azure_creds
    PROVIDER azure
    OPTIONS (
        use_env = true
    );
tychoish commented 10 months ago

I like the second option more than the first, but I haven't thought about it too much, so I could be sold :D