open-vault/vault
swayne275 9724f59180
Vault 1979: Query API for Irrevocable Leases (#11607)
* build out lease count (not fully working), start lease list

* build out irrevocable lease list

* bookkeeping

* test irrevocable lease counts for API/CLI

* fix listIrrevocableLeases, test listIrrevocableLeases, cleanup

* test expiration API limit

* namespace tweaks, test force flag on lease list

* integration test leases/count API, plenty of fixes and improvements

* test lease list API, fixes and improvements

* test force flag for irrevocable lease list API

* i guess this wasn't saved on the last refactor...

* fixes and improvements found during my review

* better test error msg

* Update vault/logical_system_paths.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* Update vault/logical_system_paths.go

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>

* return warning with data if more than default leases to list without force flag

* make api doc more generalized

* list leases in general, not by mount point

* change force flag to include_large_results

* sort leases by LeaseID for consistent API response

* switch from bool flag for API limit to string value

* sort first by leaseID, then stable sort by expiration

* move some utils to be in oss and ent

* improve sort efficiency for API response

Co-authored-by: Brian Kassouf <briankassouf@users.noreply.github.com>
2021-06-02 10:11:30 -06:00
..
activity Introduce Logical Unrecoverable Error, Use it in Expiration Manager (#11477) 2021-05-03 17:56:06 -06:00
cluster Don't backoff if a listener error was a timeout (#11594) 2021-05-13 17:02:25 -05:00
diagnose Add ulimit check, and tidy unit test cases (#11678) 2021-06-01 12:43:51 -05:00
external_tests Vault 1979: Query API for Irrevocable Leases (#11607) 2021-06-02 10:11:30 -06:00
quotas Fix goroutine leak caused by updating rate quotas (#11371) 2021-04-16 14:00:01 -04:00
replication Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
seal Same seal migration oss (#10224) 2020-10-23 14:16:04 -04:00
acl.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
acl_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
acl_util.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
activity_log.go don't panic if no data, improve log (#11581) 2021-05-11 10:41:57 -06:00
activity_log_test.go don't panic if no data, improve log (#11581) 2021-05-11 10:41:57 -06:00
activity_log_testing_util.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
activity_log_util.go Backport some OSS changes (#10267) 2020-10-29 16:47:34 -07:00
audit.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
audit_broker.go Allow plugins to submit audit requests/responses via extended SystemView (#6777) 2019-05-22 18:52:53 -04:00
audit_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
audited_headers.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
audited_headers_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
auth.go Only fail auth plugin backend mounting for custom plugins (#11690) 2021-05-27 13:37:45 -05:00
auth_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
barrier.go OSS side barrier encryption tracking and automatic rotation (#11007) 2021-02-25 14:27:25 -06:00
barrier_access.go Fix compile 2018-01-19 05:31:55 -05:00
barrier_aes_gcm.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
barrier_aes_gcm_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
barrier_test.go OSS side barrier encryption tracking and automatic rotation (#11007) 2021-02-25 14:27:25 -06:00
barrier_view.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
barrier_view_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
barrier_view_util.go The big one (#5346) 2018-09-17 23:03:00 -04:00
capabilities.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
capabilities_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
cluster.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
cluster_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
core.go OSS parts of #1891 (sys/health license addition) (#11676) 2021-05-20 13:32:15 -04:00
core_metrics.go Switch to shared raft-boltdb library and add metrics (#11269) 2021-04-26 16:01:26 -07:00
core_metrics_test.go Fix crash when KV store has a zero-length key. (#9881) 2020-09-02 17:43:44 -05:00
core_test.go Create helpers which integrate with OpenTelemetry for diagnose collection (#11454) 2021-04-29 13:32:41 -05:00
core_util.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
cors.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
counters.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
counters_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
deadlock.go Add option to detect deadlocks in Core.stateLock using build tag `deadlock` (#8524) 2020-03-10 16:01:20 -04:00
dynamic_system_view.go core: updates to password policy generator (#11596) 2021-05-13 09:55:46 -04:00
dynamic_system_view_test.go core: updates to password policy generator (#11596) 2021-05-13 09:55:46 -04:00
expiration.go Vault 1979: Query API for Irrevocable Leases (#11607) 2021-06-02 10:11:30 -06:00
expiration_integ_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
expiration_test.go Vault 1979: Query API for Irrevocable Leases (#11607) 2021-06-02 10:11:30 -06:00
expiration_util.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
expiration_util_common.go Vault 1979: Query API for Irrevocable Leases (#11607) 2021-06-02 10:11:30 -06:00
generate_root.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
generate_root_recovery.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
generate_root_test.go Shamir seals now come in two varieties: legacy and new-style. (#7694) 2019-10-18 14:46:00 -04:00
ha.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
ha_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
identity_lookup.go Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00
identity_lookup_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
identity_store.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
identity_store_aliases.go Prevent entity alias creation when entity is in different NS than mount (#943) (#6886) 2019-06-14 12:53:00 -04:00
identity_store_aliases_test.go Prevent entity alias creation when entity is in different NS than mount (#943) (#6886) 2019-06-14 12:53:00 -04:00
identity_store_entities.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
identity_store_entities_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
identity_store_group_aliases.go Update group alias handling to better protect against namespace differences 2019-06-18 16:43:30 -04:00
identity_store_group_aliases_test.go Update group alias handling to better protect against namespace differences 2019-06-18 16:43:30 -04:00
identity_store_groups.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
identity_store_groups_test.go Fix use of identity/group endpoint to edit group by name (#10812) 2021-01-29 16:50:08 -06:00
identity_store_oidc.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
identity_store_oidc_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
identity_store_oidc_util.go Fix identity token caching (#8412) 2020-02-26 15:56:19 -05:00
identity_store_schema.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
identity_store_structs.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
identity_store_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
identity_store_upgrade.go Prevent entity alias creation when entity is in different NS than mount (#943) (#6886) 2019-06-14 12:53:00 -04:00
identity_store_util.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
init.go Modularize Run Command (#11573) 2021-05-25 15:23:20 -07:00
init_test.go Shutdown Test Cores when Tests Complete (#10912) 2021-02-12 13:04:48 -07:00
keyring.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
keyring_test.go Spelling (#4119) 2018-03-20 14:54:10 -04:00
lock.go Add option to detect deadlocks in Core.stateLock using build tag `deadlock` (#8524) 2020-03-10 16:01:20 -04:00
logical_cubbyhole.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
logical_cubbyhole_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
logical_passthrough.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
logical_passthrough_test.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
logical_raw.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
logical_system.go Vault 1979: Query API for Irrevocable Leases (#11607) 2021-06-02 10:11:30 -06:00
logical_system_activity.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
logical_system_helpers.go Provide a new API endpoint for retrieving signed licenses (#11543) 2021-05-12 12:19:25 -07:00
logical_system_integ_test.go Only fail auth plugin backend mounting for custom plugins (#11690) 2021-05-27 13:37:45 -05:00
logical_system_paths.go Vault 1979: Query API for Irrevocable Leases (#11607) 2021-06-02 10:11:30 -06:00
logical_system_pprof.go Add support for unauthenticated pprof access on a per-listener basis,… (#11324) 2021-04-19 14:30:59 -04:00
logical_system_quotas.go Fix quota enforcing old path issue (#10689) 2021-02-09 05:46:09 -05:00
logical_system_raft.go VAULT-2439: OSS parts of #1889 (raft licensing init) (#11665) 2021-05-19 16:07:58 -04:00
logical_system_test.go Vault 1979: Query API for Irrevocable Leases (#11607) 2021-06-02 10:11:30 -06:00
logical_system_util.go Move the declaration to a OSS build tag file to not have it collide w… (#10750) 2021-01-25 09:35:19 -05:00
mount.go [VAULT-1441] Fix race that allowed remounting on path used by another mount (#11453) 2021-04-24 09:05:41 -07:00
mount_test.go [VAULT-1441] Fix race that allowed remounting on path used by another mount (#11453) 2021-04-24 09:05:41 -07:00
mount_util.go Port filtered paths changes back to OSS (#7741) 2019-10-27 13:30:38 -07:00
namespaces.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
password_policy_util.go core: updates to password policy generator (#11596) 2021-05-13 09:55:46 -04:00
plugin_catalog.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
plugin_catalog_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
plugin_reload.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
policy.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
policy_store.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
policy_store_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
policy_store_util.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
policy_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
policy_util.go The big one (#5346) 2018-09-17 23:03:00 -04:00
raft.go VAULT-2439: OSS parts of #1889 (raft licensing init) (#11665) 2021-05-19 16:07:58 -04:00
rekey.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
rekey_test.go Shutdown Test Cores when Tests Complete (#10912) 2021-02-12 13:04:48 -07:00
request_forwarding.go Add metrics for requests forwarded by standbys. (#11366) 2021-04-16 14:02:20 -04:00
request_forwarding_rpc.go Support autopilot when raft is for HA only (#11260) 2021-04-12 09:33:21 -04:00
request_forwarding_rpc_util.go The big one (#5346) 2018-09-17 23:03:00 -04:00
request_forwarding_service.pb.go Introduce Logical Unrecoverable Error, Use it in Expiration Manager (#11477) 2021-05-03 17:56:06 -06:00
request_forwarding_service.proto Autopilot: Server Stabilization, State and Dead Server Cleanup (#10856) 2021-03-03 13:59:50 -05:00
request_handling.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
request_handling_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
request_handling_util.go OSS side barrier encryption tracking and automatic rotation (#11007) 2021-02-25 14:27:25 -06:00
rollback.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
rollback_test.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
router.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
router_access.go The big one (#5346) 2018-09-17 23:03:00 -04:00
router_test.go Fix a deadlock if a panic happens during request handling (#6920) 2019-06-19 09:40:57 -04:00
router_testing.go AWS upgrade role entries (#7025) 2019-07-05 16:55:40 -07:00
seal.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
seal_access.go Migrate built in auto seal to go-kms-wrapping (#8118) 2020-01-10 20:39:52 -05:00
seal_autoseal.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
seal_autoseal_test.go Migrate built in auto seal to go-kms-wrapping (#8118) 2020-01-10 20:39:52 -05:00
seal_test.go Shamir seals now come in two varieties: legacy and new-style. (#7694) 2019-10-18 14:46:00 -04:00
seal_testing.go Revert "Vault Dependency Upgrades [VAULT-871] (#10903)" (#10939) 2021-02-18 15:40:18 -05:00
seal_testing_util.go Revert "Vault Dependency Upgrades [VAULT-871] (#10903)" (#10939) 2021-02-18 15:40:18 -05:00
sealunwrapper.go Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
sealunwrapper_test.go Migrate built in auto seal to go-kms-wrapping (#8118) 2020-01-10 20:39:52 -05:00
testing.go VAULT-2439: OSS parts of #1889 (raft licensing init) (#11665) 2021-05-19 16:07:58 -04:00
testing_util.go OSS parts of ent PR #1857: license autoloading init changes. (#11623) 2021-05-17 14:10:26 -04:00
token_store.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
token_store_test.go Patch expiration fix over from ENT (#11650) 2021-05-18 14:55:38 -07:00
token_store_util.go The big one (#5346) 2018-09-17 23:03:00 -04:00
ui.go UI/obscure secret on input (#11284) 2021-04-22 08:58:37 -06:00
ui_test.go Fix UI custom header values (#10511) 2020-12-15 15:58:03 +01:00
util.go Removed unused methods 2017-01-03 12:51:35 -05:00
util_test.go Utility Enhancements 2016-04-05 20:32:59 -04:00
wrapping.go vault: deprecate errwrap.Wrapf() (#11577) 2021-05-11 13:12:54 -04:00
wrapping_util.go Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00