Skip to content

dizz/dock-os-keystone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello!

This container will run up OpenStack Keystone against a MySQL backend. Keystone provides AuthN and AuthZ. Also included is the OpenStack Horizon to provide a UI for basic Keystone management.

Using

  • Run docker compose to bring up the stack: docker-compose up --build
  • To completely cleanup issue: docker-compose down --rmi all

Environment Variables

  • See the kbuild/bootstrap.sh script for those related to Keystone.
  • See the hbuild/Dockerfile for those related to Horizon

Quick Test

The admin credentials to the keystone service instance will be shown when the keystone container starts.

Use the user credentials shown when the following is executed...

Get a Token

curl -si -X POST $OS_AUTH_URL/auth/tokens\?nocatalog -H "Content-Type: application/json" -d '{ "auth": { "identity": { "methods": ["password"],"password": {"user": {"domain": {"name": "'"$OS_USER_DOMAIN_NAME"'"},"name": "'"$OS_USERNAME"'", "password": "'"$OS_PASSWORD"'"} } }, "scope": { "project": { "domain": { "name": "'"$OS_PROJECT_DOMAIN_NAME"'" }, "name":  "'"$OS_PROJECT_NAME"'" } } }}'

results in...

HTTP/1.1 201 Created
X-Subject-Token: gAAAAABaKUWjuFUrWaB9elQBwJLcpzil9qNFDxux6TRDS6u7SP4hIMbUGJHxL5RKOMFSdwlMtdJDZe0eE6JBC5tZQPFWrLCm3lVa1Z8j2tpFD9Dpnrtou8M1LqJw45z2Cy7nJqEWhyBTGvxPpeV-R9Xkl5nZlstXlzcytVaev6ym86N1SaLynbs
Vary: X-Auth-Token
Content-Type: application/json
Content-Length: 524
x-openstack-request-id: req-252f2f9b-acde-416f-ab1e-1f735bd56e57

{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "43acc75c52c4482ab5e9490c219ebc2a", "name": "admin"}], "expires_at": "2017-12-14T13:44:03.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "23212c242ea047ae8c2f3e6347ad30c0", "name": "admin"}, "user": {"password_expires_at": null, "domain": {"id": "default", "name": "Default"}, "id": "9361f84a38ff4a04a4a7a40e7a484bce", "name": "admin"}, "audit_ids": ["WPcgPzhaRwWjNC1yHRewmA"], "issued_at": "2017-12-07T13:44:03.000000Z"}}

X-Subject-Token has your token value, which can be used in subsequent requests with the X-Auth-Token header.

Accessing the UI

By default the Keystone (Horizon) UI is available on localhost at port 80. Note that currently Horizon accesses Keystone using the v2.0 API.

Notes

The set of deployed containers is entirely stateless i.e. the DB is not persisted on an external volume, any log files are also not persisted.

Releases

No releases published

Packages

No packages published

Languages