OpenStack DNS As A Service (Designate)
Go to file
Graham Hayes d72c652013 Ensure we do not pass invalid data for A records
DNSPython does not allow IPs to have leading zeros
for A records [1] and eventlet agrees [2], so we should
ensure we do not create a situation where a project can
DOS itself.

This patch uses the DNSPython method to ensure it is kept in sync

1 - https://github.com/rthalley/dnspython/blob/v1.15.0/dns/ipv4.py#L52-L54
2 - https://github.com/eventlet/eventlet/blob/v0.20.0/eventlet/support/dns/ipv4.py#L52-L54

Partial-Bug: 1760833
Change-Id: I975b18d390647de9fe11c105cd421b761f88be6c
2018-04-11 15:34:15 +01:00
api-ref/source Merge "Remove the deprecated "giturl" option" 2018-02-03 14:16:52 +00:00
contrib Ensure we do not pass invalid data for A records 2018-04-11 15:34:15 +01:00
designate Ensure we do not pass invalid data for A records 2018-04-11 15:34:15 +01:00
devstack Merge "os-loganayze fix" 2018-02-17 13:13:06 +00:00
doc Updated from global requirements 2018-03-28 03:25:55 +00:00
etc/designate Fix policy name 2018-03-15 12:14:36 +00:00
playbooks/legacy Remove v1 API 2018-01-11 14:13:43 +00:00
rally-jobs Add validation to improve pep8 check for designate project 2017-11-20 12:26:16 +00:00
releasenotes Imported Translations from Zanata 2018-03-11 07:07:58 +00:00
tools Refactor NSD4 UT for using upstream eventlet 2017-04-27 17:11:16 +07:00
.coveragerc Update .coveragerc after the removal of respective directory 2016-10-18 17:56:48 +05:30
.gitignore Update .gitignore 2017-12-01 13:20:38 +07:00
.gitreview Update .gitreview for repository move 2014-06-28 16:52:03 +01:00
.testr.conf Add functional tox env 2015-07-14 15:36:08 +01:00
.zuul.yaml add lower-constraints job 2018-03-22 11:11:35 -04:00
babel.cfg Setup for translation 2014-07-04 16:40:02 +02:00
designate.sublime-project Add __pycache__ to ST2 Ignore 2015-07-09 20:19:53 +01:00
ipa-requirements.txt add support for FreeIPA backend - phase 5 - requirements 2014-05-07 17:16:12 -06:00
LICENSE Add LICENSE file. 2013-06-18 16:13:03 -04:00
lower-constraints.txt add lower-constraints job 2018-03-22 11:11:35 -04:00
README.rst Add validation to improve pep8 check for designate project 2017-11-20 12:26:16 +00:00
requirements.txt Updated from global requirements 2018-03-26 18:18:36 +00:00
setup.cfg Follow the new PTI for document build 2018-03-27 10:30:57 +08:00
setup.py Updated from global requirements 2017-03-08 23:22:13 +00:00
test-requirements.txt Follow the new PTI for document build 2018-03-27 10:30:57 +08:00
tox.ini Follow the new PTI for document build 2018-03-27 10:30:57 +08:00

Team and repository tags

image

OpenStack Designate

Designate is an OpenStack project, providing DNSaaS.

IRC: #openstack-dns

Installation: https://docs.openstack.org/designate/latest/

Development

Designate follows the OpenStack Gerrit Workflow

Setup

Setup a working environment:

git clone https://github.com/openstack/designate.git
cd designate
virtualenv .venv
. .venv/bin/activate
pip install -r requirements.txt -r test-requirements.txt
python setup.py develop

Building Docs

To build the documentation from the restructured text source, do the following:

cd doc
pip install -r requirements.txt
sphinx-build  source/ build/html/

now point your browser at html/index.html (the official documentation is published to docs.openstack.org by the maintainers.

Contributing

Install the git-review package to make life easier

pip install git-review

Branch, work, & submit:

# cut a new branch, tracking master
git checkout --track -b bug/id origin/master
# work work work
git add stuff
git commit
# rebase/squash to a single commit before submitting
git rebase -i
# submit
git-review

Testing

Execute a single test using py27 (test is CentralServiceTest.test_count_domains)

tox -e py27 -- designate.tests.test_central.test_service.CentralServiceTest.test_count_zones_policy_check