Josh Black
03d2be4cb9
update gofumpt to 0.3.1 and reformat the repo ( #17055 )
...
* update gofumpt to 0.3.1 and reformat the repo
* output the version of the formatter we're using
2022-09-07 17:31:20 -07:00
Anton Averchenkov
0dd4cda7c9
Replace http method strings with net/http constants ( #14677 )
2022-03-24 13:58:03 -04:00
Anton Averchenkov
8234a663e7
Add context-aware functions to vault/api ( #14388 )
2022-03-23 17:47:43 -04:00
Brian Kassouf
a24653cc5c
Run a more strict formatter over the code ( #11312 )
...
* Update tooling
* Run gofumpt
* go mod vendor
2021-04-08 09:43:39 -07:00
Josh Black
af5338b485
Add a new "vault monitor" command ( #8477 )
...
Add a new "vault monitor" command
Co-authored-by: ncabatoff <ncabatoff@hashicorp.com>
Co-authored-by: Calvin Leung Huang <cleung2010@gmail.com>
Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com>
2020-05-21 13:07:50 -07:00
Jeff Mitchell
9cf497f688
Remove injection into top routes ( #5101 )
2018-08-14 15:29:22 -04:00
Brian Kassouf
4ca3b84f52
API: Add context to each raw request call ( #4987 )
2018-07-24 15:49:55 -07:00
Jeff Mitchell
16f6dd1ae1
Purge structs from API.
...
Its use provides no value (in the current code, not generally) and has
already caused one bug (#4325 ).
2018-04-09 22:23:56 -04:00
Jeff Mitchell
513f8b918d
Add WithOptions methods to audit/auth enabling ( #2383 )
2017-02-16 11:37:27 -05:00
Jeff Mitchell
92cb23fc85
Restore compatibility with pre-0.6.1 servers for CLI/Go API calls
2016-08-14 14:52:45 -04:00
Jeff Mitchell
593954d40c
Fix tests and update mapstructure
2016-08-08 16:00:31 -04:00
vishalnayak
bac4fe0799
Rename id to path and path to file_path, print audit backend paths
2016-03-14 17:15:07 -04:00
Jeff Mitchell
49d525ebf3
Reintroduce the ability to look up obfuscated values in the audit log
...
with a new endpoint '/sys/audit-hash', which returns the given input
string hashed with the given audit backend's hash function and salt
(currently, always HMAC-SHA256 and a backend-specific salt).
In the process of adding the HTTP handler, this also removes the custom
HTTP handlers for the other audit endpoints, which were simply
forwarding to the logical system backend. This means that the various
audit functions will now redirect correctly from a standby to master.
(Tests all pass.)
Fixes #784
2015-11-18 20:26:03 -05:00
Mitchell Hashimoto
933e790ad0
api: audit methods
2015-04-01 18:38:25 -07:00