Skip to content

User email stored without format validation allowing arbitrary strings to be persisted #7798

@aashu2006

Description

@aashu2006

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:

  1. PATCH user email with "not-an-email"
  2. Observe the invalid email is stored with no validation error

This issue was automatically created from the KubeStellar Console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-fix-requestedai-processingAI is currently processing this issuekind/bugCategorizes issue or PR as related to a bug.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions