# ACL plus notation does not work in path

**URL:** <https://discuss.hashicorp.com/t/acl-plus-notation-does-not-work-in-path/40475>\
**Category:** Vault\
**Tags:** acl, vault, policy-as-code\
**Created:** [June 7, 2022, 9:21am UTC](https://discuss.hashicorp.com/t/acl-plus-notation-does-not-work-in-path/40475 "2022-06-07T09:21:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![igor-nikiforov](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/igor-nikiforov/32/6494_2.png) [@igor-nikiforov](https://discuss.hashicorp.com/u/igor-nikiforov)\
**Post date:** [June 7, 2022, 9:21am UTC](https://discuss.hashicorp.com/t/acl-plus-notation-does-not-work-in-path/40475/1 "2022-06-07T09:21:53Z")

</div>

Hello,

I have **kv v1** with `foo/` path and want to create policy for deny specific secrets inside `foo/+/`, in my case `foo/+/bitbucket*`.

But for some reason this policy below does not work. I’m still able to read any secrets in foo/+/bitbucket\* with bitbucket\* prefix.

```auto
path "foo/+" {
  capabilities = ["list"]
}

path "foo/bar/*" {
  capabilities = ["list", "read", "create", "update", "patch", "delete"]
}

path "foo/+/bitbucket*" {
  capabilities = ["deny"]
}

```

It working only when I explicitly specificy full path like this:

```auto
path "foo/bar/bitbucket*" {
  capabilities = ["deny"]
}

```

Why + does not work in my case?

Thanks.

---

<div class="post-metadata">

**Author:** ![maxb](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/maxb/32/26655_2.png) [@maxb](https://discuss.hashicorp.com/u/maxb)\
**Post date:** [June 7, 2022, 9:47am UTC](https://discuss.hashicorp.com/t/acl-plus-notation-does-not-work-in-path/40475/2 "2022-06-07T09:47:39Z")

</div>

> [@igor-nikiforov](#):
>
> ```auto
> path "foo/+" {
> capabilities = ["list"]
> }
> 
> ```

Needs to be changed to:

```auto
path "foo/+/" {
  capabilities = ["list"]
}

```

The handling of trailing slashes with list operations and + wildcards is inconsistent with the same if + wildcards are not used, unfortunately.

---

<div class="post-metadata">

**Author:** ![igor-nikiforov](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/igor-nikiforov/32/6494_2.png) [@igor-nikiforov](https://discuss.hashicorp.com/u/igor-nikiforov)\
**Post date:** [June 7, 2022, 10:12am UTC](https://discuss.hashicorp.com/t/acl-plus-notation-does-not-work-in-path/40475/3 "2022-06-07T10:12:35Z")

</div>

> [@maxb](#):
>
> ```auto
> path "foo/+/" {
> capabilities = ["list"]
> }
> 
> ```

Sorry but this does not allow to list any path under foo/. Moreover it does not solve issue with:

```auto
path "foo/bar/bitbucket*" {
  capabilities = ["deny"]
}

```

---

<div class="post-metadata">

**Author:** ![igor-nikiforov](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/igor-nikiforov/32/6494_2.png) [@igor-nikiforov](https://discuss.hashicorp.com/u/igor-nikiforov)\
**Post date:** [June 7, 2022, 10:28am UTC](https://discuss.hashicorp.com/t/acl-plus-notation-does-not-work-in-path/40475/4 "2022-06-07T10:28:39Z")

</div>

Seems like this kind of ACL just don’t work with kv v1. I checked same patterns with kv v2 and it works perfectly.
