You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Vault, Juyuan Cai, Dan Kamalic
We're using the AWS backend to generate IAM access keys dynamicallly. We'd like for our users to be able to have these set in an environment variable for their shell, such that programs like the AWS Command Line tools can just read the key from the variable, and the key is not stored in a flat file.
At first, we thought to set the variable like this:
This presents a problem that calling the secret again generates a new access key and invalidates the old one. Has anyone had experience with doing something like this? What is the best way to set these values into environment variables?
Hridyesh Pant
unread,
Mar 31, 2016, 8:14:19 PM3/31/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Vault, jc...@gnshealthcare.com, dkam...@gnshealthcare.com
I am not sure what process you are going to use it.
we are going to use like each time when application need AWS resource ,it will call new AWS dynamic credential each time and once application finished job ,revoke them.
--Thanks
Hridyesh
Jeff Mitchell
unread,
Apr 1, 2016, 10:29:59 AM4/1/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vault...@googlegroups.com
Hi Teddy,
You can store the output of the command in a variable, then use `sed`
to pull out what you want from the output of the same read.
Alternately you could use `-format=json`, store that output, then use
`jq` to get what you want.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Vault, jc...@gnshealthcare.com, dkam...@gnshealthcare.com
You would need to keep an eye on credential expiration too. A bash function setup that runs every time could check if the AWS_ACCESS_KEY_ID already has a value if not request new creds. It would also need to check against something like AWS_ACCESS_KEY_EXPIRY to make sure the creds are still valid. You could even run a logout script to make sure the keys are revoked.