Skip to content

[Feature Request]: Copy obfuscated values (CodeSnippet or PasswordInput) #17412

Open

Description

The problem

  • Users need to securely view and source sensitive values (e.g., API keys) in the UI.
  • Sensitive values should be obfuscated by default to prevent accidental exposure.
  • Users should have the option to unobfuscate (reveal) values when necessary.
  • Users should be able to easily copy the sensitive value without revealing it.

Currently our team (IBM Cloud Observability) uses the PasswordInput in read only mode. However, when the value is obfuscated, the ability to copy the key is disabled. This forces users to reveal the value before copying.

Which is not an obvious simple workflow.

The solution

Expand the CodeSnippet or PasswordInput components to cater to this use case.

PasswordInput - add showCopyButton option
CodeSnippet - add obfuscation option

Examples

image
https://www.figma.com/design/WwPzxED6b1jP4Iju2oo7kK/Copy-obfuscated-values?node-id=1-64723&t=XAkcI1TzSzG7N7pN-4

Application/PAL

IBM Cloud

Business priority

Medium Priority = upcoming release but is not pressing

Available extra resources

No response

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    proposal: openThis request has gone through triaging. We're determining whether we take this on or not.This request has gone through triaging. We're determining whether we take this on or not.type: enhancement 💡

    Type

    No type

    Projects

    • Status

      Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions