/*
 * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
 *
 * SPDX-License-Identifier: MPL-2.0
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0.  If a copy of the MPL was not distributed with this
 * file, you can obtain one at https://mozilla.org/MPL/2.0/.
 *
 * See the COPYRIGHT file distributed with this work for additional
 * information regarding copyright ownership.
 */

{% set policy = policy | default("unsigning") %}

include "kasp.conf";
include "named.common.conf";

zone "step1.going-insecure.kasp" {
	type primary;
	file "step1.going-insecure.kasp.db";
	dnssec-policy @policy@;
};

{% if policy == "insecure" %}
zone "step2.going-insecure.kasp" {
	type primary;
	file "step2.going-insecure.kasp.db";
	dnssec-policy insecure;
};
{% endif %}

zone "step1.going-insecure-dynamic.kasp" {
	type primary;
	file "step1.going-insecure-dynamic.kasp.db";
	dnssec-policy @policy@;
	inline-signing no;
	allow-update { any; };
};

{% if policy == "insecure" %}
zone "step2.going-insecure-dynamic.kasp" {
	type primary;
	file "step2.going-insecure-dynamic.kasp.db";
	dnssec-policy insecure;
	inline-signing no;
	allow-update { any; };
};
{% endif %}
