deckhand/deckhand
Felipe Monteiro 582dee6fb9 DECKHAND-61: oslo.policy integration
This PS implements oslo.policy integration in Deckhand.
The policy.py file implements 2 types of functions for
performing policy enforcement in Deckhand: authorize,
which is a decorator that is used directly around
falcon on_HTTP_VERB methods that raises a 403 immediately
if policy enforcement fails; and conditional_authorize,
to be used inside controller code conditionally.

For example, since Deckhand has two types of documents
with respect to security -- encrypted and cleartext
documents -- policy enforcement is conditioned on the
type of the documents' metadata.storagePolicy.

Included in this PS:
  - policy framework implementation
  - policy in code and policy documentation for all
    Deckhand policies
  - modification of functional test script to override
    default admin-only policies with custom policy file
    dynamically created using lax permissions
  - bug fix for filtering out deleted documents (and
    its predecessors in previous revisions) for
    PUT /revisions/{revision_id}/documents
  - policy documentation
  - basic unit tests for policy enforcement framework
  - allow functional tests to be filtered via regex

Due to the size of this PS, functional tests related to
policy enforcement will be done in a follow up.

Change-Id: If418129f9b401091e098c0bd6c7336b8a5cd2359
2017-10-07 18:43:28 +01:00
..
barbican [feat] DECKHAND-38: Secrets DB model and secrets manager. 2017-09-11 12:39:38 -04:00
conf DECKHAND-61: oslo.policy integration 2017-10-07 18:43:28 +01:00
control DECKHAND-61: oslo.policy integration 2017-10-07 18:43:28 +01:00
db DECKHAND-61: oslo.policy integration 2017-10-07 18:43:28 +01:00
engine [feat] DECKHAND-38: Secrets DB model and secrets manager. 2017-09-11 12:39:38 -04:00
policies DECKHAND-61: oslo.policy integration 2017-10-07 18:43:28 +01:00
tests DECKHAND-61: oslo.policy integration 2017-10-07 18:43:28 +01:00
__init__.py Oslo config integration (#1) 2017-06-26 16:57:50 -07:00
cmd.py [feat] DECKHAND-28: Document pre-validation logic and API integration 2017-08-08 18:52:44 +01:00
context.py DECKHAND-61: oslo.policy integration 2017-10-07 18:43:28 +01:00
errors.py DECKHAND-61: oslo.policy integration 2017-10-07 18:43:28 +01:00
factories.py Unskip some pep8 rules 2017-10-05 15:50:51 +01:00
policy.py DECKHAND-61: oslo.policy integration 2017-10-07 18:43:28 +01:00
types.py [feat] DECKHAND-38: Secrets DB model and secrets manager. 2017-09-11 12:39:38 -04:00
utils.py Support filtering revision (documents) by any legal filter 2017-10-06 16:48:45 -04:00