Creation of a record within a registered subdomain does not cause an error

Bug #1259954 reported by Graham Hayes on 2013-12-11
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
High
Endre Karlson
Havana
Low
Endre Karlson
Icehouse
High
Endre Karlson

Bug Description

If you have 2 domains created:

domain 1 - designate.local
domain 2 - subdomain.designate.local

and within domain 1 create a record:

record 1 - thisshouldbreak.subdomain.designate.local (within domain 1)

designate returns a created event.

when you do a record list on domain 1, it will show in the record list, but most backends will never return this record (tested on PowerDNS)

We should check if a record is within a registered sub domain, before creating it.

tags: added: central
removed: api
description: updated
Ron Rickard (rjrjr) wrote :

I have verified that this problem also exists with a BIND 9 backend.

It is also possible to create a record in domain 1 that has the same name as domain 2. Just another variation of the same issue.

Kiall Mac Innes (kiall) on 2014-01-16
description: updated

Reviewed: https://review.openstack.org/67822
Committed: https://git.openstack.org/cgit/stackforge/designate/commit/?id=74d7e3ddc572253021102c1e5c5e2cc32f844bc8
Submitter: Jenkins
Branch: master

commit 74d7e3ddc572253021102c1e5c5e2cc32f844bc8
Author: Endre Karlson <email address hidden>
Date: Mon Jan 20 13:30:40 2014 +0100

    Check if RS belongs in childzone

    Closes-Bug: #1259954

    Change-Id: Idb44cc2fad56ac15c98c9572411aece0ee7020ea

Changed in designate:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers