CKAN API: Legacy API keys being retired, replaced by API Tokens #1404
Replies: 8 comments 1 reply
-
@praweshsth this is the GH issue I mentioned on our call just now |
Beta Was this translation helpful? Give feedback.
-
@robredpath Regarding your two questions:
|
Beta Was this translation helpful? Give feedback.
-
Thanks @Sanilblank ! Can you check how many Publisher users do currently use API Keys? I understand from the CKAN API docs that API keys look like UUIDs and therefore should be fairly easy to find. API Tokens have been the default since CKAN 2.9 which hopefully means not too many users will use them! |
Beta Was this translation helpful? Give feedback.
-
@robredpath After checking the production database, I have created the document and listed all the publisher who are using the API keys. Also, I found that some publishers have not input the API token field at all, which will result in them not being able to publish their data, so I have also attached the document containing the information about such publishers. |
Beta Was this translation helpful? Give feedback.
-
@Sanilblank I have edited your comment to remove the links to the files: we should never be sharing information about users in public forums, including GitHub. That was why I asked "how many", rather than "which users". However, thank you for this information. I can see that there are a relatively small number of organisations; we will consider how best to proceed. |
Beta Was this translation helpful? Give feedback.
-
We've been running some monitoring on the IATI Registry and we can see that the number of people using API Keys is decreasing as tool providers make the switch for their users. I'd like to address the 21 IATI Publisher users who still use API Keys and replace them with tokens. As I understand it, YI have sysadmin access to the IATI Registry, so I think you're able to do all of the necessary steps yourselves to move publishers away from keys to tokens by just logging into the Registry, generating a token for the relevant user, and entering it into the Publisher interface (or database!). Please can you let me know if this is correct @praweshsth (or @Sanilblank ?) and if there are any barriers to you proceeding with this? Thanks! (cc @emmajclegg ) |
Beta Was this translation helpful? Give feedback.
-
To confirm here - I've generated API tokens for each of these 21 organisations and replaced the API keys they were using in IATI Publisher. |
Beta Was this translation helpful? Give feedback.
-
Do inform us, if there are issues regarding it. |
Beta Was this translation helpful? Give feedback.
-
We are in the planning staging of upgrading the version of CKAN on the Registry from v2.9 to v2.10. One important change that's happening is that Legacy API Keys are being removed, and API Tokens will be the only way to authenticate API users.
See the CKAN API documentation and 2.10 changelog for more information.
I have two questions.
Firstly, does Publisher currently use Legacy API Keys or API Tokens? If Legacy API Keys, what would be involved in refactoring to use API Tokens?
Secondly, does the removal of Legacy API Keys result in users having to take any action, or can all necessary actions be taken by YI?
Beta Was this translation helpful? Give feedback.
All reactions