Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API tokens not working anymore #113

Open
amercader opened this issue Jan 31, 2023 · 0 comments
Open

API tokens not working anymore #113

amercader opened this issue Jan 31, 2023 · 0 comments

Comments

@amercader
Copy link
Member

If you pulled the openknowledge/ckan-base or openknowledge/ckan-dev images on or after 2023-01-30 you will notice that two things happen:

  • Existing login sessions will be closed, forcing users to re-login
  • Existing API Tokens will no longer work

This is because due to CVE-2023-22746, changes were made to the images to ensure a unique session secret key was used when creating a container, to avoid sharing the same key across instances. As a new key will be used, old API Tokens will no longer work and will need to be re-generated.

To avoid this in the future make sure to persist the various secret keys in your .env file with the rest of your secrets:

CKAN___BEAKER__SESSION__SECRET=CHANGE_ME
# See https://docs.ckan.org/en/latest/maintaining/configuration.html#api-token-settings
CKAN___API_TOKEN__JWT__ENCODE__SECRET=string:CHANGE_ME
CKAN___API_TOKEN__JWT__DECODE__SECRET=string:CHANGE_ME

If you had your secrets defined in the .env file as above you won't be affected by this change (i.e. your API Tokens will keep working as expected)

@amercader amercader pinned this issue Jan 31, 2023
@amercader amercader unpinned this issue Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant