Questions tagged [credstash]

10 questions
7
votes
1 answer

AWS KMS Decrypt Error Credstash

My aws account is in us-west-2 region. and the KMS key created in that account has ARN arn:aws:kms:us-east-1::key/. In my node module, I am using Credstash to decrypt the key which is encrypted using the KMS key. var credstash = new Credstash({…
Anil Bhaskaran
  • 495
  • 1
  • 8
  • 23
2
votes
2 answers

brew or pip - install credstash - errors - No named formulae found in taps / OSErr six-1.4.1-py2.7.egg-info operation not permitted

Getting the following error on my Mac Terminal window. $ pip --version pip 6.1.1 from /Library/Python/2.7/site-packages (python 2.7) Python version is 2.7.10 While trying to install credstash using brew, I'm getting the following error. $ `which…
AKS
  • 16,482
  • 43
  • 166
  • 258
2
votes
1 answer

Using credstash in Python

I've installed credstash on my computer. I'm able to use commands like "credstash get [credential]" while in the command prompt. However, when in a python interpreter, after I use "import credstash" I am getting syntax errors when attempting to use…
Keefer
  • 59
  • 1
  • 3
  • 8
1
vote
1 answer

Bash export credstash values from script

So i'm trying to implement a build script that pulls down our credstash keys from DynamoDB and then sets them in the environment running the script, I need to the commands afterward to have access to those environment variables to compile some…
Mrk Fldig
  • 4,244
  • 5
  • 33
  • 64
1
vote
1 answer

conditional subparser based on mutually exclusive group argument

I am working on extending the code in credstash with my code here: https://github.com/willcrain1/credstash My issue is that I would like to add a required argument, but only if you select -b as one of the mutually exclusive (you will have to provide…
Will Crain
  • 13
  • 3
0
votes
1 answer

Intermittent pip install error in virtualenv?

For the commands below: virtualenv --system-site-packages `pwd`/.test # load virtual environment source `pwd`/.test/bin/activate # install required python modules # for some reason argparse is not included with credstash install but required at…
Carlos Jaime C. De Leon
  • 2,476
  • 2
  • 37
  • 53
0
votes
1 answer

Set environment variable from credstash on Elastic Beanstalk

I'm having some issues with Elastic Beanstalk environment variables which I want to set from credstash. option_settings: - namespace: aws:elasticbeanstalk:application:environment option_name: SECRET_KEY_BASE value: $(credstash --region…
0
votes
1 answer

How to get credentials from credstash using python?

In node, I used to do it this way const Credstash = require('nodecredstash'); const credstash = new Credstash({ table: , kmsKey: , }); return credstash.getSecret({ name: , …
azhar22k
  • 4,765
  • 4
  • 21
  • 24
0
votes
1 answer

Credstash: 'module' object has no attribute 'get': AttributeError

I am trying to use credstash for accessing credentials stored in KMS, however, even before accessing them, the python 2.7 lambda runtime on aws is giving me an error: 'module' object has no attribute 'get': AttributeError Traceback (most recent call…
Omkar
  • 2,274
  • 6
  • 21
  • 34
0
votes
1 answer

How to catch exceptions for ansible credstash lookup plugin with key not found?

I have the following code app_key: "{{ lookup('credstash', 'aws/project/'+app_name+'/'+app_env+'/app_key') | default('not-set') }}" And was expecting to be able set a default value based on lookup failing with a key not found, and then generate…
Kudami
  • 21
  • 5