0ef529b710
* 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 |
||
---|---|---|
.. | ||
auth | ||
test-fixtures | ||
README.md | ||
api_test.go | ||
auth.go | ||
auth_test.go | ||
auth_token.go | ||
client.go | ||
client_test.go | ||
go.mod | ||
go.sum | ||
help.go | ||
lifetime_watcher.go | ||
logical.go | ||
output_policy.go | ||
output_string.go | ||
plugin_helpers.go | ||
plugin_helpers_test.go | ||
renewer_test.go | ||
request.go | ||
request_test.go | ||
response.go | ||
secret.go | ||
ssh.go | ||
ssh_agent.go | ||
ssh_agent_test.go | ||
sys.go | ||
sys_audit.go | ||
sys_auth.go | ||
sys_capabilities.go | ||
sys_config_cors.go | ||
sys_generate_root.go | ||
sys_hastatus.go | ||
sys_health.go | ||
sys_init.go | ||
sys_leader.go | ||
sys_leases.go | ||
sys_mfa.go | ||
sys_monitor.go | ||
sys_mounts.go | ||
sys_plugins.go | ||
sys_policy.go | ||
sys_raft.go | ||
sys_rekey.go | ||
sys_rotate.go | ||
sys_seal.go | ||
sys_stepdown.go |
README.md
Vault API
This provides the github.com/hashicorp/vault/api
package which contains code useful for interacting with a Vault server.
For examples of how to use this module, see the vault-examples repo.