Commit Graph

13 Commits

Author SHA1 Message Date
Stephen Finucane 22408f8da0 Remove six
Change-Id: Ib3edfdd087ed1d954f1ecf72a191138f8f1c46a1
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-06-27 18:03:31 +01:00
Hiromu Asahina 92cdf8a0a5 Add timeout for requests
Bandit emits errors for request methods without the timeout parameter.
It's better to follow the instruction to avoid hanging.

Added timeout parameters and config options to set timeout.

[1] https://bandit.readthedocs.io/en/1.7.5/plugins/b113_request_without_timeout.html

Change-Id: I0c022c3cc57f30530ebdef6e434753ece2bdf912
2023-03-18 01:11:53 +09:00
Gage Hugo 09a33cce89 Change ec2 URLs to v3
This change modifies any URLs specifying v2.0 to v3. This is part
of the effort to remove v2.0 functionality from keystonemiddleware.

Change-Id: I9cde8963333ea95b4ab05d9aea4d196ab4357763
Partial-Bug: #1829453
Partial-Bug: #1845539
2019-11-29 04:20:14 +00:00
Janonymous f4d453ec30 use oslo.log instead of logging
The constants of log levels were added in the 1.8 version
of the oslo.log library.
So we can replace all usage of system logging module
with log module from oslo.log

Change-Id: I97a1d913b543dc9dbd4d228b04adbdf7ee320df5
2017-01-13 03:24:18 +00:00
Dolph Mathews a2afaa9434 Fix D200: One-line docstring should fit on one line with quotes (PEP257)
Change-Id: Icd658499de092e58fca1344c6ab3bc5aebcba7ff
2016-05-17 00:23:48 +00:00
Navid Pustchi 92983b1da8 Fix D401 PEP257 violation and enable H403
Currently tox ignores D401 and H403:
401: First line should be in imperative mood.
403: multi line docstrings should end on a new line

This change makes keystonemiddleware docstrings compliant with D401.
H403 is already passing, so this commit also enables it.

Change-Id: I9471721220c99f9c4ed055840ed626bb7750eb3f
2016-05-05 15:52:26 +00:00
Andrey Pavlov 9390329f07 Adding parse of protocol v4 of AWS auth to ec2_token
This patch adds parsing of protocol v4 of AWS auth to ec2_token.
This code 'copy-pasted' from nova where it works well.
Also this patch adds unit tests for ec2_token middleware.

Chunks of the code proposed can be seen here:
https://github.com/openstack/ec2-api/blob/master/ec2api/api/__init__.py#L166

and here:
https://github.com/openstack/ec2-api/blob/master/ec2api/api/faults.py

We copy and paste the code since pulling in ec2api would bring in
a lot of dependencies and probably create a circular one

https://github.com/openstack/ec2-api/blob/master/requirements.txt

Change-Id: Id03a7c78152bda35879550f2aaf94483b82f381e
Closes-Bug: 1473039
Closes-Bug: 1333951
2015-11-27 18:22:04 +03:00
Brant Knudson 3e1bee7100 Switch from oslo.config to oslo_config
oslo_config moved out of the oslo namespace.

bp drop-namespace-packages

Change-Id: Ia8b9b2a47bcfabe7a6aea67f243285028c981ba2
2015-01-18 07:54:03 -06:00
Brant Knudson 4010736efd Switch from oslo.serialization to oslo_serialization
oslo_serialization moved out of the oslo namespace.

bp drop-namespace-packages

Change-Id: Iff3c62018d5008f9451dd54a8cf63700c9b61f5d
2015-01-18 07:54:03 -06:00
Julien Danjou facc3f00fe Update oslo-incubator and switch to oslo.{utils,serialization}
Update to commit 9ce1d96fb2e075fcd5b9ddbee728c0ee49d2be56

Change-Id: I27e20f76fb0f4b858230b2c36e6ff960e1ec9d09
2014-09-30 10:26:19 +02:00
Morgan Fainberg 5556599b57 Privatize Everything
Make s3_token and ec2_token middleware match auth_token and all
properties except the class itself are now private.

The memcache_crypt module is now private to the keystonemiddleware
package.

Change-Id: Id5103f4e9689bc2dbc6f79705030c903ae5cc406
2014-07-02 11:42:33 -07:00
Morgan Fainberg ef4e828528 Update middleware and tests for new package
Update the middleware code and the tests to run with the new
package name.
2014-06-19 17:33:04 -07:00
Morgan Fainberg 3323483a77 Move ec2_token to new location 2014-06-19 16:22:15 -07:00