From 333fd207488692ff99b9cc516aff00e5627a3f70 Mon Sep 17 00:00:00 2001 From: hc-github-team-consul-core Date: Thu, 21 Sep 2023 08:50:48 -0400 Subject: [PATCH] Backport of Fix create dns token docs into release/1.15.x (#18938) backport of commit 24797c984ef59cf28e744a473ed69c66797836b3 Co-authored-by: Ronald Ekambi --- .../acl/tokens/create/create-a-dns-token.mdx | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/website/content/docs/security/acl/tokens/create/create-a-dns-token.mdx b/website/content/docs/security/acl/tokens/create/create-a-dns-token.mdx index f4d87b7724..059092c581 100644 --- a/website/content/docs/security/acl/tokens/create/create-a-dns-token.mdx +++ b/website/content/docs/security/acl/tokens/create/create-a-dns-token.mdx @@ -170,6 +170,13 @@ The following example policy is defined in a file. The policy grants the appropr ```hcl +partition "default" { + namespace "default" { + query_prefix "" { + policy = "read" + } + } +} partition_prefix "" { namespace_prefix "" { node_prefix "" { @@ -178,15 +185,25 @@ partition_prefix "" { service_prefix "" { policy = "read" } - query_prefix "" { - policy = "read" - } } } ``` ```json { + "partition": { + "default": [{ + "namespace": { + "default": [{ + "query_prefix": { + "": [{ + "policy": "read" + }] + } + }] + } + }] + }, "partition_prefix": { "": [{ "namespace_prefix": { @@ -196,11 +213,6 @@ partition_prefix "" { "policy": "read" }] }, - "query_prefix": { - "": [{ - "policy": "read" - }] - }, "service_prefix": { "": [{ "policy": "read"