# Getting 403 with token generated using custom policy

**URL:** <https://discuss.hashicorp.com/t/getting-403-with-token-generated-using-custom-policy/63633>\
**Category:** Vault\
**Created:** [March 13, 2024, 11:21am UTC](https://discuss.hashicorp.com/t/getting-403-with-token-generated-using-custom-policy/63633 "2024-03-13T11:21:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deelepkumar.g](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@deelepkumar.g](https://discuss.hashicorp.com/u/deelepkumar.g)\
**Post date:** [March 13, 2024, 11:21am UTC](https://discuss.hashicorp.com/t/getting-403-with-token-generated-using-custom-policy/63633/1 "2024-03-13T11:21:38Z")

</div>

Hi i am running vault in my local in dev mode. I have secrets in the path secret/myapp. I am trying to get those secrets using spring cloud config server.  
i can get response for the curl ([http://localhost:8888/config/myapp/default](http://localhost:8888/config/myapp/default)) usingToken generated using this policy

path “secret/\*” {  
capabilities = [“read”]  
}

but getting 403 Forbidden: "{“errors”:[“1 error occurred:\n\t\* permission denied\n\n”]} with policy  
path “secret/myapp\*” {  
capabilities = [“read”]  
}

what i am missing here ??

 ![Screenshot 2024-03-13 at 4.50.56 PM](https://global.discourse-cdn.com/hashicorp/original/3X/a/6/a6313b863a21a7bb34296f24b180bd0eb9accb76.png)
