{"push_id":2557795553,"size":1,"distinct_size":1,"ref":"refs/heads/fix-type-sys-capabilities","head":"33b6aaed41f7cba58cab1cc9118a93c43f8a21d8","before":"57bac88af9fded1e0a2b4fc14a5ec943c178f52d","commits":[{"sha":"33b6aaed41f7cba58cab1cc9118a93c43f8a21d8","author":{"name":"Lucy Davies","email":"359424f53129f353c766fd424d382b4760a945c7@skybettingandgaming.com"},"message":"vault token capabilities with multiple paths\n\nOriginally a fix for https://github.com/hashicorp/vault/issues/4552\n\nWith a single path, previous behaviour is preserved:\n\n```\n$ go run main.go token capabilities secret/foo\ncreate, delete, list, read, update\n\n$ go run main.go token capabilities -format=json secret/foo\n[\n  \"create\",\n  \"delete\",\n  \"list\",\n  \"read\",\n  \"update\"\n]\n```\n\nWith multiple paths:\n\n```\n$ go run main.go token capabilities secret/foo,secret/bar\nPath           Capabilities\n----           ------------\nsecret/foo     create, delete, list, read, update\nsecret/bar     create, delete, list, read, update\n\n$ go run main.go token capabilities -format=json secret/foo,secret/bar\n{\n  \"secret/bar\": [\n    \"create\",\n    \"delete\",\n    \"list\",\n    \"read\",\n    \"update\"\n  ],\n  \"secret/foo\": [\n    \"create\",\n    \"delete\",\n    \"list\",\n    \"read\",\n    \"update\"\n  ]\n}\n```\n\nThis matches what we get when using the `sys/capabilities(-self)` endpoints directly\n\n```\n$ vault write sys/capabilities-self path=secret/foo\nKey             Value\n---             -----\ncapabilities    [create delete list read update]\nsecret/foo      [create delete list read update]\n\n$ vault write sys/capabilities-self path=secret/foo,secret/bar\nKey           Value\n---           -----\nsecret/bar    [create delete list read update]\nsecret/foo    [create delete list read update]\n```\n\nFor compatibility, the existing Sys Capabilities(Self) methods remain unchanged.","distinct":true,"url":"https://api.github.com/repos/lucymhdavies/vault/commits/33b6aaed41f7cba58cab1cc9118a93c43f8a21d8"}]}
{"actor":{"display_login":"lucymhdavies"}}