Commit Graph

13 Commits

Author SHA1 Message Date
Takashi Kajinami f17dd7a04b Add optional healthcheck middleware
This change introduces a new option, [healthcheck] enabled, which
enables the healthcheck middleware in mistral-api pipeline.

This middleware allows status check at /healthcheck path, which is
useful for load balancers or any monitoring services to validate health
of its backend services.

This change is created based on the same change proposed to ironic[1].

[1] 6f439414bdcef9fc02f844f475ec798d48d42558

Co-Authored-By: Jim Rollenhagen <jim@jimrollenhagen.com>
Change-Id: I9bf3de8a5ae6a8c9346285147732b773a3667f7e
2023-02-03 04:09:13 +00:00
Renat Akhmerov 6c0f3f470d Delete an obsolete namespace from oslo-config-generator config
* The entry point "periodic.config" does not exist anymore so
  we need to exclude it.

Change-Id: I83de11784da3f41ee3b8c0e64dcd9e0f960b2d3f
2020-05-21 12:43:43 +07:00
Vlad Gusev ca1acb656c Add http_proxy_to_wsgi middleware
This sets up the HTTPProxyToWSGI middleware in front of Mistral API. The
purpose of this middleware is to set up the request URL correctly in
the case there is a proxy (for instance, a loadbalancer such as HAProxy)
in front of the Mistral API.

The HTTPProxyToWSGI is off by default and needs to be enabled via a
configuration value.

It can be enabled with the option in mistral.conf:
[oslo_middleware]
enable_proxy_headers_parsing=True

Closes-Bug: #1590608
Closes-Bug: #1816364
Change-Id: I04ba85488b27cb05c3b81ad8c973c3cc3fe56d36
2019-03-09 01:51:59 +03:00
Dai Dang Van 49ed570cfe Implement policy in code (1)
This commit prepare for implementing policies in code[1].

Like oslo.config, with oslo.policy, we can define all of
default rules in code base and only change some rules
via policy file. Another thing that we should use yaml
format instead of json format.

[1] https://governance.openstack.org/tc/goals/queens/policy-in-code.html
Co-authored-By: Hieu LE <hieulq@vn.fujitsu.com>
Change-Id: I2051b6c25333c95aa9ea6786964d4ab710ea93e8
2017-11-27 02:46:32 +00:00
hardik 4adc3cfb56 Added support for SSL connection in mistra-api server
Change-Id: I4e114a11191821f4ef9dec967fb76b0a34179119
Implements: blueprint mistral-api-server-https
2016-08-04 19:03:53 +05:30
hardik 11e443efeb Added role base authentication support
Mistral api access can be restricted base on role
by modifying /etc/mistral/policy.json file.

Change-Id: I4c78ca4cc04d25f46aea55948bce339cfe460ff0
Implements: blueprint mistral-customize-authorization
2016-06-14 05:15:00 +00:00
Michael Krotscheck b57e1b0286 Added CORS support to Mistral
This adds the CORS support middleware to Mistral, allowing a deployer
to optionally configure rules under which a javascript client may
break the single-origin policy and access the API directly.

For Mistral, the CORS middleware was added directly to the wsgi factory.
Config generation and tests have also been provided.

OpenStack CrossProject Spec:
   http://specs.openstack.org/openstack/openstack-specs/specs/cors-support.html
Oslo_Middleware Docs:
   http://docs.openstack.org/developer/oslo.middleware/cors.html
OpenStack Cloud Admin Guide:
   http://docs.openstack.org/admin-guide-cloud/cross_project_cors.html
DocImpact: Add link to CORS configuration in admin cloud guide.

Change-Id: Ic8f2e257acb256d9ea99b66d2ed1dcfc8652ae89
2016-02-03 06:20:17 -08:00
Nikolay Mahotkin f34edb7e27 Make mistral use of oslo-config-generator
Change-Id: I01f36e4b0080e10b9d39a6adbfe4b6cd43957fc6
2015-05-26 13:06:09 +03:00
Christian Berendt c06f8e7bec Use $(COMMAND) instead of `COMMAND`
The usage of $(COMMAND) shoud be preferred. Details can be
found at http://mywiki.wooledge.org/BashFAQ/082.

Also replaced two ` used in strings with '.

Change-Id: Ia729470c58da6fe2e505426bd5ce93214ec1f655
2014-09-30 15:17:04 +02:00
Kirill Izotov 6d035709a7 Replace oslo-incubator's db with standalone oslo.db
Change-Id: Id78149faefb7e458f7b11de1b2d71a03a8d56091
2014-07-28 18:01:57 +07:00
Winson Chan c4a85ff431 Clean up configuration settings
Removed outdated configuration options from mistral.config. Used
cfg.CONF.import_opt in engine to avoid NoSuchOptError. Removed
the imports of mistral.config using importutils. Generated new
sample configuration file.

Change-Id: I4b5ea7ef2a9b6717e6f33256107409c228575048
Implements: blueprint mistral-config-cleanup
2014-06-09 16:50:11 -07:00
Winson Chan 59830a49f1 Sync code with oslo-incubator
Updated openstack-common.conf and remove outdated modules. Ran update script
in oslo-incubator to generate modules in the mistral/openstack and tools
directories. Sqlalchemy backend has changed significantly in oslo-incubator.
Refactored mistral db api to address these changes and updated the base test
class DbTestCase accordingly.

Change-Id: I61327c33c0c8bc616af5e7633634461a2d7ac691
Implements: blueprint mistral-sync-with-incubator
2014-05-29 15:07:15 -07:00
Renat Akhmerov 039e899d8b Adding REST API application skeleton based on pecan/wsme
* Adding required dependencies to use and test pecan/wsme app
* Adding additional modules from oslo-incubator
* Adding configuration files mistral.conf and specific file
 loggin.conf for logging
* Adding dependencies for testing: fixtures, testtools, mock
* Updating tox.ini to run nosetests for py26 and py27 environments

Change-Id: I4fd63820aaaf3b50fb1c981031f60faa68a6d307
2013-11-27 19:34:43 +07:00