Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

User and Project API keys not GETtable by direct URL paths, both DELETEable over user API key path #297

Open
t0mk opened this issue Jul 11, 2021 · 0 comments
Labels

Comments

@t0mk
Copy link
Contributor

t0mk commented Jul 11, 2021

There don't seem to be a href for API keys in EM API:

  "api_keys": [
    {
      "id": "baff8dfa-2053-4644-8592-e2bc63909da8",
      "token": "REMOVED",
      "created_at": "2016-11-17T11:43:39Z",
      "updated_at": "2016-11-17T11:43:39Z",
      "description": "tomk",
      "user": {
        "href": "/metal/v1/users/ae8b343c-8800-44ff-a31f-edd1a2cbf86d"
      },
      "read_only": false
    },

.. i.e. it's not possible to GET api keys over URLs like /user/api-keys/baff8... or /projects/54bd4e../api-keys/c3ab3... Strangely it's possible to DELETE API key over such URL. Both project and user keys are Deleted over /user/api-keys/db4bcdef...

Why to make it possible to delete over the urls but not fetch them. Maybe this could be improved in the API?

@t0mk t0mk added the api bug label Jul 11, 2021
@t0mk t0mk changed the title API keys not GETtable by direct URL paths, both DELETEable over user API key path User and Project API keys not GETtable by direct URL paths, both DELETEable over user API key path Jul 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant