Ask Your Question
1

How to make Barbican work unauthorized?

asked 2017-08-25 08:29:37 -0500

friebada gravatar image

So I used the 'Setting up a Barbican Development Environment' guide (cannot link jet) to setup a local Barbican instance. I want to use it to test compatibility with a HSM via PKCS#11. I followed the guide without a problem until I reached chapter 'Running Barbican'. Here it tells me to verify my installation by using curl. So I ran the following command to store a plain-text secret:

curl -X POST -H 'content-type:application/json' -H 'X-Project-Id:12345' -d '{"payload": "my-secret-here", "payload_content_type": "text/plain"}' http://localhost:9311/v1/secrets

If I read the guide correctly, Barbican should not require a login for this. Quote:

Note that the default configuration uses the unauthenticated context. This means that requests should include the X-Project-Id header instead of including a keystone token in the X-Auth-Token header.

However, if I use the command, it fails with a HTTP 401 error giving me the following body:

{"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}

Is there anything else I need to configure to make it work?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-07-17 09:22:12 -0500

Vladimir gravatar image

I want to find the answer too!

edit flag offensive delete link more

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

1 follower

Stats

Asked: 2017-08-25 08:29:37 -0500

Seen: 56 times

Last updated: Aug 25 '17