Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions kbs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ pkcs11 = ["cryptoki"]
# that want to join a Nebula overlay network
nebula-ca-plugin = []

# Use PKI Vault plugin to provide credentials for mutual TLS communication
# between a server running in the sandbox (pod) and a client (admin or owner)
pki-vault-plugin = []

# Use HashiCorp Vault KV v1 as KBS backend
vault = ["vaultrs"]

Expand Down
6 changes: 6 additions & 0 deletions kbs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ AS_TYPE ?= coco-as
ALIYUN ?= false
NEBULA_CA_PLUGIN ?= false
VAULT ?= false
SPLITAPI_PLUGIN ?= false
PKI_VAULT_PLUGIN ?= false

BUILD_ARCH := $(shell uname -m)
ARCH ?= $(shell uname -m)
Expand Down Expand Up @@ -56,6 +58,10 @@ ifeq ($(NEBULA_CA_PLUGIN), true)
FEATURES += nebula-ca-plugin
endif

ifeq ($(PKI_VAULT_PLUGIN), true)
FEATURES += pki-vault-plugin
endif

ifeq ($(VAULT), true)
FEATURES += vault
endif
Expand Down
147 changes: 147 additions & 0 deletions kbs/docs/plugins/pki_vault.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions kbs/src/plugins/implementations/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@
pub mod nebula_ca;
#[cfg(feature = "pkcs11")]
pub mod pkcs11;
#[cfg(feature = "pki-vault-plugin")]
pub mod pki_vault;
pub mod resource;
pub mod sample;

#[cfg(feature = "nebula-ca-plugin")]
pub use nebula_ca::{NebulaCaPlugin, NebulaCaPluginConfig};
#[cfg(feature = "pkcs11")]
pub use pkcs11::{Pkcs11Backend, Pkcs11Config};
#[cfg(feature = "pki-vault-plugin")]
pub use pki_vault::{PKIVaultPlugin, PKIVaultPluginConfig};
pub use resource::{RepositoryConfig, ResourceStorage};
pub use sample::{Sample, SampleConfig};
Loading
Loading