Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys: add minimal multi-tenancy support via Enclaves (#183)
This commit adds the most minimal multi-tenancy implementation. Now, KES contains an internal Vault. The Vault has one or multiple Enclaves. (For now just one). Each Enclave has its own key store, policies set and identity set. A client selects the enclave using the `?enclave=<name>` query parameter. For example: ``` https://127.0.0.1:7373/v1/key/create/my-key?enclave=tenant-1 ``` However, a stateless KES server will only support a single Enclave. Therefore, this commit only adds the most basic Vault implementation. Future Vault implementations (e.g. a standalone FS KES server) will use a more sophisticated Vault implementation that supports seal/unsealing etc. This commit mainly focuses on changing the current code base to use a `sys.Vault` and don't change any client-facing behavior. Signed-off-by: Andreas Auernhammer <hi@aead.dev>
- Loading branch information
Showing
13 changed files
with
1,138 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.