open-vault/vault
Jeff Mitchell 3dfa30acb4 Add ability to use path wildcard segments (#6164)
* Path globbing

* Add glob support at the beginning

* Ensure when evaluating an ACL that our path never has a leading slash. This already happens in the normal request path but not in tests; putting it here provides it for tests and extra safety in case the request path changes

* Simplify the algorithm, we don't really need to validate the prefix first as glob won't apply if it doesn't

* Add path segment wildcarding

* Disable path globbing for now

* Remove now-unneeded test

* Remove commented out globbing bits

* Remove more holdover glob bits

* Rename k var to something more clear
2019-02-14 18:31:43 -08:00
..
external_tests Add allowed_response_headers (#6115) 2019-02-05 16:02:15 -05:00
replication Refactor the cluster listener (#6232) 2019-02-14 18:14:56 -08:00
seal Updates to recovery keys (#6152) 2019-02-01 11:29:55 -08:00
acl.go Add ability to use path wildcard segments (#6164) 2019-02-14 18:31:43 -08:00
acl_test.go Add ability to use path wildcard segments (#6164) 2019-02-14 18:31:43 -08:00
acl_util.go
audit.go Split SubView functionality into logical.StorageView (#6141) 2019-01-31 09:25:18 -05:00
audit_broker.go
audit_test.go
audited_headers.go
audited_headers_test.go
auth.go Split SubView functionality into logical.StorageView (#6141) 2019-01-31 09:25:18 -05:00
auth_test.go
barrier.go Split SubView functionality into logical.StorageView (#6141) 2019-01-31 09:25:18 -05:00
barrier_access.go
barrier_aes_gcm.go Split SubView functionality into logical.StorageView (#6141) 2019-01-31 09:25:18 -05:00
barrier_aes_gcm_test.go Split SubView functionality into logical.StorageView (#6141) 2019-01-31 09:25:18 -05:00
barrier_test.go Split SubView functionality into logical.StorageView (#6141) 2019-01-31 09:25:18 -05:00
barrier_view.go Split SubView functionality into logical.StorageView (#6141) 2019-01-31 09:25:18 -05:00
barrier_view_test.go Split SubView functionality into logical.StorageView (#6141) 2019-01-31 09:25:18 -05:00
barrier_view_util.go
capabilities.go
capabilities_test.go
cluster.go Refactor the cluster listener (#6232) 2019-02-14 18:14:56 -08:00
cluster_test.go Refactor the cluster listener (#6232) 2019-02-14 18:14:56 -08:00
core.go Refactor the cluster listener (#6232) 2019-02-14 18:14:56 -08:00
core_test.go Don't add kv by default in non-dev scenarios (#6109) 2019-02-14 11:55:32 -08:00
core_util.go Refactor the cluster listener (#6232) 2019-02-14 18:14:56 -08:00
cors.go Don't duplicate CORS headers (#6207) 2019-02-11 13:10:26 -05:00
dynamic_system_view.go
expiration.go
expiration_integ_test.go
expiration_test.go
expiration_util.go
generate_root.go
generate_root_test.go
ha.go Refactor the cluster listener (#6232) 2019-02-14 18:14:56 -08:00
identity_lookup.go
identity_lookup_test.go
identity_store.go
identity_store_aliases.go
identity_store_aliases_test.go
identity_store_entities.go Merge entities during unseal only on the primary (#6075) 2019-02-08 16:32:06 -05:00
identity_store_entities_test.go
identity_store_group_aliases.go
identity_store_group_aliases_test.go
identity_store_groups.go
identity_store_groups_test.go
identity_store_schema.go
identity_store_structs.go
identity_store_test.go Merge entities during unseal only on the primary (#6075) 2019-02-08 16:32:06 -05:00
identity_store_upgrade.go
identity_store_util.go Merge entities during unseal only on the primary (#6075) 2019-02-08 16:32:06 -05:00
init.go
init_test.go
keyring.go
keyring_test.go
logical_cubbyhole.go
logical_cubbyhole_test.go
logical_passthrough.go
logical_passthrough_test.go
logical_system.go Prometheus support on v1/sys/metrics endpoint (#5308) 2019-02-14 12:46:59 -08:00
logical_system_helpers.go
logical_system_integ_test.go
logical_system_paths.go Prometheus support on v1/sys/metrics endpoint (#5308) 2019-02-14 12:46:59 -08:00
logical_system_test.go Don't duplicate CORS headers (#6207) 2019-02-11 13:10:26 -05:00
mount.go Prometheus support on v1/sys/metrics endpoint (#5308) 2019-02-14 12:46:59 -08:00
mount_test.go Don't add kv by default in non-dev scenarios (#6109) 2019-02-14 11:55:32 -08:00
mount_util.go
namespaces.go
plugin_catalog.go
plugin_catalog_test.go
plugin_reload.go
policy.go Add ability to use path wildcard segments (#6164) 2019-02-14 18:31:43 -08:00
policy_store.go
policy_store_test.go
policy_store_util.go
policy_test.go Add ability to use path wildcard segments (#6164) 2019-02-14 18:31:43 -08:00
policy_util.go
rekey.go Split SubView functionality into logical.StorageView (#6141) 2019-01-31 09:25:18 -05:00
rekey_test.go
request_forwarding.go Refactor the cluster listener (#6232) 2019-02-14 18:14:56 -08:00
request_forwarding_rpc.go Refactor the cluster listener (#6232) 2019-02-14 18:14:56 -08:00
request_forwarding_rpc_util.go
request_forwarding_service.pb.go Add allowed_response_headers (#6115) 2019-02-05 16:02:15 -05:00
request_forwarding_service.proto
request_handling.go Fixes a regression in forwarding from #6115 (#6191) 2019-02-11 13:08:15 -05:00
request_handling_test.go
request_handling_util.go
rollback.go
rollback_test.go
router.go Add allowed_response_headers (#6115) 2019-02-05 16:02:15 -05:00
router_access.go
router_test.go
seal.go Updates to recovery keys (#6152) 2019-02-01 11:29:55 -08:00
seal_access.go
seal_autoseal.go Updates to recovery keys (#6152) 2019-02-01 11:29:55 -08:00
seal_test.go
seal_testing.go Updates to recovery keys (#6152) 2019-02-01 11:29:55 -08:00
seal_testing_util.go
sealunwrapper.go
sealunwrapper_test.go
testing.go Don't add kv by default in non-dev scenarios (#6109) 2019-02-14 11:55:32 -08:00
testing_util.go Fix leader info repopulation (#6167) 2019-02-05 21:01:18 -05:00
token_store.go Revert "Refactor common token fields and operations into a helper (#5953)" 2019-02-01 11:23:40 -05:00
token_store_test.go
token_store_util.go
ui.go
ui_test.go
util.go
util_test.go
wrapping.go Refactor the cluster listener (#6232) 2019-02-14 18:14:56 -08:00
wrapping_util.go