在安装完keystone并利用keystone-manage命令同步数据库后,mysql(我使用的存储后端)中新加了如下表:

+------------------------+
| Tables_in_keystone |
+------------------------+
| access_token |
| assignment |
| consumer |
| credential |
| domain |
| endpoint |
| endpoint_group |
| federation_protocol |
| group |
| id_mapping |
| identity_provider |
| idp_remote_ids |
| mapping |
| migrate_version |
| policy |
| policy_association |
| project |
| project_endpoint |
| project_endpoint_group |
| region |
| request_token |
| revocation_event |
| role |
| sensitive_config |
| service |
| service_provider |
| token |
| trust |
| trust_role |
| user |
| user_group_membership |
| whitelisted_config |
+------------------------+

对它们进行分类,按照创建它们的代码所属的模块:

1. federation扩展

federation_protocol
identity_provider
service_provider
idp_remote_ids
mapping

2. oauth1扩展

access_token
consumer
request_token

3. endpoint_filter扩展

endpoint_group
project_endpoint
project_endpoint_group

4. endpoint_policy扩展

policy_association

5. revoke扩展

revocation_event

6. assignment

assignment
role

7. catalog

region
service
endpoint

8. credential

credential

9. identity

user
group
user_group_membership
id_mapping

10.policy

policy

11. resource

domain
project
whitelisted_config
sensitive_config

12. token

token

13. trust

trust
trust_role

14.

migrate_version

明细

1.1 federation_protocol:

+------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+-------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| idp_id | varchar(64) | NO | PRI | NULL | |
| mapping_id | varchar(64) | NO | | NULL | |
+------------+-------------+------+-----+---------+-------+

1.2 identity_provider:

+-------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+-------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| enabled | tinyint(1) | NO | | NULL | |
| description | text | YES | | NULL | |
+-------------+-------------+------+-----+---------+-------+

1.3 service_provider:

+--------------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------------------+--------------+------+-----+---------+-------+
| auth_url | varchar(256) | NO | | NULL | |
| id | varchar(64) | NO | PRI | NULL | |
| enabled | tinyint(1) | NO | | NULL | |
| description | text | YES | | NULL | |
| sp_url | varchar(256) | NO | | NULL | |
| relay_state_prefix | varchar(256) | NO | | ss:mem: | |
+--------------------+--------------+------+-----+---------+-------+

1.4 idp_remote_ids

+-----------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+--------------+------+-----+---------+-------+
| idp_id | varchar(64) | YES | MUL | NULL | |
| remote_id | varchar(255) | NO | PRI | NULL | |
+-----------+--------------+------+-----+---------+-------+

1.5 mapping:

+-------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| rules | text | NO | | NULL | |
+-------+-------------+------+-----+---------+-------+

2.1 access_token

+---------------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------------+-------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| access_secret | varchar(64) | NO | | NULL | |
| authorizing_user_id | varchar(64) | NO | MUL | NULL | |
| project_id | varchar(64) | NO | | NULL | |
| role_ids | text | NO | | NULL | |
| consumer_id | varchar(64) | NO | MUL | NULL | |
| expires_at | varchar(64) | YES | | NULL | |
+---------------------+-------------+------+-----+---------+-------+

2.2 consumer:

+-------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+-------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| description | varchar(64) | YES | | NULL | |
| secret | varchar(64) | NO | | NULL | |
| extra | text | NO | | NULL | |
+-------------+-------------+------+-----+---------+-------+

2.3 request_token:

+----------------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------------------+-------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| request_secret | varchar(64) | NO | | NULL | |
| verifier | varchar(64) | YES | | NULL | |
| authorizing_user_id | varchar(64) | YES | | NULL | |
| requested_project_id | varchar(64) | NO | | NULL | |
| role_ids | text | YES | | NULL | |
| consumer_id | varchar(64) | NO | MUL | NULL | |
| expires_at | varchar(64) | YES | | NULL | |
+----------------------+-------------+------+-----+---------+-------+

3.1 endpoint_group:

+-------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+--------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| name | varchar(255) | NO | | NULL | |
| description | text | YES | | NULL | |
| filters | text | NO | | NULL | |
+-------------+--------------+------+-----+---------+-------+

3.2 project_endpoint:

+-------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+-------------+------+-----+---------+-------+
| endpoint_id | varchar(64) | NO | PRI | NULL | |
| project_id | varchar(64) | NO | PRI | NULL | |
+-------------+-------------+------+-----+---------+-------+

3.3 project_endpoint_group:

+-------------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------------+-------------+------+-----+---------+-------+
| endpoint_group_id | varchar(64) | NO | PRI | NULL | |
| project_id | varchar(64) | NO | PRI | NULL | |
+-------------------+-------------+------+-----+---------+-------+

4 policy_association:

+-------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+-------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| policy_id | varchar(64) | NO | | NULL | |
| endpoint_id | varchar(64) | YES | MUL | NULL | |
| service_id | varchar(64) | YES | | NULL | |
| region_id | varchar(64) | YES | | NULL | |
+-------------+-------------+------+-----+---------+-------+

5. revocation_event:

+-----------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+-------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| domain_id | varchar(64) | YES | | NULL | |
| project_id | varchar(64) | YES | | NULL | |
| user_id | varchar(64) | YES | | NULL | |
| role_id | varchar(64) | YES | | NULL | |
| trust_id | varchar(64) | YES | | NULL | |
| consumer_id | varchar(64) | YES | | NULL | |
| access_token_id | varchar(64) | YES | | NULL | |
| issued_before | datetime | NO | | NULL | |
| expires_at | datetime | YES | | NULL | |
| revoked_at | datetime | NO | MUL | NULL | |
| audit_id | varchar(32) | YES | | NULL | |
| audit_chain_id | varchar(32) | YES | | NULL | |
+-----------------+-------------+------+-----+---------+-------+

6.1 assignment:

+-----------+---------------------------------------------------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+---------------------------------------------------------------+------+-----+---------+-------+
| type | enum('UserProject','GroupProject','UserDomain','GroupDomain') | NO | PRI | NULL | |
| actor_id | varchar(64) | NO | PRI | NULL | |
| target_id | varchar(64) | NO | PRI | NULL | |
| role_id | varchar(64) | NO | PRI | NULL | |
| inherited | tinyint(1) | NO | | NULL | |
+-----------+---------------------------------------------------------------+------+-----+---------+-------+

6.2 role:

+-------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+--------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| name | varchar(255) | NO | UNI | NULL | |
| extra | text | YES | | NULL | |
+-------+--------------+------+-----+---------+-------+

7.1 region:

+------------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------------+--------------+------+-----+---------+-------+
| id | varchar(255) | NO | PRI | NULL | |
| description | varchar(255) | NO | | NULL | |
| parent_region_id | varchar(255) | YES | | NULL | |
| extra | text | YES | | NULL | |
+------------------+--------------+------+-----+---------+-------+

7.2 service:

+---------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+--------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| type | varchar(255) | YES | | NULL | |
| enabled | tinyint(1) | NO | | 1 | |
| extra | text | YES | | NULL | |
+---------+--------------+------+-----+---------+-------+

7.3 endpoint

+--------------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------------------+--------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| legacy_endpoint_id | varchar(64) | YES | | NULL | |
| interface | varchar(8) | NO | | NULL | |
| service_id | varchar(64) | NO | MUL | NULL | |
| url | text | NO | | NULL | |
| extra | text | YES | | NULL | |
| enabled | tinyint(1) | NO | | 1 | |
| region_id | varchar(255) | YES | MUL | NULL | |
+--------------------+--------------+------+-----+---------+-------+

8. credential:

+------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+--------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| user_id | varchar(64) | NO | | NULL | |
| project_id | varchar(64) | YES | | NULL | |
| blob | text | NO | | NULL | |
| type | varchar(255) | NO | | NULL | |
| extra | text | YES | | NULL | |
+------------+--------------+------+-----+---------+-------+

9.1 user:

+--------------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------------------+--------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| name | varchar(255) | NO | | NULL | |
| extra | text | YES | | NULL | |
| password | varchar(128) | YES | | NULL | |
| enabled | tinyint(1) | YES | | NULL | |
| domain_id | varchar(64) | NO | MUL | NULL | |
| default_project_id | varchar(64) | YES | | NULL | |
+--------------------+--------------+------+-----+---------+-------+

9.2 group:

这张表的名称“group”和SQL关键字相同,因此查看的时候需要指定它是keystone.group。

+-------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+-------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| domain_id | varchar(64) | NO | MUL | NULL | |
| name | varchar(64) | NO | | NULL | |
| description | text | YES | | NULL | |
| extra | text | YES | | NULL | |
+-------------+-------------+------+-----+---------+-------+

9.3 user_group_membership:

+----------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+-------------+------+-----+---------+-------+
| user_id | varchar(64) | NO | PRI | NULL | |
| group_id | varchar(64) | NO | PRI | NULL | |
+----------+-------------+------+-----+---------+-------+

9.4 id_mapping:

+-------------+----------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+----------------------+------+-----+---------+-------+
| public_id | varchar(64) | NO | PRI | NULL | |
| domain_id | varchar(64) | NO | MUL | NULL | |
| local_id | varchar(64) | NO | | NULL | |
| entity_type | enum('user','group') | NO | | NULL | |
+-------------+----------------------+------+-----+---------+-------+

10. policy:

+-------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+--------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| type | varchar(255) | NO | | NULL | |
| blob | text | NO | | NULL | |
| extra | text | YES | | NULL | |
+-------+--------------+------+-----+---------+-------+

11.1 domain:

+---------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| name | varchar(64) | NO | UNI | NULL | |
| enabled | tinyint(1) | NO | | NULL | |
| extra | text | YES | | NULL | |
+---------+-------------+------+-----+---------+-------+

11.2 project:

+-------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+-------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| name | varchar(64) | NO | | NULL | |
| extra | text | YES | | NULL | |
| description | text | YES | | NULL | |
| enabled | tinyint(1) | YES | | NULL | |
| domain_id | varchar(64) | NO | MUL | NULL | |
| parent_id | varchar(64) | YES | MUL | NULL | |
+-------------+-------------+------+-----+---------+-------+

11.3 whitelisted_config:

+-----------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+--------------+------+-----+---------+-------+
| domain_id | varchar(64) | NO | PRI | NULL | |
| group | varchar(255) | NO | PRI | NULL | |
| option | varchar(255) | NO | PRI | NULL | |
| value | text | NO | | NULL | |
+-----------+--------------+------+-----+---------+-------+

11.4 sensitive_config:

+-----------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+--------------+------+-----+---------+-------+
| domain_id | varchar(64) | NO | PRI | NULL | |
| group | varchar(255) | NO | PRI | NULL | |
| option | varchar(255) | NO | PRI | NULL | |
| value | text | NO | | NULL | |
+-----------+--------------+------+-----+---------+-------+

12. token:

+----------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+-------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| expires | datetime | YES | MUL | NULL | |
| extra | text | YES | | NULL | |
| valid | tinyint(1) | NO | | NULL | |
| trust_id | varchar(64) | YES | MUL | NULL | |
| user_id | varchar(64) | YES | MUL | NULL | |
+----------+-------------+------+-----+---------+-------+

13.1 trust:

+-----------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+-------------+------+-----+---------+-------+
| id | varchar(64) | NO | PRI | NULL | |
| trustor_user_id | varchar(64) | NO | | NULL | |
| trustee_user_id | varchar(64) | NO | | NULL | |
| project_id | varchar(64) | YES | | NULL | |
| impersonation | tinyint(1) | NO | | NULL | |
| deleted_at | datetime | YES | | NULL | |
| expires_at | datetime | YES | | NULL | |
| remaining_uses | int(11) | YES | | NULL | |
| extra | text | YES | | NULL | |
+-----------------+-------------+------+-----+---------+-------+

13.2 trust_role:

+----------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+-------------+------+-----+---------+-------+
| trust_id | varchar(64) | NO | PRI | NULL | |
| role_id | varchar(64) | NO | PRI | NULL | |
+----------+-------------+------+-----+---------+-------+

14. migrate_version:

+-----------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+--------------+------+-----+---------+-------+
| repository_id | varchar(250) | NO | PRI | NULL | |
| repository_path | mediumtext | YES | | NULL | |
| version | int(11) | YES | | NULL | |
+-----------------+--------------+------+-----+---------+-------+

Kilo 版 Keystone 数据库结构的更多相关文章

  1. Ubuntu 14.04 LTS 配置 Juno 版 Keystone

    keystone配置概况 采用包安装方式安装的keystone,重要的文件结构有如下: /etc/keystone/ - 包含keystone所有的配置信息 /var/log/keystone/ - ...

  2. OpenStack kilo版(2) keystone部署

    部署在controller节点 配置数据库 MariaDB [(none)]> CREATE DATABASE keystone; Query OK, 1 row affected (0.00 ...

  3. OpenStack Kilo版加CEPH部署手册

    OpenStack Kilo版加CEPH部署手册 作者: yz联系方式: QQ: 949587200日期: 2015-7-13版本: Kilo 转载地址: http://mp.weixin.qq.co ...

  4. openstack【Kilo】汇总:包括20英文文档、各个组件新增功能及Kilo版部署

    OpenStack Kilo版本发布 20英文文档OpenStack Kilo版本文档汇总:各个操作系统安装部署.配置文档.用户指南等文档 Kilo版部署 openstack[Kilo]入门 [准备篇 ...

  5. ECSHOP 数据库结构说明 (适用版本v2.7.3)

    ECSHOP 数据库结构说明 (适用版本v2.7.3) 1.account_log 用户账目日志表 字段 类型 Null/默认 注释 log_id mediumint(8) 否 / 自增 ID 号 u ...

  6. 对比PG数据库结构是否一致的方法

    如果版本升级涉及数据库更新,测试时要对比旧版数据库更新后是否和全新安装的是否一致,但是数据库结构很复杂的时候对比就很麻烦,postgre可以使用以下方法对比:pg_dump.exe –h 数据库IP ...

  7. Juno 版 Keystone 主配置文件 keystone.conf 详解

    本文全面解读Icehouse发行版keystone的配置文件keystone.conf,由于从keystone提供的服务或依赖的基础设施角度入手,因此[DEFAULT]部分可能被拆分到很多子块中. 关 ...

  8. .net mvc 站点自带简易SSL加密传输 Word报告自动生成(例如 导出数据库结构) 微信小程序:动画(Animation) SignalR 设计理念(一) ASP.NET -- WebForm -- ViewState ASP.NET -- 一般处理程序ashx 常用到的一些js方法,记录一下 CryptoJS与C#AES加解密互转

    .net mvc 站点自带简易SSL加密传输   因项目需要,传输数据需要加密,因此有了一些经验,现简易抽出来分享! 请求:前端cryptojs用rsa/aes 或 rsa/des加密,后端.net ...

  9. ECSHOP 数据库结构说明

    ECSHOP 数据库结构说明 (适用版本v2.7.3) 1.account_log 用户账目日志表 字段 类型 Null/默认 注释 log_id mediumint(8) 否 / 自增 ID 号 u ...

随机推荐

  1. 【转】Linux mysql停止失败的解决办法 Stopping MySQL database server mysqld [fail]

    root@ubuntu:/# /etc/init.d/mysql stop * Stopping MySQL database server mysqld [fail] root@ubuntu:/# ...

  2. LeetCode: Reverse Integer 解题报告

    Reverse Integer Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, retur ...

  3. Python(二)之对象类型

    本篇记录Python对象类型 开始仍然是先掌握几个查看对象有用的函数,id,type,print 查看对象身份.类型.值:记住以下两个命令id,type 两个对象的比较 以上三个分别是 身份比较.对象 ...

  4. iOSUIPickerView使用

    #import <UIKit/UIKit.h> @interface ViewController : UIViewController<UIPickerViewDelegate,U ...

  5. MAMP和WAMP搭建Web环境,数据库,数据分布可视化

    MAMP和WAMP搭建Web环境,数据库,数据分布可视化 1. 数据库 用MAMP和WAMP搭建Web环境,数据分布可视化 Web环境Web服务器:Apache.Nginx,处理Web请求数据库:My ...

  6. highcharts图表组件通过设置tooltip属性自定义数据提示信息

    我们先来看看这样一个例子,全局配置好tooltip,数据点的提示信息能够自己根据数据点自身数据情况加以显示,代码如下所示: 01.$(function () { 02.$('#container'). ...

  7. spring-retry的简单使用

    添加Maven依赖: <dependency> <groupId>org.springframework.retry</groupId> <artifactI ...

  8. gcc命令中参数c和o混合使用的详解

    gcc -c a.c 编译成目标文件a.o gcc -o a a.o 生成执行文件a.exe gcc a.c 生成执行文件a.exe gcc -o a -c a.c 编译成目标文件a gcc -o a ...

  9. postgresql with递归

    在PostgreSQL里,with子句提供了一种方法写一个大的查询中使用的辅助报表与查询.它有助于打破复杂和大型查询简单易读的形式. 1. 建表 postgres=# create table tb9 ...

  10. QQ小薇机器人

    https://github.com/b3log/xiaov XiaoV(小薇)是一个用 Java 写的 QQ 聊天机器人 Web 服务,可以用于社群互动: 监听多个 QQ 群消息,发现有“感兴趣”的 ...