Ask Your Question

how to use keyring?

asked 2015-01-28 17:59:41 -0500

For obvious reasons, i would prefer not to store the password in the OS_PASSWORD environment variable. From the cli_openrc.html page on :

To avoid storing the password in plain text, you can prompt for the OpenStack password interactively. Then, the keyring can store the password and the user can safely retrieve it from their keyring. The encrypted password is stored in the ~/.openstack-keyring.cfg file.

It is not clear to me how to use keyring. I installed it with pip, but as near as i can tell, none of the clients i installed support --os-use-keyring or OS_USE_KEYRING. Aside from that, it seems to me that the document implies that, if i set OS_USE_KEYRING=true and then run a client command that asks for my password, it will store it in .openstack-keyring.cfg after i type it at the prompt. Am i reading this right? If not, how do i use it?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-02-10 13:31:55 -0500

Keyring support was removed from the openstack client in and the documentation was never updated to reflect this. I've filed a bug against the documentation.

edit flag offensive delete link more

answered 2015-02-09 07:32:15 -0500

Hi, Keyring is a collection of components that store secrets, passwords, keys, certificates and make them available to applications.The keyring can store passwords and encryption keys for you. They are protected with your login password and stored safely via encryption. It's like putting all your keys in a lock that just has one key. Every time you use an application (like e.g. Ubuntu One) for which you have stored a password for in the key ring, the key ring enters it for you.

Refer these links for more information:
edit flag offensive delete link more


We've tried following these steps in the wiki in the past but not succeeded in storing the password in the keyring. Does anyone have a step by step demo ?

tim-bell gravatar imagetim-bell ( 2015-02-09 10:08:05 -0500 )edit

Varsha, the saltstack page is not germane and the OpenStack Wiki page is useless. It assumes that one already knows how to use keyring; that's what i'm asking. If you could provide us an example of how to set up keyring with the OS_PASSWORD, and successfully running a command, that would be great.

rone gravatar imagerone ( 2015-02-09 13:41:54 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2015-01-28 17:58:31 -0500

Seen: 801 times

Last updated: Feb 10 '15