Programmatic Access to Access Key/Secret

32 views
Skip to first unread message

Pete Michel

unread,
Jun 24, 2014, 1:45:05 PM6/24/14
to cmb-use...@googlegroups.com
I am using CMB in my development environment and want to be able to spin up CMB and then have my application interact with it via the AWS Java SDK.  To do this, I need the access key and secret for the user.  Is there an easy way to access the key and secret that are automatically created when CMB starts so that I don't have to manually log into CMB to retrieve it?

I am spinning up CMB in a docker container and not persisting any state, so if I rebuild my docker container I want to be able to get the new key and secret automatically.  I'm open to any way of grabbing these keys through a script or anything as long as it isn't a manual process.

Thanks,
Pete

Pete Michel

unread,
Jun 24, 2014, 2:35:45 PM6/24/14
to cmb-use...@googlegroups.com
Right now I am curling the webui, logging in, and then grepping/sedding/etc out the key and secret.  This works, but would be curious if there are better options.

boriwo

unread,
Jun 24, 2014, 3:09:30 PM6/24/14
to cmb-use...@googlegroups.com
The only other way to get the access keys besides curling the webui would be to directly pull them from Cassandra: They are stored in the Users column family. Or, you could install CMB in such a way that you pre-populate the Users column family instead of creating new users every time so you know / choose the access keys and secrets in advance and don't have to look them up.
Reply all
Reply to author
Forward
0 new messages