{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/vault/issues/5992","repository_url":"https://api.github.com/repos/hashicorp/vault","labels_url":"https://api.github.com/repos/hashicorp/vault/issues/5992/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/vault/issues/5992/comments","events_url":"https://api.github.com/repos/hashicorp/vault/issues/5992/events","html_url":"https://github.com/hashicorp/vault/issues/5992","id":395081856,"node_id":"MDU6SXNzdWUzOTUwODE4NTY=","number":5992,"title":"Policy not applied correctly to enable access","user":{"login":"oniseijin","id":80143,"node_id":"MDQ6VXNlcjgwMTQz","avatar_url":"https://avatars0.githubusercontent.com/u/80143?v=4","gravatar_id":"","url":"https://api.github.com/users/oniseijin","html_url":"https://github.com/oniseijin","followers_url":"https://api.github.com/users/oniseijin/followers","following_url":"https://api.github.com/users/oniseijin/following{/other_user}","gists_url":"https://api.github.com/users/oniseijin/gists{/gist_id}","starred_url":"https://api.github.com/users/oniseijin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oniseijin/subscriptions","organizations_url":"https://api.github.com/users/oniseijin/orgs","repos_url":"https://api.github.com/users/oniseijin/repos","events_url":"https://api.github.com/users/oniseijin/events{/privacy}","received_events_url":"https://api.github.com/users/oniseijin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-01-01T13:12:27Z","updated_at":"2019-01-01T14:50:44Z","closed_at":"2019-01-01T14:50:44Z","author_association":"NONE","body":"\r\n\r\n**Describe the bug**\r\nWhen applying a policy, the specific path that grants access is not respected\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Setup a policy as specified in the hcl section below\r\n2. Login with user having that policy\r\n3. From the UI, you get \"Not authorized\" if you access something at devops/zyx (but you can navigate there)\r\n\r\n```\r\nYou don't have access to secret/. If you think you've reached this page in error, please contact your administrator.\r\nGo back home .\r\n```\r\n\r\n**Expected behavior**\r\nYou should be able to edit anything under secret/devops\r\n\r\n**Environment:**\r\n* Vault Server Version (retrieve with `1.0.1`):\r\n* Vault CLI Version (retrieve with `1.0.0`):\r\n* Server Operating System/Architecture: Docker image on OSX\r\n\r\nVault server configuration file(s):\r\n\r\n```hcl\r\npath \"secret/devops/*\" {\r\n   capabilities = [\"create\", \"read\", \"update\", \"delete\"]\r\n}\r\n\r\npath \"secret/*\" {\r\n   capabilities = [\"list\"]\r\n}\r\n```\r\n\r\n**Additional context**\r\nIf I give \r\n```\r\npath \"secret/*\" {\r\n   capabilities = capabilities = [\"create\", \"read\", \"update\", \"delete\", \"list\"]\r\n}\r\n```\r\nit all works fine. And note: this does not work either\r\n```\r\npath \"secret/devops/*\" {\r\n   capabilities = capabilities = [\"create\", \"read\", \"update\", \"delete\", \"list\"]\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"oniseijin"}}