Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
pmacibm opened this issue Sep 11, 2024 · 3 comments
Open
1 task done

Comments

@pmacibm
Copy link

pmacibm commented Sep 11, 2024

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

Copy link
Contributor

Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.

If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.

@alisonjoseph alisonjoseph added proposal: open This request has gone through triaging. We're determining whether we take this on or not. and removed status: needs triage 🕵️‍♀️ labels Sep 11, 2024
@skcele
Copy link

skcele commented Sep 11, 2024

Hey y'all! Wanted to chime in here and add that I feel pretty confident that this is something other teams on Cloud would love to use if it were available. I also wonder if a more agnostic solution might be to add an option for a secondary icon button in the field for either component rather than specifically a copy or hide button.

@sstrubberg
Copy link
Member

sstrubberg commented Oct 14, 2024

@pmacibm I've requested access to your Figma file. The devs on the Carbon team have some additional questions around this flow as it pertains to security. Would you be open to discussing this further in Carbon Dev Office Hours?

@sstrubberg sstrubberg moved this from Triage to Later 🧊 in Roadmap Oct 14, 2024
@sstrubberg sstrubberg added component: code-snippet component: password-input and removed proposal: open This request has gone through triaging. We're determining whether we take this on or not. labels Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Later 🧊
Development

No branches or pull requests

4 participants