ckan / ckanapi

A command line interface and Python module for accessing the CKAN Action API
Other
176 stars 74 forks source link

Environment variables for --config and --apikey #183

Closed jqnatividad closed 2 years ago

jqnatividad commented 3 years ago

Resolves #179.

Added --apikey as well. Not only is it convenient at the CLI, its also good for securely passing secrets when containerizing.

wardi commented 3 years ago

for -c it looks like this change isn't necessary, we launch the ckan cli or paster and they take care of loading the default configuration.

I don't love CKANAPI_KEY as a config option without also having a remote url specified. It could lead to accidentally disclosing your API key to the wrong CKAN site when you pass a -r parameter.

jqnatividad commented 2 years ago

Closing obsolete PR