flagsmith icon indicating copy to clipboard operation
flagsmith copied to clipboard

Don't return or request the API key Id

Open novakzaballa opened this issue 1 year ago • 0 comments

How are you running Flagsmith

  • [X] Self Hosted with Docker
  • [ ] Self Hosted with Kubernetes
  • [x] SaaS at flagsmith.com
  • [ ] Some other way (add details in description below)

Describe the bug

API key ID should not be returned or used in certain endpoints, for example:

POST: /api/v1/organisations/{organisation_pk}/roles/{role_pk}/master-api-keys/ GET: /api/v1/organisations/{organisation_pk}/master-api-keys/{api_key_prefix}/roles/

Steps To Reproduce

  1. Navigate to the API keys tab on the organisation settings page.
  2. Generate a new API key.
  3. View the response in the network panel.

Expected behavior

We should be able to make requests without needing the ID.

Screenshots

No response

novakzaballa avatar May 27 '24 14:05 novakzaballa