Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

UI Rendering Issue in Version Diff for multiline secrets #31676

@moritz-da

Description

@moritz-da

Describe the bug
I encountered a bug in the browser UI when viewing the Version History of a secret. When I click on Version diff of a multiline secret key, newline characters (\n) are inserted, nonetheless it is not displayed correctly. This formatting issue cuts off a part of the secret, preventing me from seeing the full diff. I have attached a screenshot demonstrating the issue below.

Image

The content of the secret in the screenshot is:

test
test
test
test
...

To Reproduce
Steps to reproduce the behavior:

  1. Enter a secret with one key like the "test" example above (just the test strings, nothing else)
  2. Make some changes
  3. Open the secret in the UI, click on Version History and then Version diff
  4. See error

Expected behavior
A line break after every word.

Environment:

  • Vault Server Version 1.21.1
  • Google Chrome Version 142.0.7444.176 (macOS)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUsed to indicate a potential bugui

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions