open-vault/vault
Mitchell Hashimoto b2af154fb4 vault: make Mount related core functions public
/cc @armon - So I know the conversation we had related to this about
auth, but I think we still need to export these and do auth only at the
external API layer. If you're writing to the internal API, then all bets
are off.

The reason is simply that if you have access to the code, you can
already work around it anyways (you can disable auth or w/e), so a
compromised Vault source/binary is already a failure, and that is the
only thing that our previous unexported methods were protecting against.

If you write an external tool to access a Vault, it still needs to be
unsealed so _that_ is the primary security mechanism from an API
perspective. Once it is unsealed then the core API has full access to
the Vault, and identity/auth is only done at the external API layer, not
at the internal API layer.

The benefits of this approach is that it lets us still treat the "sys"
mount specially but at least have sys adopt helper/backend and use that
machinery and it can still be the only backend which actually has a
reference to *vault.Core to do core things (a key difference). So, an
AWS backend still will never be able to muck with things it can't, but
we're explicitly giving Sys (via struct initialization in Go itself)
a reference to *vault.Core.
2015-03-14 17:26:59 -07:00
..
barrier.go vault: Improve error when unseal key is wrong 2015-03-12 11:27:41 -07:00
barrier_aes_gcm.go vault: Improve error when unseal key is wrong 2015-03-12 11:27:41 -07:00
barrier_aes_gcm_test.go vault: Adding a barrier view 2015-03-05 14:34:05 -08:00
barrier_test.go vault: Improve error when unseal key is wrong 2015-03-12 11:27:41 -07:00
barrier_view.go vault: Support sub-views 2015-03-12 12:44:30 -07:00
barrier_view_test.go vault: Support sub-views 2015-03-12 12:44:30 -07:00
core.go vault: improve seal/unseal log messages 2015-03-13 11:34:40 -07:00
core_test.go vault: Support a pre-seal teardown 2015-03-13 11:16:24 -07:00
expiration.go vault: Track the renew time 2015-03-13 11:36:24 -07:00
expiration_test.go vault: Track the renew time 2015-03-13 11:36:24 -07:00
generic.go vault: Moving generic backend into package 2015-03-11 15:50:42 -07:00
generic_test.go vault: Adding lease registration 2015-03-13 10:56:03 -07:00
logical_backend.go vault: Validate lease values 2015-03-13 10:56:03 -07:00
logical_backend_test.go vault: Validate lease values 2015-03-13 10:56:03 -07:00
mount.go vault: make Mount related core functions public 2015-03-14 17:26:59 -07:00
mount_test.go vault: make Mount related core functions public 2015-03-14 17:26:59 -07:00
router.go vault: Router can check for matching mounts 2015-03-11 18:19:45 -07:00
router_test.go vault: Router can check for matching mounts 2015-03-11 18:19:45 -07:00
system.go vault: make Mount related core functions public 2015-03-14 17:26:59 -07:00
system_test.go vault: support remount 2015-03-12 12:09:30 -07:00
testing.go vault: public testing methods 2015-03-13 12:53:09 -07:00
util.go vault: Adding UUID method 2015-03-11 15:13:07 -07:00
util_test.go vault: Adding UUID method 2015-03-11 15:13:07 -07:00