10645 Commits

Author SHA1 Message Date
Jenkins
e91c6fb7dc Merge "Keep the order of passwords in tests" 2016-09-07 19:20:56 +00:00
Jenkins
6a93e9b06c Merge "Fix up some doc nits" 2016-09-07 17:22:53 +00:00
Jenkins
59f379896e Merge "[api-ref] Correcting parameter's type" 2016-09-07 17:04:04 +00:00
Boris Bobrov
2cf1b1e255 Keep the order of passwords in tests
While multiple passwords are stored for a user, only the latest one is
used for authentication. When `created_at` in tests get changed, the
order of password might change too.

Keep the order of passwords by giving earlier passwords an earlier date
of creation.

Change-Id: I68861bc5c379dcf1cf060081f7802917d6f0c4b9
2016-09-07 15:34:07 +00:00
Jenkins
cc912af562 Merge "[api-ref] Stop supporting os-api-ref 1.0.0" 2016-09-07 06:20:24 +00:00
Ha Van Tu
fb7be8ccd0 [api-ref] Stop supporting os-api-ref 1.0.0
The os-api-ref 1.0.0 is out. We can remove the support to older version
now.
Reference:
https://github.com/openstack/senlin/commit/
6d41feb58dd836d426c9b6f025846dbbf7295097
https://review.openstack.org/#/c/362170/

Change-Id: Ibdd4547d5cf90b31ddff0b548e649d46286cf70e
2016-09-07 11:55:14 +07:00
Eric Brown
a984bfffe0 Fix up some doc nits
Trivial fixes:
* extra lines at the end of files
* extra underlining characters
* spacing

Change-Id: I9e40a7f6d2e5e7bb76f2754558a5f8a86de83020
2016-09-06 21:27:24 -07:00
Jenkins
4e004111da Merge "Correct link type" 2016-09-07 03:53:46 +00:00
Jenkins
00a146bc8c Merge "Set default value for [saml]/idp_contact_surname" 2016-09-07 01:58:32 +00:00
Jenkins
05f667dd7a Merge "Emit log message for fernet tokens only" 2016-09-07 01:58:25 +00:00
Jenkins
0048156901 Merge "Only cache callables in the base manager" 2016-09-06 20:28:59 +00:00
David Stanek
83e3c00809 Only cache callables in the base manager
The base manager had an issue where if a property was accessed through the
__getattr__ it would be cached.

Closes-Bug: 1620722
Change-Id: Iad7ca87a30fd5fa9f8bc88a0c7f74acca2ae1a56
2016-09-06 16:42:20 +00:00
Nguyen Phuong An
5c9fa41834 [api-ref] Correcting parameter's type
This patch corrects some parameter's type such as 'type: list'
to 'type: array' or 'type: array of...' to 'type: array' because we
don't have 'type: list' in 'JSON Schema primitive types' [1]

[1] http://json-schema.org/latest/json-schema-core.html#anchor8

Change-Id: Ic638ef48fcf0f60c55cec975ee20a71d1830b319
2016-09-06 04:17:38 +00:00
Ha Van Tu
602cc57c07 Correct link type
In some tables [1], link parameter's type is wrong. This patch
change these parameters from 'string' to 'object'.

[1]
http://developer.openstack.org/api-ref/identity/v3/#list-users
http://developer.openstack.org/api-ref/identity/v3/#list-groups
http://developer.openstack.org/api-ref/identity/v3/#list-projects

Change-Id: I32916b4f3703b1411ddb1e643dd5f2b27fa6af99
2016-09-06 10:08:18 +07:00
Jenkins
b47f10290e Merge "Fix problems in service api doc" 2016-09-05 19:09:56 +00:00
Jenkins
40fd768260 Merge "Add the deprecated_since to deprecated options" 2016-09-05 15:30:59 +00:00
tengqm
fbe462f031 Fix problems in service api doc
This patch fixes the following problems found in the api doc:

- The 'service_id' field should not appear in a service create request;
- The 'enabled', 'description' fields should be optional when doing a
  service update.

Change-Id: Iac91a9f2d29a458f1e3eb93e64fea6a508b9980c
2016-09-05 09:14:25 -04:00
Jenkins
e3579c65f2 Merge "Raise NotImplementedError instead of NotImplemented" 2016-09-05 13:01:46 +00:00
Jenkins
a4188ac980 Merge "Add doctor checks for credential fernet keys" 2016-09-05 04:14:24 +00:00
Jenkins
3ea0858e5d Merge "Block global roles implying domain specific roles" 2016-09-05 03:54:54 +00:00
Ji-Wei
5a49379b34 Raise NotImplementedError instead of NotImplemented
NotImplementedError is the name of the exception
(https://docs.python.org/2/library/exceptions.html).
NotImplemented is the name of a constant
(https://docs.python.org/2/library/constants.html).
>>> raise NotImplemented()
Traceback (most recent call last):
  File "<pyshell#31>", line 1, in <module>
    raise NotImplemented()
TypeError: 'NotImplementedType' object is not callable
>>> raise NotImplementedError()
Traceback (most recent call last):
  File "<pyshell#32>", line 1, in <module>
    raise NotImplementedError()
NotImplementedError

This patch fix it.

Change-Id: I36292e5ee18bd792205a8ff527f4ae9705c61b61
Closes-Bug: #1339855
2016-09-04 03:47:56 +00:00
Eric Brown
c7a5f41132 Add the deprecated_since to deprecated options
Oslo config supports a deprecated_since parameter to add further
detail on when an option was deprecated. In that way, it's also
easier to know when n+2 releases has passed and the option is
ready for removal.

Change-Id: I26285897ff7c8c38192b7e1a34bb66b2b2e7e13f
2016-09-02 17:07:14 -07:00
Eric Brown
33008ce7d2 Add doctor checks for credential fernet keys
Similar to the docter checks for fernet tokens, this patch adds
checks for credential fernet keys.

Change-Id: I62d77c9491adc4dcfc3e232b9dc1618b72ba04f5
2016-09-02 10:15:59 -07:00
Eric Brown
32af31f509 Few new commands missing from docs
The configuration and man page docs are missing some commands
noting the available options to the keystone-manage command.

Change-Id: Iba5efcf94e70f70bac899b8db377960fd35567d4
2016-09-02 08:17:21 -07:00
Lance Bragstad
1de72249c2 Emit log message for fernet tokens only
A previous refactor improved some of the logging we had when loading Fernet
keys. The log message makes sense from a token perspective since
`max_active_keys` is configured for the fernet token provider. For the
credential provider, it doesn't necessarily make sense because we don't expose
a `max_active_keys` option through configuration.

This commit makes it so the we only emit the log message when it is referencing
a fernet token key repository.

Change-Id: Iad04bd1340a9a59c465337dedcfcd1ea0bed4bde
2016-09-02 14:04:30 +00:00
Jenkins
f82b913db6 Merge "Typo: key_manger_factory to key_mangler_factory" 2016-09-02 08:05:50 +00:00
Lance Bragstad
0edf1fe46c Implement encryption of credentials at rest
This commit implements credential encryption through the following changes:

 - additive schema change to store key hashes for credentials
 - database migration to encrypt all pre-existing credentials
 - contractive schema change to remove unencrypted credential column
 - added code to the credential Manager to handle credential encryption

All credentials will be encrypted by default. There will not be a way to store
unencrypted credentials in keystone from this point forward.

Note that this implementation uses database triggers in the migration process.
If operators use the traditional offline migration method, it would be more
reliable if we didn't try to setup and tear down triggers, as they'll never be
used anyway. This makes it so that expand and contract migrations can skip
anything related to triggers.

Co-Authored-By: Werner Mendizabal <nonameentername@gmail.com>

bp credential-encryption

Depends-On: I433da9a257daa21ec3b5996b2bca571211f1fbba
Depends-On: Id3e8922adc154cfec5f7a36613e22eb0b49eeffe
Change-Id: I31b7539db436ad270462cfaa3b14213e0ed1fc04
2016-09-02 04:25:49 +00:00
Eric Brown
409211de9f Typo: key_manger_factory to key_mangler_factory
Trivial typo in the name of the key mangler factory.

Change-Id: I2602c6575b81545f0dbe8cdfc06eb0c89bfb2195
2016-09-01 19:17:53 -07:00
Jenkins
816d26046a Merge "Fixes spelling mistakes" 2016-09-02 00:08:27 +00:00
David Stanek
ffee044c5a Fixes spelling mistakes
Change-Id: I00fb75f70e8e6cab7d9588913bae193909ab66e1
2016-09-01 21:31:19 +00:00
Jenkins
9a87dd509c Merge "Fixes migration where password created_at is nullable" 2016-09-01 20:50:08 +00:00
Jenkins
cae712d530 Merge "Document credential encryption" 2016-09-01 17:58:52 +00:00
Jenkins
34512ce86e Merge "Correct typo in mapping_populate command's help" 2016-09-01 17:55:30 +00:00
Ronald De Rose
2b70175282 Fixes migration where password created_at is nullable
The 105 migration added a password created_at column that was left as
nullable. This patch sets a default value for password created_at and
makes this column not nullable.

Closes-Bug: #1596500
Change-Id: I394467d554c786ecd9bf55367435c856c6723042
2016-09-01 17:15:47 +00:00
Mikhail Nikolaenko
305cb8a9e3 Block global roles implying domain specific roles
Adds a check, which prohibits global role imply a domain specific role.

Change-Id: Ibd478c45a3fe28b194226ad562ee198ba3eb1b7c
Closes-Bug: #1590578
2016-09-01 12:20:22 +00:00
Jenkins
86e442771b Merge "Relax the requirement for mappings to result in group memberships" 2016-09-01 07:38:48 +00:00
Eric Brown
05c5f0cf44 Correct typo in mapping_populate command's help
There was no space between "use" and "domain-specific".

Change-Id: Iff5674e6ad72540cb7845e1b9907ec0a98ab5b0d
2016-08-31 23:44:22 -07:00
Jenkins
ccabf21cab Merge "Pre-cache new tokens" 2016-09-01 04:33:05 +00:00
Ronald De Rose
7ba5370198 Relax the requirement for mappings to result in group memberships
Now that we're able to grant authorization to federated users using
concrete role assignments, we can drop the requirement for the mapping
engine to result in any authorization (via group membership) at all.

Closes-Bug: #1601929
Change-Id: Ie144e20deb4a0bb987182de5c9231a14f0aa2bc8
2016-09-01 03:24:27 +00:00
Jenkins
0061419170 Merge "Update sample uwsgi config for lazy-apps" 2016-09-01 03:22:02 +00:00
Jenkins
49761bdef2 Merge "Add documentation on how to set a user's tenant." 2016-09-01 03:21:02 +00:00
Werner Mendizabal
0e7ab57241 Document credential encryption
Add documentation on how credential encryption work and a release note.

bp credential-encryption

Change-Id: Ib06c86a17e585f43bfa8aedf3d5e89d3163cc9da
2016-08-31 21:28:42 +00:00
Brant Knudson
cc3e797bca Update sample uwsgi config for lazy-apps
Keystone had a problem where there was a memcached socket
opened very early on startup which then got shared between
worker processes when running under uwsgi. Since we don't have
a test or a way to ensure that no sockets are opened too early
for uwsgi, let's recommend setting lazy-apps to avoid issues.

Change-Id: I8b46c5424094d3abe9a986da4ee1143f72a91a4d
Related-Bug: 1600394
2016-08-31 15:41:21 -05:00
Chris Spencer
ba98048401 Add documentation on how to set a user's tenant.
Change-Id: I61b98891336ca1ed096f013ff1ed1a89d7854886
Closes-Bug: #1609161
2016-08-31 13:18:50 -07:00
Alexander Makarov
7260b55cfc Pre-cache new tokens
Since tokens are most often used right after being created,
cache them to bypass redundant validation.
The patch uses dogpile.cache internal functionality so some
calls may look strange

Implements bp pre-cache-tokens

Change-Id: I2e720eed6b0066738181afd1cbf73c5ff4d876f5
2016-08-31 20:14:53 +03:00
Jenkins
7a82aa8a6d Merge "Config logABug feature for Keystone api-ref" 2016-08-31 14:30:03 +00:00
Ha Van Tu
2b6d04b77f Config logABug feature for Keystone api-ref
Currently, Keystone api-ref is not configured with logABug feature.
When users click "Report bug" button, it leads to
"bugs.launchpad.net/openstack-manuals" which is default.
We should change it to "bugs.launchpad.net/keystone/"

Change-Id: I8d6fc4d2a6ab9d7f444a02cbc2f756fdaa3de264
2016-08-31 14:15:46 +07:00
Dolph Mathews
97da3a7950 Fix nits in db migration dev docs
There are no major changes here, I'm just hoping to help clarify what
was already documented.

Change-Id: I76fed074de9fb685cf5e9c9ee58d9ef46190d415
2016-08-31 02:50:20 +00:00
Dolph Mathews
0ae6d0924f Disallow new migrations in the legacy migration repository
Change-Id: I1dfe0a31ada44c97932f53bad86e93999cd6c4b6
Closes-Bug: 1618653
2016-08-31 01:42:42 +00:00
Jenkins
f9e6c36e8d Merge "Update developer docs for new rolling upgrade repos" 2016-08-31 00:50:16 +00:00