keep icon indicating copy to clipboard operation
keep copied to clipboard

[🐛 Bug]: Alert Self-Assign doesn't use the real username

Open DolevNe opened this issue 9 months ago • 1 comments

Describe the bug Self-Assign doesn't use the real username, it assignes admin@keephq To Reproduce Steps to reproduce the behavior:

  1. Go to any alert
  2. Click on the alert
  3. In alert details click self-assign
  4. you'll see the user that was assigned is admin@keephq

Expected behavior Assignment of the user that clicked self-assign

DolevNe avatar Mar 20 '25 14:03 DolevNe

Hey, @DolevNe! 👋 I'm here to help you with any bugs, questions, or contributions. Let's squash some bugs together!

The issue you're experiencing with the self-assign functionality assigning the email admin@keephq instead of the real username might be related to how the authenticated user's email is being retrieved or modified before reaching the self-assign functionality.

The self-assign feature uses the authenticated user's email to assign the incident. This is done in the assign_incident function, where the incident's assignee is set to the authenticated_entity.email [1]. If the email is not being set correctly, it could be due to a middleware or function that modifies the authenticated user's email before it reaches this point.

To troubleshoot this issue, you might want to check:

  1. How the authenticated_entity is being populated and whether there is any middleware or function that could be altering the email to admin@keephq.
  2. The configuration or environment settings that might default the email to admin@keephq if the actual user email is not available.

If you have access to the authentication logic or middleware, reviewing those parts of the code could help identify where the email might be getting incorrectly set.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

dosubot[bot] avatar Mar 20 '25 14:03 dosubot[bot]