Merge lp:~gnuoy/charms/trusty/keystone/token-expiry into lp:~openstack-charmers-archive/charms/trusty/keystone/next

Proposed by Liam Young
Status: Merged
Merged at revision: 138
Proposed branch: lp:~gnuoy/charms/trusty/keystone/token-expiry
Merge into: lp:~openstack-charmers-archive/charms/trusty/keystone/next
Diff against target: 55 lines (+8/-5)
4 files modified
config.yaml (+4/-4)
hooks/keystone_context.py (+1/-0)
templates/icehouse/keystone.conf (+2/-1)
templates/kilo/keystone.conf (+1/-0)
To merge this branch: bzr merge lp:~gnuoy/charms/trusty/keystone/token-expiry
Reviewer Review Type Date Requested Status
OpenStack Charmers Pending
Review via email: mp+254870@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'config.yaml'
2--- config.yaml 2015-02-19 04:18:24 +0000
3+++ config.yaml 2015-04-01 06:55:51 +0000
4@@ -62,10 +62,10 @@
5 default: 'Admin'
6 type: string
7 description: 'Admin role to be associated with admin and service users'
8- token-expiry:
9- default: "2017-02-05T00:00"
10- type: string
11- description: "Expiration date of generated admin tokens"
12+ token-expiration:
13+ default: 3600
14+ type: int
15+ description: "Amount of time a token should remain valid (in seconds)."
16 service-tenant:
17 default: "services"
18 type: string
19
20=== modified file 'hooks/keystone_context.py'
21--- hooks/keystone_context.py 2015-03-18 13:48:33 +0000
22+++ hooks/keystone_context.py 2015-04-01 06:55:51 +0000
23@@ -202,6 +202,7 @@
24 ctxt['debug'] = debug and bool_from_string(debug)
25 verbose = config('verbose')
26 ctxt['verbose'] = verbose and bool_from_string(verbose)
27+ ctxt['token_expiration'] = config('token-expiration')
28
29 ctxt['identity_backend'] = config('identity-backend')
30 ctxt['assignment_backend'] = config('assignment-backend')
31
32=== modified file 'templates/icehouse/keystone.conf'
33--- templates/icehouse/keystone.conf 2015-02-18 17:20:23 +0000
34+++ templates/icehouse/keystone.conf 2015-04-01 06:55:51 +0000
35@@ -49,7 +49,8 @@
36 provider = keystone.token.providers.pkiz.Provider
37 {% else -%}
38 provider = keystone.token.providers.uuid.Provider
39-{% endif %}
40+{% endif -%}
41+expiration = {{ token_expiration }}
42
43 {% include "parts/section-signing" %}
44
45
46=== modified file 'templates/kilo/keystone.conf'
47--- templates/kilo/keystone.conf 2015-03-24 09:53:00 +0000
48+++ templates/kilo/keystone.conf 2015-04-01 06:55:51 +0000
49@@ -46,6 +46,7 @@
50 [token]
51 driver = keystone.token.persistence.backends.sql.Token
52 provider = keystone.token.providers.uuid.Provider
53+expiration = {{ token_expiration }}
54
55 [cache]
56

Subscribers

People subscribed via source and target branches