@@ -50,6 +50,11 @@ images](https://datashades.github.io/file-keeper/adapters/emulate/). Even
5050though these images do not replicate ideally corresponding cloud provider,
5151generally they are close enough to be used for local development and testing.
5252
53+ ** Never use inline secrets in the config file. Use references to environment
54+ variables(like in examples below) or
55+ [ ckanext-envvars] ( https://github.com/ckan/ckanext-envvars ) .**
56+
57+
5358### ckan: s3
5459
5560AWS S3 adapter. Wraps [ file-keeper's implementation] ( https://datashades.github.io/file-keeper/adapters/s3/ )
@@ -65,8 +70,8 @@ pip install 'ckanext-file-keeper-cloud[s3]'
6570``` ini
6671ckan.files.storage.my_cloud.type = ckan:s3
6772ckan.files.storage.my_cloud.bucket = my_bucket
68- ckan.files.storage.my_cloud.key = ABC123
69- ckan.files.storage.my_cloud.secret = 321CBA
73+ ckan.files.storage.my_cloud.key = %(CKAN_S3_KEY)s
74+ ckan.files.storage.my_cloud.secret = %(CKAN_S3_SECRET)s
7075```
7176
7277Only ` bucket ` option is required as all other parameters can be read from
@@ -93,8 +98,8 @@ pip install 'ckanext-file-keeper-cloud[azure]'
9398``` ini
9499ckan.files.storage.my_cloud.type = ckan:azure_blob
95100ckan.files.storage.my_cloud.container_name = my_container
96- ckan.files.storage.my_cloud.account_name = ABC123
97- ckan.files.storage.my_cloud.account_key = 321CBA
101+ ckan.files.storage.my_cloud.account_name = %(CKAN_AZURE_ACCOUNT)s
102+ ckan.files.storage.my_cloud.account_key = %(CKAN_AZURE_KEY)s
98103```
99104
100105Recommended options:
@@ -146,8 +151,8 @@ pip install 'ckanext-file-keeper-cloud[libcloud]'
146151ckan.files.storage.my_cloud.type = ckan:libcloud
147152ckan.files.storage.my_cloud.provider = S3
148153ckan.files.storage.my_cloud.container_name = my_bucket
149- ckan.files.storage.my_cloud.key = ABC123
150- ckan.files.storage.my_cloud.secret = 321CBA
154+ ckan.files.storage.my_cloud.key = %(CKAN_CLOUD_KEY)s
155+ ckan.files.storage.my_cloud.secret = %(CKAN_CLOUD_SECRET)s
151156```
152157
153158Requires following options:
0 commit comments