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

[Bug] Reveal API key not working for users with profile analyst #1806

Closed
kwouffe opened this issue Feb 26, 2021 · 1 comment
Closed

[Bug] Reveal API key not working for users with profile analyst #1806

kwouffe opened this issue Feb 26, 2021 · 1 comment
Assignees
Labels
bug TheHive4 TheHive4 related issues
Milestone

Comments

@kwouffe
Copy link

kwouffe commented Feb 26, 2021

Request Type

Bug

Work Environment

Question Answer
OS version (server) Debian 10.7
OS version (client) Mac OS X
TheHive version / git hash Scalligraph 0.1.0-SNAPSHOT , TheHive 4.0.3-1 , Play 2.8.5
Package Type DEB
Browser type & version Firefox 85.0.2 (64-bit)

Problem Description

When trying to reveal their API keys, users with Analyst profile get nothing. It works for Org-admin users

Request to : https://THEHIVESERVER/api/v1/user/analyst_user/key
Answer: {"type":"NotFoundError","message":"User not found"}

Request to : https://THEHIVESERVER/api/v1/user/org_admin_user/key
Answer: API_key

In both case, user was authenticated and an API key was created for it.

Steps to Reproduce

  1. create user with analyst profile (example: analyst_user@thehive.local)
  2. create API key for the user from the admin panel
  3. authenticate as newly created user
  4. Go to https://THEHIVESERVER/api/v1/user/analyst_user@thehive.local/key

Possible Solutions

Looks like a permission issue :D

rgrds,

Emilien

@kwouffe kwouffe added TheHive4 TheHive4 related issues bug labels Feb 26, 2021
@nadouani nadouani added this to the 4.1.0 milestone Feb 26, 2021
@nadouani nadouani assigned nadouani and To-om and unassigned nadouani Feb 26, 2021
@nadouani
Copy link
Contributor

nadouani commented Mar 1, 2021

Confirmed, we will fix it. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TheHive4 TheHive4 related issues
Projects
None yet
Development

No branches or pull requests

3 participants