Skip to content

Subscription key not trimmed before validation #7707

@viktec

Description

@viktec

NS8 Subscription key accepts spaces and breaks validation if pasted with trailing/leading spaces.

Steps to reproduce

  1. Go to Cluster → Settings → Subscription

  2. Paste a valid subscription key (LK) with one or more leading or trailing spaces

  3. Save the configuration

Expected behavior

The validator should reject subscription keys that contain any leading or trailing spaces, or automatically trim them before saving.

Actual behavior

The system accepts the LK even if it includes spaces. This causes invalid subscription verification and mismatched hashes between systems.
For example, when the key is saved with a space, the computed SHA256 hash does not match the expected one, leading to subscription issues and license inconsistencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    verifiedAll test cases were verified successfully

    Type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions