question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to add secrets that start with "@"

See original GitHub issue

As a result of https://github.com/fugue/credstash/issues/19 it seems that it is now impossible to add secrets that begin with @:

$ credstash put -v 1 'jenkins_ad_bind_pass' '@4=saCD0nF'
usage: credstash put [-h] [-k KEY] [-v VERSION] [-a]
                     [-d {SHA,MD5,RIPEMD,SHA384,SHA224,SHA256,SHA512,WHIRLPOOL}]
                     credential value [context [context ...]]
credstash put: error: argument value: Unable to read file 4=saCD0nF

The root cause is that the “@” is interpreted by credstash as denoting a file name argument. As a result, there seems to be no way to add an actual secret if it begins with an “@” character.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
alexharv074commented, Sep 20, 2017

It should be noted that the workaround above adds a newline as part of the secret. It should be:

$ echo -n "@4=saCD0nF" | credstash put -v 1 'jenkins_ad_bind_pass' - 
0reactions
bastianbcommented, Aug 28, 2018

How would the workaround work with contexts? I tried to echo -n… with contexts in it, doesnt work

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolve Secrets Manager secret access errors after ... - AWS
1. Open the Secrets Manager console. · 2. In Secret name, choose your secret. · 3. Choose Actions, and then choose dropdown list,...
Read more >
Github: Failed to add secret. Please try again - Stack Overflow
I just created a IAM User in AWS and am now wanting to add the access key ID and the secret access key...
Read more >
Add an AWS Secrets Manager - Harness.io Docs
Before You Begin · Permissions: Test AWS Permissions · Step 1: Configure Secrets Manager · Step 2: Display Name · Option: Credentials Type....
Read more >
Unable to create secrets in secretsmanager #1262 - GitHub
Stood up localstack with just the secretsmanager service running and im unable to create/get/list secrets errors with same error stating ...
Read more >
Set and retrieve a secret from Key Vault using Azure portal
To access Azure Key Vault, you'll need an Azure subscription. If you don't already have a subscription, create a free account before you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found