VAL 7089487509
Global flag that outputs minimum policy HCL required for an operation (#14899)
* WIP: output policy

* Outputs example policy HCL for given request

* Simplify conditional

* Add PATCH capability

* Use OpenAPI spec and regex patterns to determine if path is sudo

* Add test for isSudoPath

* Add changelog

* Fix broken CLI tests

* Add output-policy to client cloning code

* Smaller fixes from PR comments

* Clone client instead of saving and restoring custom values

* Fix test

* Address comments

* Don't unset output-policy flag on KV requests otherwise the preflight request will fail and not populate LastOutputPolicyError

* Print errors saved in buffer from preflight KV requests

* Unescape characters in request URL

* Rename methods and properties to improve readability

* Put KV-specificness at front of KV-specific error

* Simplify logic by doing more direct returns of strings and errors

* Use precompiled regexes and move OpenAPI call to tests

* Remove commented out code

* Remove legacy MFA paths

* Remove unnecessary use of client

* Move sudo paths map to plugin helper

* Remove unused error return

* Add explanatory comment

* Remove need to pass in address

* Make {name} regex less greedy

* Use method and path instead of info from retryablerequest

* Add test for IsSudoPaths, use more idiomatic naming

* Use precompiled regexes and move OpenAPI call to tests (#15170)

* Use precompiled regexes and move OpenAPI call to tests

* Remove commented out code

* Remove legacy MFA paths

* Remove unnecessary use of client

* Move sudo paths map to plugin helper

* Remove unused error return

* Add explanatory comment

* Remove need to pass in address

* Make {name} regex less greedy

* Use method and path instead of info from retryablerequest

* Add test for IsSudoPaths, use more idiomatic naming

* Make stderr writing more obvious, fix nil pointer deref
2022-04-27 16:35:18 -07:00
..
2022-01-27 10:06:34 -08:00
2019-03-25 10:56:04 -07:00
2017-10-24 09:28:06 -04:00
2022-02-18 08:50:05 -08:00
2019-02-14 11:54:47 -08:00
2022-02-18 08:50:05 -08:00
2022-04-12 06:08:28 +05:30
2022-04-19 14:28:08 -04:00
2022-04-19 14:28:08 -04:00
2022-02-15 10:43:49 -08:00
2017-10-24 09:30:47 -04:00
2021-10-26 10:52:29 -06:00
2020-03-17 09:46:44 -04:00
2017-10-24 09:30:48 -04:00
2017-10-24 09:39:34 -04:00
2022-01-27 10:06:34 -08:00
2018-11-06 17:21:24 -08:00
2017-10-24 09:30:48 -04:00
2022-02-18 08:50:05 -08:00
2017-10-24 09:39:34 -04:00
2018-02-12 18:12:16 -05:00
2017-10-24 09:30:47 -04:00
2022-04-19 14:28:08 -04:00