User Request
Type: bug
Target: Console Application
Submitted by: @aashu2006
Console Request ID: b85c7169-9159-4146-a8e8-2d6ccf3e308d
Description
What happened:
In pkg/api/handlers/user.go:53-54, user.Email = updates.Email accepts any non-empty string with no format validation. Values like "not-an-email" pass through and are persisted to the database, causing silent failures in downstream email sending.
What I expected:
Email should be validated against a basic format (e.g. contains @ and a domain) before being stored.
Steps to reproduce:
- PATCH user email with
"not-an-email"
- Observe the invalid email is stored with no validation error
This issue was automatically created from the KubeStellar Console.
User Request
Type: bug
Target: Console Application
Submitted by: @aashu2006
Console Request ID: b85c7169-9159-4146-a8e8-2d6ccf3e308d
Description
What happened:
In
pkg/api/handlers/user.go:53-54,user.Email = updates.Emailaccepts any non-empty string with no format validation. Values like"not-an-email"pass through and are persisted to the database, causing silent failures in downstream email sending.What I expected:
Email should be validated against a basic format (e.g. contains
@and a domain) before being stored.Steps to reproduce:
"not-an-email"This issue was automatically created from the KubeStellar Console.