cryptr icon indicating copy to clipboard operation
cryptr copied to clipboard

Secrets with "\" char could not be opened

Open vicioussn opened this issue 6 years ago • 3 comments

The problem

If you create secret with "" char in the path, Cryptr cannot view that secret (although it's discoverable).

Environment

  • Cryptr version (or git revision) that exhibits the issue: 0.3.0
  • Desktop OS/version used to run Cryptr: Windows 10
  • Vault version: 1.2.3

Details

Obviously, "" is getting replaced to "/", just as "space" is replaced with underscore.

vicioussn avatar Oct 21 '19 11:10 vicioussn

Hey, I'm not positive I understand as you reference different chars. Are you talking about an empty string being replaced with a forward slash? Or a backslash being replaced with a forward slash?

Vault does not accept backslashes in the names of secrets.

jcrowthe avatar Dec 23 '19 22:12 jcrowthe

Hi!

GitHub removing backslash from my message. So, backslash is getting replaces with forward slash.

Vault does accept backslash in secret names. Take a look: image

vicioussn avatar Jan 27 '20 06:01 vicioussn

GitHub removing backslash from my message.

You could use backticks (`code`) to enclose your backslash, gets rendered as \.

The secret in your screenshot gets displayed as something/domain\username but it should be something/domain/\username, is that correct?

lucasteinke avatar Jan 10 '22 06:01 lucasteinke