Skip to content

Commit

Permalink
Add a special case for SECRET_KEY in CKAN 2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Oct 10, 2023
1 parent 6b89fb0 commit 3deb887
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckanext/envvars/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ def update_config(self, config):

if config_declaration:
self.declared_keys = [str(k) for k in config_declaration.iter_options()]
# SECRET_KEY is marked as internal in CKAN 2.10 but we want to
# encourage its use so we support it here
if "SECRET_KEY" not in self.declared_keys:
self.declared_keys.append("SECRET_KEY")
else:
self.declared_keys = None

Expand Down

0 comments on commit 3deb887

Please sign in to comment.