| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
* H305 imports not grouped correctly
* H307 like imports should be grouped together
Change-Id: Ied0e83b9b37dcb7a7a60a653093c3fa0d8e56226
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The word "Copyright" alone is sufficient to claim copyright, the ©
symbol need not be present.[1] This allows us to expand the "©" symbol
into "(c)" to avoid introducing non-ASCII characters.
As per PEP 263, a Python file with non-ASCII characters must have a
line with "coding: <some-encoding>". Python files containing only
7-bit ASCII characters need no such line.[2]
This commit expands the non-ASCII Unicode copyright symbols and
removes the now unnecessary encoding lines.
[1]: http://www.copyright.gov/circs/circ03.pdf
[2]: http://legacy.python.org/dev/peps/pep-0263/
Change-Id: Ibbb282224bccbea383947b4e09a619f94d5c24b1
|
|/
|
|
|
|
|
|
|
|
| |
add audit_maps for:
- cinder
- glance
- neutron
Change-Id: If324c1296f852e57f3a376ccfc485ed1b3df75e3
Blueprint: audit-all-apis
|
|\ |
|
| |
| |
| |
| |
| |
| | |
sync to Ia1bfa1bd24989681db1d2f385defc12e69a01f8d
Change-Id: Idbbbb9fcec8e8b0d1930956850b1a7371081b632
|
|/
|
|
|
|
|
|
| |
notifier middleware is capturing token and sending it to MQ. this
is not advisable so we should filter it out.
Change-Id: I11d9f2f23fc3b60c945c33d4d02bd7640d88a083
Closes-Bug: #1321080
|
|
|
|
|
|
|
| |
add docstrings to functions
Change-Id: I112e297d20de5026784298e93b6ff05733639a1c
Implements: blueprint document-pycadf
|
|
|
|
|
|
| |
add a catch for when json body is empty on action event.
Change-Id: I25ae76162ace25bac700bbfb39fa1af83427f629
|
|
|
|
|
|
| |
add constant variable for resource 'service/security'
Change-Id: I29a47920a6718a6695a9ca2187fcbe92bcf46ac9
|
|
|
|
|
|
|
|
| |
move audit middleware to pyCADF and allow it to support
oslo.messaging instead of openstack.common.notifier
Partial-Bug: #1280327
Change-Id: I7f0b706a91a61111147bc2b3c682dfdac01c0b7d
|
|
|
|
|
|
|
| |
clean up requirements and pull in oslo code required for audit
middleware
Change-Id: Ia9c5bb9b6468e9d859d6b1f5a88798e72b3dc8ae
|
|
|
|
|
|
|
| |
capture query string in requestPath attribute. use path sans query
string to build typeURI
Change-Id: Ia4ad4ada6172ad56d2f17665942fb7a767f97c3e
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
scramble a percentage of leading and trailing characters for a
provided value to avoid security issues.
Change-Id: I544e57be1b554a4fd92b634a57ae0ca63a2e7d09
Closes-Bug: #1262393
|
| |
| |
| |
| |
| |
| | |
sync up common code from oslo and requirements
Change-Id: I3b7842e58ad12fe46cc6ac10ff7a0482be3a85ea
|
| |
| |
| |
| |
| |
| |
| | |
add REST request URL path to event
Change-Id: Iac825b43c8a61abfdbfaf98c23aff66f7ece0e27
Closes-Bug: #1267500
|
|/
|
|
|
|
|
|
|
|
| |
update to fix nova audits.
- change typeURI to record greater depth of api request.
- add custom_actions to allow special case actions based on api
path
Change-Id: I2b33cf8cff796bdb135dd832c23f0e2ffdf90780
blueprint: audit-all-apis
|
|
|
|
|
|
|
|
| |
This avoids getting this error:
TypeError: 'dict_keys' object does not support indexing
Change-Id: I662d9e0206e7346069e30fa14182886e8865a61e
|
|\ |
|
| |
| |
| |
| |
| |
| | |
This makes the code compatible with both Python 2 and 3.
Change-Id: Idd71d2041eea6de71209535e4aa4d3d43256c836
|
|/
|
|
|
|
| |
This works with Python 2 and 3.
Change-Id: I567068695163064d163cbab7c63f8f9983cc0c04
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Instead of using (Python 2):
__metaclass__ = ...
or (Pyhon 3):
class Foo(metaclass=...):
we use six.with_metaclass (Python 2 and 3):
class Foo(six.with_metaclass(Meta, Base)):
Change-Id: Ie934cd14dfb81a018f838294b768e69dff16af5b
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| | |
'basestring' will only work in Python 2. Using 'six.string_types' instead makes
the code compatible with both Python 2 and 3.
Change-Id: I572506ce6d0cc7570dc264711d19619746949d49
|
|/
|
|
|
|
| |
This makes the code compatible with both Python 2 and 3.
Change-Id: Idfbfb26c9df4a55d2cfb3f1d020e2787239a61d4
|
|
|
|
|
|
|
| |
- update common code
- update requirements
Change-Id: I1912dad4e61da7c14c5e3d9a38076829b09afe87
|
|\ |
|
| |
| |
| |
| |
| |
| | |
add namespace to all ids, including those not generated by pycadf
Change-Id: I9ba68a65524708c4f0749540ad25811f8cb3355f
|
|/
|
|
|
|
|
|
|
|
|
| |
- add isset to check "real" attribute and not descriptor
- verify only id is set in shortform
- verify either resource or resourceId value is set, not both.
blueprint improve-validation
related-bug: #1242830
Change-Id: Ie9e3f26c5d30cd36e6013a1f0b77c8fe466cb3f7
|
|
|
|
|
|
| |
bring in latest oslo code
Change-Id: Id05edcd9c23370fbba7610fb9de0ac7977bae717
|
|
|
|
|
|
|
| |
do not set typeURI if resource id is 'target' or 'initiator'
Partial-Fix: Bug #1240067
Change-Id: I2aba379822989aab7e5dac4a4368682e22463f80
|
|\ |
|
| |
| |
| |
| |
| |
| | |
prefix generated ids with namespace option
Change-Id: I50776202dd5be1b9ab2cfc5e177eeb9a77d6a8f9
|
|/
|
|
|
|
|
| |
CADF spec has changed 'list' action to 'read/list' action type.
update library to reflect that.
Change-Id: I5fe3b7d180f9a5b9117700e684bd659701da49b4
|
|
|
|
|
|
|
|
|
| |
- fix observer and reporter attributes to be valid Resource type
- add check that Resource id shortform for initiator and target do
not reference themselves
Fixes: Bug # 1240067
Change-Id: Iab5b6c129d512039073cc8c2ab7b75ac7c819624
|
|
|
|
|
|
|
|
|
| |
- add test for default_target_endpoint_type setting
- do not fail when missing optional conf options.
Change-Id: If09267c17db73e8adfdf3cc5d63156a0408d2edc
Fixes-Bug: #1226870
Fixes-Bug: #1228199
|
|
|
|
|
|
|
| |
add default_target_endpoint_var
Change-Id: I4e5a75c1ec72757ddca7d70e4d20dd0667646521
Fixes: bug #1227634
|
|
|
|
|
|
|
|
| |
support an optional value to default target endpoint to a specific
value. add target_endpoint_type to map.conf to set a default
Change-Id: I735dcd8958d6479d6a59d144f81bb18e87bd72e0
Fixes: Bug#1226722
|
|
|
|
|
|
|
|
|
| |
ceilometer CADF_EVENT.id and CADF_EVENT.eventTime always default
to the same id and timestamp.
fix other bad default values in __init__()
Change-Id: Icd90e96264725ee274893bbd25f4b25cdb830598
Fixes: Bug #1221379
|
|
|
|
|
|
|
|
|
|
|
| |
- add Credential type and move token into it
- add Host type and move client_addr, agent into it
- add Endpoint type and move adminUrl, privateUrl into it
- add credential, host, addresses as optional attr of Resource
- add observer attr to event
Change-Id: I663eaf0b2f239300e035f084b8574e615c40a182
Fixes: Bug #1214097
|
|
|
|
|
|
|
| |
to accommodate notifier filter, only variables in all caps are
included in payload
Change-Id: I622e57069a3f03a58c393b2d8f2a3b022d1597d3
|
|
|
|
|
|
|
|
|
| |
when no response is given, set outcome to unknown
when request is not audited (req missing cadf_model), do audit on
response
add docstring to explain functions
Change-Id: I622ea05aae477b9897e0968d52faf60dbbc4f819
|
|
|
|
|
|
| |
move cadf correlation id under req.environ
Change-Id: Iff247fdd065ac55b0455c7d6e5fe2ade9e98cfaa
|
|
|
|
|
|
| |
append cadf event to req.environ to work with middlware.notifier
Change-Id: I0ebfd2ed436a7fed88b0ef12ea2e3cccd350cc98
|
|
|
|
|
|
|
|
|
| |
- need to update attribute validation to test against basestring
instead of str
- drop use of openstack logger
Change-Id: I2167cf8e468c0e932c476238120d768e5d4d443f
Fixes: bug1209387
|
|
|
|
|
|
|
|
| |
build api audit event and append to a given message
blueprint support-standard-audit-formats
Change-Id: I620f49083c3db12bdad74b29f4d9b3019d977468
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adding support for the DMTF Cloud Audit (CADF) format which will be
used along with a generic notification filter to audit 'core'
component APIs.
initial code drop
blueprint support-standard-audit-formats
Change-Id: I3b27ceae8faa6427e4be1290c1406102e790e2e3
|
|
Change-Id: I1bbe058cf162549a517814e02a3e8bed70b5dbf8
|