Skip to content

Commit

Permalink
trustee-attester: attest before get-resource
Browse files Browse the repository at this point in the history
Without it rcar_client complains:
    Authenticating with KBS failed. Perform a new RCAR handshake

No need to keep _token as the kbs_protocol client keeps it.

Signed-off-by: Uri Lublin <[email protected]>
  • Loading branch information
uril authored and mkulke committed Jan 27, 2025
1 parent 3e46e47 commit c51c1dc
Showing 1 changed file with 1 addition and 0 deletions.
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

0 comments on commit c51c1dc

Please sign in to comment.