-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend KBS to provide the resources required to create an encrypted overlay network #451
base: main
Are you sure you want to change the base?
Changes from all commits
341a318
aaf1590
6a8cc31
baf0bd6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,14 @@ sockets = ["0.0.0.0:8080"] | |
auth_public_key = "/opt/confidential-containers/kbs/user-keys/public.pub" | ||
insecure_http = true | ||
|
||
[repository_config] | ||
type = "LocalFs" | ||
dir_path = "/opt/confidential-containers/kbs/storage" | ||
|
||
[plugin_manager_config] | ||
work_dir = "/opt/confidential-containers/kbs/plugin" | ||
enabled_plugins = [] | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This would have an overall workdir for all plugins. Maybe we should let every single plugin has its own configs, like the workdir of them own? Some config format in my mind insecure_http = true
insecure_api = true
[attestation_token_config]
attestation_token_type = "CoCo"
[grpc_config]
as_addr = "http://127.0.0.1:50004"
pool_size = 200
[repository_config]
type = "LocalFs"
dir_path = "/opt/confidential-containers/kbs/storage"
[plugins.nebula]
config_path = "/etc/kbs/plugin/nebula-config.toml"
[plugins.another]
config_a=xxx
config_b=yyy If only This could be implemented via #[derive(Clone, Debug, Deserialize)]
pub struct KbsConfig {
...
pub plugins: Option<PluginManagerConfig>,
}
#[derive(Clone, Debug, Deserialize)]
struct PluginManagerConfig {
#[cfg(feature = "nebula-plugin")]
nebula: Option<NebulaConfig>,
#[cfg(feature = "another-plugin")]
another: Option<AnotherPluginConfig>,
}
#[cfg(feature = "nebula-plugin")]
#[derive(Clone, Debug, Deserialize)]
struct NebulaConfig {
config_path: String,
}
#[cfg(feature = "another-plugin")]
#[derive(Clone, Debug, Deserialize)]
struct AnotherPluginConfig {
config_a: String,
config_b: String,
} |
||
[attestation_token_config] | ||
attestation_token_type = "CoCo" | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also update the version of
kms
as they come from the same repo.