e1446bb9e1
This commit constitutes 1 of 2 monolithic ports from Github. The following major changes have been made: - Created schemas for validating different types of documents (control and document schemas), including: * certificate key * certificate * data schema * document * layering policy * passphrase * validation policy - Implemented pre-validation logic which validates that each type of document conforms to the correct schema specifications - Implemented views for APIs -- this allows views to change the DB data to conform with API specifications - Implemented relevant unit tests - Implement functional testing foundation Change-Id: I83582cc26ffef91fbe95d2f5f437f82d6fef6aa9
940 B
940 B
Deckhand
A foundational python REST YAML processing engine providing data and secrets management to other platform services.
To generate a configuration file automatically:
$ tox -e genconfig
Resulting deckhand.conf.sample file is output to :path:etc/deckhand/deckhand.conf.sample
Copy the config file to a directory discoverably by
oslo.conf
:
$ cp etc/deckhand/deckhand.conf.sample ~/deckhand.conf
To setup an in-memory database for testing:
[database]
#
# From oslo.db
#
# The SQLAlchemy connection string to use to connect to the database.
# (string value)
connection = sqlite:///:memory:
To run locally in a development environment:
$ sudo pip install uwsgi
$ virtualenv -p python3 /var/tmp/deckhand
$ . /var/tmp/deckhand/bin/activate
$ sudo pip install .
$ sudo python setup.py install
$ uwsgi --http :9000 -w deckhand.cmd --callable deckhand_callable --enable-threads -L