-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The plugin can create a Nebula certificate authority to provide credentials for CoCo PODs (or VMs) that want to join a Nebula encrypted overlay network. A credential is provided only for attested CoCo PODs. The steps below can be used to build and start trustee with support for the 'nebula-ca' plugin. The first step builds the KBS with the 'nebula-ca' cargo feature enabled. The second step configures the plugin as explained in the kbs/docs/config.md. $ docker compose build --build-arg NEBULA_CA=true $ cat >> kbs/config/docker-compose/kbs-config.toml << EOF [[plugins]] name = "nebula-ca" nebula_cert_bin_path = "/usr/local/bin/nebula-cert" work_dir = "/opt/confidential-containers/kbs/nebula-ca" [plugins.self_signed_ca] name = "Nebula CA for Trustee KBS" EOF $ docker compose up The nebula-ca is a self signed certificate authority. When the plugin is started, it will create the CA key and certificate based on the configuration provided in the kbs-config.toml file, unless the ${work_dir}/ca/ca.{key,crt} already exists. A credential can be requested via GET /kbs/v0/nebula-ca/credential. Additional parameters can be provided via query string: /// Required: name of the cert, usually hostname or podname name: String, /// Required: IPv4 address and network in CIDR notation to assign the cert ip: String, /// Optional: how long the cert should be valid for. /// The default is 1 second before the signing cert expires. /// Valid time units are seconds: "s", minutes: "m", hours: "h". duration: Option<String>, /// Optional: comma separated list of groups. groups: Option<String>, /// Optional: comma separated list of ipv4 address and network in CIDR notation. /// Subnets this cert can serve for subnets: Option<String>, For example, the GET below provides two required parameters via query string: name and IP address (CIDR notation). Other examples can be found in the unit test cases defined in the nebula_ca.rs file. GET /kbs/v0/nebula-ca/credential?name=podA&ip=10.9.8.2/21 Signed-off-by: Claudio Carvalho <[email protected]>
- Loading branch information
Showing
10 changed files
with
542 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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.