Skip to content
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

Licenses and trustee-attester fixes #888

Merged
merged 3 commits into from
Jan 27, 2025
Merged
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
1 change: 1 addition & 0 deletions attestation-agent/attestation-agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["The Attestation Agent Authors"]
publish = false
edition = "2021"
license = "Apache-2.0"

[[bin]]
name = "grpc-aa"
Expand Down
1 change: 1 addition & 0 deletions attestation-agent/attester/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["The Attestation Agent Authors"]
publish = false
edition = "2021"
license = "Apache-2.0"

[dependencies]
anyhow.workspace = true
Expand Down
1 change: 1 addition & 0 deletions attestation-agent/coco_keyprovider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["The Attestation Agent Authors"]
publish = false
edition = "2021"
license = "Apache-2.0"

[dependencies]
aes-gcm.workspace = true
Expand Down
1 change: 1 addition & 0 deletions attestation-agent/deps/crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["The Attestation Agent Authors"]
publish = false
edition = "2021"
license = "Apache-2.0"

[dependencies]
aes-gcm = { workspace = true, optional = true }
Expand Down
1 change: 1 addition & 0 deletions attestation-agent/deps/resource_uri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["The Attestation Agent Authors"]
publish = false
edition = "2021"
license = "Apache-2.0"

[dev-dependencies]
rstest.workspace = true
Expand Down
1 change: 1 addition & 0 deletions attestation-agent/deps/sev/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["The Attestation Agent Authors"]
publish = false
edition = "2021"
license = "Apache-2.0"

[dependencies]
anyhow.workspace = true
1 change: 1 addition & 0 deletions attestation-agent/kbc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["The Attestation Agent Authors"]
publish = false
edition = "2021"
license = "Apache-2.0"

[dependencies]
anyhow.workspace = true
Expand Down
1 change: 1 addition & 0 deletions attestation-agent/kbs_protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["The Attestation Agent Authors"]
publish = false
edition = "2021"
license = "Apache-2.0"

[dependencies]
anyhow.workspace = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ async fn main() -> Result<()> {
true => path,
};
let resource = ResourceUri::new("", &resource_path)?;
let (_token, _key) = client.get_token().await?; // attest first
let resource_bytes = client.get_resource(resource).await?;

println!("{}", STANDARD.encode(resource_bytes));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
.TH trustee-attester 1
.LO 1

.SH NAME
trustee-attester \- attest and fetch secrets from Trustee

.SH SYNOPSIS
.B trustee-attester
.RB OPTIONS
.RB get-resource \-\-path <RESOURCE_PATH>

.SH DESCRIPTION
trustee-attester is a simple client to easily attest and fetch secrets
(a.k.a confidential resources) from Trustee.

.IR get-resource
Do attestation and get a secret from Trustee.
RESOURCE_PATH is a of format <repo>/<type>/<name>

It is assumed that the secret was uploaded to Trustee, with the
exact same RESOURCE_PATH, before trustee-attester runs.

For more information look at
https://github.com/confidential-containers/guest-components/blob/main/attestation-agent/docs/KBS_URI.md

.SH OPTIONS
.RB \-\-url <URL-of-Trustee> [\-\-cert-file <path-to-certificate>]

.RB \-\-url <URL-of-Trustee>
Format of <URL-of-Trustee> is <protocol>://<host>:<port>
where <protocol> is
.B http
or
.B https

.RB \-\-cert-file <path-to-certificate>
Optional. When <protocol> is https, add a certificate to verify the Trustee server.

.SH EXAMPLES
trustee-attester --url http://10.0.0.4:50000 get-resource --path default/secrets/secret1

trustee-attester --url https://10.0.0.4:50000 --cert-file /etc/trustee-attester/server_cert.pem
get-resource --path myrepo/keys/mykey1

.SH NOTES
.B trustee-attester
is a part of https://github.com/confidential-containers/guest-components.

User must have privileges to request an attestation-report from the hardware.

.B Trustee
can be found here https://github.com/confidential-containers/trustee
1 change: 1 addition & 0 deletions confidential-data-hub/hub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "confidential-data-hub"
version = "0.1.0"
authors = ["The Confidential Container Authors"]
edition = "2021"
license = "Apache-2.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
1 change: 1 addition & 0 deletions image-rs/libs/test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "test-utils"
version = "0.1.0"
edition = "2021"
license = "Apache-2.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
Loading