vault/command/server
Bruno Oliveira de Souza a2c467cc22
VAULT-31409: trace postUnseal function (#28895)
* initial implementation of unseal trace

* close file if we fail to start the trace

didn't bother to check the error from traceFile.Close()

* use reloadable config instead of env var

* license

* remove leftover

* allow setting custom dir and remove new package

* bring back StartDebugTrace

after talking to Kuba it sounds like it's a good idea to try to move stuff out of core, so even if there's no immediate need for a generic debug trace function it's still fair to add it

* track postUnseal instead of unsealInternal

also some usability improvements from manual testing

* address PR comments

* address security review

there were concerns about using the /tmp directory because of permissions, or having a default dir at all, so now it's required to set a dir in order to generate the traces.

* add unit tests to StartDebugTrace

* move back to default dir

* document new parameters

* add tiny integration test

* avoid column in trace filename

sounds like it might be forbidden in Windows and possibly cause problems in some MacOS applications.

* address PR feedback

* add go doc to test

CI was complaining about missing comments on the new test function. It feels a bit silly to require this of tests but whatever XD

* fix tests
2024-11-26 15:04:34 -03:00
..
test-fixtures VAULT-31409: trace postUnseal function (#28895) 2024-11-26 15:04:34 -03:00
config_custom_response_headers_test.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
config_oss_test.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
config_oss.go Add a configuration flag for enabling multiseal (Seal HA), CE side (#25908) 2024-03-22 14:23:05 +00:00
config_telemetry_test.go [VAULT-17826] Remove mount point from rollback metrics (#22400) 2023-08-21 16:55:37 +02:00
config_test_helpers_stubs_oss.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
config_test_helpers.go VAULT-31409: trace postUnseal function (#28895) 2024-11-26 15:04:34 -03:00
config_test.go Add vault community changes for the Seal HA project. (#22515) 2023-08-24 11:40:01 -04:00
config_util_test.go Move Request Limiter to enterprise (#25615) 2024-02-27 16:24:06 -05:00
config_util.go Add a configuration flag for enabling multiseal (Seal HA), CE side (#25908) 2024-03-22 14:23:05 +00:00
config.go VAULT-31409: trace postUnseal function (#28895) 2024-11-26 15:04:34 -03:00
hcp_link_config_test.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
listener_tcp_test.go VAULT-6803: fix listener issue if using proxy_protocol_behavior with deny_unauthorized for untrusted upstream connections (#27589) 2024-06-26 07:52:13 +00:00
listener_tcp.go Add support for forwarded Tls-Client-Cert (#17272) 2024-04-05 11:22:46 -05:00
listener_test.go VAULT-6803: fix listener issue if using proxy_protocol_behavior with deny_unauthorized for untrusted upstream connections (#27589) 2024-06-26 07:52:13 +00:00
listener_unix_test.go Switch from mitchellh/cli to hashicorp/cli (#24239) 2023-12-04 11:05:02 -08:00
listener_unix.go Switch from mitchellh/cli to hashicorp/cli (#24239) 2023-12-04 11:05:02 -08:00
listener.go add gosimport to make fmt and run it (#25383) 2024-02-13 14:07:02 -08:00
server_seal_transit_acc_test.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
server_stubs_oss.go Relplat 897 copywrite fixes for mutliple licenses (#23722) 2023-10-20 08:40:43 -07:00
tls_util_test.go Relplat 897 copywrite fixes for mutliple licenses (#23722) 2023-10-20 08:40:43 -07:00
tls_util.go Add -dev-tls-san flag (#22657) 2023-08-31 23:31:42 +01:00