Commit Graph

11625 Commits

Author SHA1 Message Date
OpenDev Sysadmins 66002bee75 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:40:51 +00:00
Thomas Goirand e60ca5852b CVE-2017-2673 / OSSA-2017-004 fix
* CVE-2017-2673 (OSSA-2017-004): Incorrect role assignment with federated
    Keystone. Applied upstream patch: Do not fetch group assignments without
    groups (Closes: #861189).

Change-Id: Id70da1f4651c056e49e5a4d94271402487002452
2017-04-25 22:34:17 +02:00
Thomas Goirand b68ebfe9d2 Do not use route, use ip only if available
* Do not use /sbin/route at all, and use ip only if it is available. The
    previous "fix" was in fact wrong, as net-tools and iproute2 aren't
    essential packages and adding it as depends wont fix.

Change-Id: I88aa9794f39725c249ca167092217b524446052c
2017-03-31 14:28:43 +02:00
David Rabel 9f07414181 Missing dependency net-tools added
See debian bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858215

Change-Id: I9fccb623103174d3960b2d151d85045dc7c31478
2017-03-19 22:34:21 +01:00
Ondřej Nový 0a7e5e0b16 Require newer python-routes (Closes: #851152)
Change-Id: Ib434c3088e88d52d72fd36803af9e57579186ef8
2017-01-24 10:54:57 +01:00
Thomas Goirand bea22cb7d5 Check if /var/log/keystone exists in cron job
* Check if /var/log/keystone exists in cron job (Closes: #847692).

Change-Id: Ibb71e31b6f0b1c66c80aa25a8eedb5343892fb95
2016-12-18 11:53:22 +01:00
Thomas Goirand 3c2b407fb3 passlib call of encrypt() replaced by hash()
* Fix passlib call of encrypt() which is replaced by hash() upstream
    (Closes: #846729).

Change-Id: I9b56ada1c72f2164b5be917f3b442e78146a97c2
2016-12-05 13:10:15 +01:00
Ondřej Kobližek abdcf16177 Team upload.
* Team upload.
* Add upstream patch Remove_trailing_d_from_-days_param_of_OpenSSL_command.patch
  (Closes: #843865)
* Patch-out upper constraints of SQLAlchemy

Change-Id: I4354818b6b59edaebbfdc9aa6d3bd9cfd44ba62e
2016-11-28 13:34:54 +01:00
Ondřej Nový 5919f53320 Bumped debhelper compat version to 10
Change-Id: I878aea9a42e4d6412e724d2c7b5e05c3a0bbe8d7
2016-11-23 23:59:20 +01:00
Thomas Goirand a9d38c8e07 Releasing to unstable.
Change-Id: I7525a0f44f31ef48f3ba443bc9df1272227c1524
2016-10-10 13:23:59 +02:00
Thomas Goirand 86f715788d Fixed unix right of /var/log/keystone (Closes: #840221).
Change-Id: Idd210426954bd2a5bac8c69fb0c80052176b7938
2016-10-10 12:02:38 +02:00
Thomas Goirand 8baa6cc875 keystone 10.0.0 release
meta:version: 10.0.0
 meta:diff-start: 9.0.0.0rc1
 meta:series: newton
 meta:release-type: release
 meta:announce: openstack-announce@lists.openstack.org
 meta:pypi: no
 meta:first: yes
 meta:release:Author: Doug Hellmann <doug@doughellmann.com>
 meta:release:Commit: Doug Hellmann <doug@doughellmann.com>
 meta:release:Change-Id: I74b66ffd484f2f3a2b84c39e62bcb718cef7b906
 meta:release:Code-Review+1: Ian Cordasco <sigmavirus24@gmail.com>
 meta:release:Code-Review+1: Sean McGinnis <sean.mcginnis@gmail.com>
 meta:release:Code-Review+1: Vitaly Gridnev <vgridnev@mirantis.com>
 meta:release:Code-Review+1: Rob Cresswell <robert.cresswell@outlook.com>
 meta:release:Code-Review+1: Steve Martinelli <s.martinelli@gmail.com>
 meta:release:Code-Review+1: Steve McLellan <steven.j.mclellan@gmail.com>
 meta:release:Code-Review+1: Richard Jones <r1chardj0n3s@gmail.com>
 meta:release:Code-Review+2: Davanum Srinivas (dims) <davanum@gmail.com>
 meta:release:Code-Review+2: Thierry Carrez <thierry@openstack.org>
 meta:release:Code-Review+1: Emilien Macchi <emilien@redhat.com>
 meta:release:Code-Review+1: Julien Danjou <julien@danjou.info>
 meta:release:Code-Review+1: amrith <amrith@tesora.com>
 meta:release:Code-Review+1: Graham Hayes <graham.hayes@hpe.com>
 meta:release:Code-Review+1: Jim Rollenhagen <jim@jimrollenhagen.com>
 meta:release:Code-Review+2: Doug Hellmann <doug@doughellmann.com>
 meta:release:Workflow+1: Doug Hellmann <doug@doughellmann.com>
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQEcBAABAgAGBQJX9k3VAAoJENljH+rwzGInJuQH/ih2vy+Kw1AcekmLs68mYlDQ
 BQ9182AV79QQ6q3gwUceyjoUcsCRVGvLCm5WjhB8Q1i/TMuY7wShe/hfbbqwBveR
 WwbxUUvxHhNbDFqjgCQp6fAVJMIjNPQ3RNGlSq+2klUEBdCM3iHzUM9FKT8I++mP
 1d25ktNZQH+p5iKa9dzod5Wj1yEqIt30UPI5VAa/K3K2VfNCEJXCraf0UDXUnzwk
 9mZeLAf+kam3ux2cePYc5I2+HhtAjs+Qlx8DhEFPmDJNEDJdzM/cxP7HTCtL5XbB
 PxD8c6nCWkLIT2lXj1JAMrkXSrPSDkxPquwwRS+S+ygiMmoQYAPpw+/Y2k9f994=
 =YlnD
 -----END PGP SIGNATURE-----

Merge tag '10.0.0' into debian/newton

keystone 10.0.0 release

  * New upstream release.

Change-Id: Ic1a548184111e13186049347af726cfe558940b7
2016-10-06 17:25:30 +02:00
Jenkins 339e7cc798 Merge "Make returning is_domain conditional" into stable/newton 2016-10-05 08:08:59 +00:00
Lance Bragstad 724ac7f173 Make returning is_domain conditional
During an upgrade, a node running this code may need to handle a
persisted token (UUID, PKI, or PKIZ) created without this attribute.

Closes-Bug: 1630259
Change-Id: I0c5959b6491bb13a02eb1b9b7e7e37d2f2d73f85
(cherry picked from commit 4fd55f230b)
2016-10-04 23:26:00 -05:00
Thomas Goirand 3fa251d587 tag 10.0.0.0rc2
Tagger: OpenStack Release Bot <infra-root@openstack.org>
 Date:   Mon Sep 26 18:30:07 2016 +0000
 
 retag 10.0.0_rc2 of keystone 10.0.0.0rc2 release candidate
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABCAAGBQJX817TAAoJENQWrRWsa0P+WsgQAIsrIErmhV1LrifAdbJ7+HZy
 BccGsXVsv6Bbk7YTjMCkYQSoP9YikAG0/24lzCwN9nqxdd3TGYrvEbc7+C/Y7BAe
 t/YJMNk0WuWqB2F0fkEv7B6lRhDEaJxVw3oT7asQ2r2oz4xRcS+XaJjyi8BWoONG
 RML/xVnA+hdpTvb3EROFd3+sLEkAuKlvxf4GI8R/P7KOxdPMdI+fhN8ms5E1Rj/w
 793LiDkuy5b/QvXwIFRZzDmZPZ8WwTWo6ztUfGng/cbRzcpe7mgpYWoMDWsJyWfj
 /ditxkGemZEjWfl0XzOMgJNpdc5KZL/GbHQNNu4RwDgVmCMfbeQJxeZy0Qdg2P4u
 qUflCptqTl5qKdR4XvzE3LinYnJ6VXfmMceqHUHwg3w4hC0ckScNtGZKI3G4VL2/
 keJIdDAFQw/roDD5PN7j2RJMCkKi5Q5T8oC0tUwXOCFuD60o9li29O9oDdbiCv02
 TlsLOf/aY69gUrXYpowi4ztc4bzvsx3UZnZkSmzsjm9Ng6Pic5lKLwFFYutd8Ute
 HrZde3us9ShBWVxwiuPrzREz99Oy5kgYRFj5yDWKb10K+VLFTW82fz1v4hMvXqPs
 LPAWekzhWeHsP9OCPCabnB1z1mTNQZM3fgrZTCLppFQeB8+V/HBE9AesrIb0CFVA
 UjTIOioUZw4nnwofLOdH
 =ofpo
 -----END PGP SIGNATURE-----

Merge tag '10.0.0_rc2' into debian/newton

tag 10.0.0.0rc2
Tagger: OpenStack Release Bot <infra-root@openstack.org>
Date:   Mon Sep 26 18:30:07 2016 +0000

retag 10.0.0_rc2 of keystone 10.0.0.0rc2 release candidate

  * New upstream release.
  * Uploading to unstable.

Change-Id: I20f69e60cbfb4f4cc1df4231f6149ee7a921e471
2016-10-04 09:49:56 +02:00
Thomas Goirand 0b824a2d83 Build-Depends on openstack-pkg-tools >= 53~.
Change-Id: I9a9f0efde564d8e5fac6fdf0fc070c553dd202f9
2016-10-01 12:10:21 +02:00
Ronald De Rose 4a604529a8 Validate password history for self-service password changes
This patch adds password history validation to the change_password
(self-service) backend method.

backport: newton
Closes-Bug: #1628692
Change-Id: I6a21eb355a60b96da0615e64f57fa64289c0221e
(cherry picked from commit 4be9164e53)
2016-09-29 17:02:49 +00:00
OpenStack Proposal Bot 65205235f6 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Iafa7bd22fe5aae87c28a55b1726a9e572ce1668e
2016-09-28 09:02:20 +00:00
Thomas Goirand 0110f857e8 Fixed oslotest EPOCH.
Change-Id: I93e37394f4de7caf49d5c6f1d9ed9910ea67f3fc
2016-09-28 10:43:32 +02:00
Ondřej Nový 974248fec1 Mass changes
d/s/options: extend-diff-ignore of .gitreview
d/control: Use correct branch in Vcs-* fields

Change-Id: I7ee4e203e6dfe03c69d503bbfde1329af42e44bf
2016-09-26 19:03:26 +02:00
Thomas Goirand 6bf0041409 Tagger: OpenStack Release Bot <infra-root@openstack.org>
Date:   Thu Sep 15 14:21:42 2016 +0000
 
 retag 10.0.0_rc1 of keystone 10.0.0.0rc1 release candidate
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABCAAGBQJX440oAAoJENQWrRWsa0P++nUP/3PMwZ8CaQR6sr8njtzFB6OY
 4hBl5rXlmjlV7JF5mjqyajSgUMU96GzR0HFmztUY7lzKVSToofz1Q35VDNMIaHRF
 Ca7G06MIFlzu1AcO4iGEG07UkWumoV9tWWdwkwOdByQXA9HwXS9MoxhraucIiiOv
 k8y3is1mDbbjuE/e49tylOVaAWgxECWKbIV95LHcN4XzkYdBJrrRV35ZnyOt6gJJ
 nV61viTAM7ImOMGrEGdCu9KKAlX3ZpJ/znbf5MXVEmetHq2OH8cu3pCAMQNXKJPH
 O7WqYnc7TV/lbgnZtC0ALJGcNvGuc0MA7nIvjJFHHsQzKAIdMdvh+20Tw6lI18ra
 R+n2BTYHCQIOLwDZZDOYvDrtoLwCPu3Z1fYyNs0ZmF+FwfNJ7m6vFUYD18dwUlY8
 mjoXv796iidDRLTOJvBZfQfxisbSuFaGY1/HQ64BxPpLViiSygp2Xhf8eD8ll4gN
 CH4+5Z2r5nBweaPilocRTo2jmSq2XpzLo6Huctvz7i/i7Tze7K2KIngb+X4gtMAc
 ubmFi7ItYG4W0iLPfhGmUG2jCBDi7vHXFKC1tBfuxWsYElq80kQbJSgtwZsjFeMl
 VsQbjCESLJILarInjqFzup/FfotWT6bFdTxy0YsjtwjLwWnjI3TfKlRFokTIoSus
 8U+P6+Y23mE4dvbv04vj
 =tOJq
 -----END PGP SIGNATURE-----

Merge tag '10.0.0_rc1' into debian/newton

Tagger: OpenStack Release Bot <infra-root@openstack.org>
Date:   Thu Sep 15 14:21:42 2016 +0000

retag 10.0.0_rc1 of keystone 10.0.0.0rc1 release candidate

  * New upstream release.

Change-Id: I0a5bd8097b01f771c279a41a4e587cd82cd4ac54
2016-09-22 09:51:25 +02:00
Thomas Goirand d193c8bbea Using --parallel for unit tests
* Add --parallel when running unit tests.
  * Add python-pep8 as build-depends-indep.

Change-Id: Ia06835c52dafd38e868b46d28f72c7b862a5ae0e
2016-09-21 10:24:32 +02:00
Ronald De Rose b3fae7724d Fixes password created_at errors due to the server_default
Migration 002 sets the password created_at column to a TIMESTAMP type
with a server_default=sql.func.now(). There are a couple problems
that have been uncovered with this change:
* We cannot guarantee that func.now() will generate a UTC timestamp.
* For some older versions of MySQL, the default TIMESTAMP column will
automatically be updated when other columns are updated:
https://dev.mysql.com/doc/refman/5.5/en/timestamp-initialization.html

This patch fixes the problem by recreating the password created_at
column back to a DateTime type without a server_default:
1) Drop and recreate the created_at column
2) Update the created_at value
3) Set the created_at column as not nullable

Closes-Bug: #1621200
Change-Id: Id5c607a777afb6565d66a336028eba796e3846b2
(cherry picked from commit 32328de6e3)
2016-09-16 23:57:45 +00:00
Davanum Srinivas 6eeb354a78 Update UPPER_CONSTRAINTS_FILE for stable/newton
Change-Id: Iec723d209a3024010f32b8372a32cab94a951095
2016-09-15 10:23:02 -04:00
Davanum Srinivas af1c62eea5 Update .gitreview for stable/newton
Change-Id: I225f79c8fc150b87de181ed273e75654ff1032b2
2016-09-15 10:22:57 -04:00
Thomas Goirand 6eccf166f3 Retag of 10.0.0.0b3
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABCAAGBQJX2prUAAoJENQWrRWsa0P+VIwP/0sTlJQAKIXXYyT5HSu6vmF0
 KXyhrFFgbM09TOfPrNV5wjxq5onfQZIOHBvVIlb0N62fD+Vqc+UE16sC4kMstgUh
 N7reXDLaAEbcJBE69dF5J6198wmAfujOOXgdWiXYiItphGvv4cWIZeIz6EwUFydi
 pm/5l2kXcIuhymFbkQ5G76lhkO4CPPgr+Hsd7pxJX4diKk0Dj2UWvl0yLFkO1d9G
 7QiRxvWvSvGRMdRJgjQdrsPMSiyNrMsQtIIn5GCS+uuoje4cELkuZOBtDwuagYCS
 4qQeD+vFbKqWybWLWm0YeJMeRnxUtXakUwN4LDBSLBXFnqTz7j/ejJUqvBu4FcGC
 8lSjQw2Eh3sQIj84K/WpIP7aCEawWE2o8paKehM4OeHSeTFtqgC2aJHZieTC0m04
 mUrCwbwXADNOj8m9L5DZQ0NvhXj8HfYRC1Vej1SpDDFBUCsMvyGF59Tx8dra3J2f
 Trk+WNK/ybZ6InOnY5toWpc8Jo0pBZXTj/9+LXrDYu8rSg+qr4E424bfI1bOtSSj
 ge/cxScBMLwNLelbXYSeuwxx5PtwVOqKGvMWLQCqngrpcHMa/hHsyLeZtjZwg60b
 x23PvwUqFoqppz4O+0a/QRmXDxGBddJ1jti/f2rNvNFouqrtPW9nxIgE2rtDl/Lu
 MGvQQ/lyChbly0XiR0hn
 =JLB9
 -----END PGP SIGNATURE-----

Merge tag '10.0.0_b3' into debian/newton

Retag of 10.0.0.0b3

  * New upstream release.
  * Fixed (build-)depends for this release.
  * Using OpenStack's Gerrit as VCS URL.

Change-Id: I30b511f0d5f8044fccaf5bcd324ed3cd321b6a70
2016-09-15 15:06:57 +02:00
Jenkins ab09cc3f3f Merge "Tweak api-ref doc for services/endpoints" 2016-09-15 12:44:09 +00:00
Jenkins 6efc3c8317 Merge "Remove unused read_cached_file method from utils" 2016-09-14 23:43:24 +00:00
Jenkins ef92aca650 Merge "Remove unused _convert_to_integers() method" 2016-09-14 23:43:17 +00:00
Jenkins 84f032cccc Merge "Allow compatibility with keystonemiddleware 4.0.0" 2016-09-14 22:05:30 +00:00
Lance Bragstad 9640f50997 Add unit tests for isotime()
I wasn't able to find any existing unit tests for the function we use
to generate time strings. This commit adds unit tests to make sure
we don't unexpectedly change behavior.

This commit also addresses a couple comments from
Iaee0ec8c7acd512b9d93096ce8306a2952061c7a.

Change-Id: I383ac9ca97300cc37a994eccf43438c51b5030ba
2016-09-14 17:11:27 +00:00
Lance Bragstad 6e2738cba1 Remove unused _convert_to_integers() method
This method isn't used anywhere and isn't tested.

Change-Id: Ibb30798827b0fb94c7c84f41f1d16300fe2fd7bb
2016-09-14 17:01:18 +00:00
Lance Bragstad 294c5a11ca Remove unused read_cached_file method from utils
The read_cached_file() method in keystone.common.utils isn't being
used anywhere in keystone and it isn't tested. Let's remove it.

Change-Id: Iafba37114957c5270351aafd25538c6085c07805
2016-09-14 15:37:32 +00:00
Itxaka 9bbb0ce7a8 Allow compatibility with keystonemiddleware 4.0.0
On keystonemiddleware 4.0.0 the base class is called
_BaseAuthProtocol, which was later changed to BaseAuthProtocol.
Due to this change keystone would not work with the 4.0.0
version, while it was still accepted in the requirements.
This fixes it by providing a fallback to the old naming

Change-Id: I859a2d15e63c8c857b0bcbb15c757b716c8c43ba
Closes-Bug: 1623091
2016-09-14 13:56:34 +00:00
Jenkins 0340cd0150 Merge "Consistently round down timestamps" 2016-09-14 04:23:44 +00:00
Jenkins a03c604d16 Merge "Remove unused method from keystone.common.utils" 2016-09-14 04:02:53 +00:00
Jenkins 794044f1e8 Merge "Add edge case tests for disabling a trustee" 2016-09-14 02:20:38 +00:00
Colleen Murphy c2fd1f6af5 Fix links on configure_federation documentation
When the API reference was moved and the old pages cleaned up, a lot of
dead links were created. This patch fixes them for the documentation on
"Configuring Keystone for Federation".

Moreover, a lot of the link text was nondescriptive, which makes the
documentation inaccessible for screen readers (see the W3C
guideline[1]). This patch cleans that up as well if the link URL
needed to be updated anyway.

[1] https://www.w3.org/TR/WCAG20-TECHS/H30.html

Change-Id: I58803276d9b06bad0252da2494c81a46c951916f
2016-09-13 15:40:53 -07:00
David Stanek acde6ff5b3 Add edge case tests for disabling a trustee
This commit introduces two tests that ensures if a trustee of a
trust-scoped token is disabled, keystone will emit a Forbidden
exception. Regardless of the token provider, keystone should have
a consistent behavior. In order to test this, the test had to be
implemented differently for each token provider, specifically for
persistent and non-persistent tokens.

Co-Authored-By: Lance Bragstad <lbragstad@gmail.com>
Change-Id: Iaf04a26c9f60eb68bbd56b941ff76c893c144cb8
2016-09-13 16:16:58 +00:00
Jenkins ed34b53f18 Merge "Fix prameters name and response codes in Keystone API v2" 2016-09-13 03:25:14 +00:00
Nguyen Phuong An 36d7be0e79 Fix prameters name and response codes in Keystone API v2
This patch fixes parameters name and response codes in Keystone
API v2.

Change-Id: I0b81389ee43e588c5a37d7470763d7ecf853fbd3
2016-09-13 08:54:20 +07:00
tengqm 4d4faabf14 Tweak api-ref doc for services/endpoints
This patch reorders the sections about services and endpoints which were
previously interleaved randomly. After the reordering, all services APIs
appear before all endpoint APIs so browsing through the APIs would be
much easier. This patch aslo changes the representations of status codes
using the new stanza in os-api-ref.

Change-Id: I89aabd3d9a336f5f6f65aaca51353f2d23b4cb2a
2016-09-12 21:14:11 -04:00
Jenkins e10305da58 Merge "Use issued_at in fernet token provider" 2016-09-12 18:41:57 +00:00
Jenkins 7b108cccdc Merge "Use ConfigParser instead of SafeConfigParser" 2016-09-12 18:36:45 +00:00
Jenkins fcc0eaf4d4 Merge "Remove the APIs from doc that is not supported yet" 2016-09-12 18:32:39 +00:00
Jenkins 3aef8661d9 Merge "Fix the nit on how to deploy keystone with `mod_proxy_uwsgi`" 2016-09-12 17:17:54 +00:00
Lance Bragstad 6e18511ef2 Use issued_at in fernet token provider
The rest of the token provider API uses issued_at for the creation
time of a token. The fernet token provider referenced this value as
created_at. This change makes the fernet provider use the same
convention as the rest of the token provider API.

Change-Id: I347e40252824a01e887a17ab591bd092e007aa2d
2016-09-12 16:40:44 +00:00
Lance Bragstad 3c5af9a069 Remove unused method from keystone.common.utils
The strtime() method doens't seem to be used anywhere in keystone or
its tests.

Change-Id: Ic00191de812d4f81bdc0e85712346a6c719eb906
2016-09-12 16:31:19 +00:00
xianming mao 408820cbe3 Use ConfigParser instead of SafeConfigParser
The SafeConfigParser class has been renamed to ConfigParser in Python
3.2 [1]. This alias will be removed in future versions.So we can use
ConfigParser directly instead.

[1] http://bugs.python.org/issue10627

Closes-Bug: #1618666
Change-Id: If01186cefad2149d65ffcc1fc6550d72d26f5b11
2016-09-12 16:21:37 +00:00
Lance Bragstad 301b6a7bc7 Consistently round down timestamps
This is one of the ways we can prevent race conditions with backends that round
datetime objects or strings before persisting them.

Change-Id: Iaee0ec8c7acd512b9d93096ce8306a2952061c7a
Closes-Bug: 1622010
2016-09-12 16:16:29 +00:00