Skip to content

[🐛 Bug]: Secrets with trailing spaces in name appear in UI but cannot be accessed or deleted #5326

@woelfel-tn

Description

@woelfel-tn

Describe the bug
When a secret is added in Keep for a workflow, if the secret’s name ends with a trailing space character ("MY_SECRET " instead of "MY_SECRET"), it becomes visible in the UI but cannot be deleted, updated, or accessed through normal operations.

To Reproduce
Steps to reproduce the behavior:

  1. Open Keep and navigate to workflow secrets.

  2. Add a new secret with a name that includes a trailing space (e.g., API_KEY ).

  3. Save the secret.

  4. Observe that the secret is listed in the UI.

  5. Attempt to:

    • Access the secret in the workflow.
    • Delete the secret.
    • Update the secret.

Expected behavior
Trailing spaces in secret names should either:

  • Be automatically trimmed on creation, or

  • Be preserved but fully accessible and deletable like normal secrets.

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions