Skip to content
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
15 changes: 15 additions & 0 deletions .github/workflows/cd-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Continuous delivery - test

on:
pull_request:
# opened, reopenened, synchronize are the default types for pull_request
# labeled, unlabeled ensure this check is also run if a label is added or removed
types: [opened, reopened, synchronize, labeled, unlabeled]

jobs:
test-publish:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-publish-check') }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- run: cargo publish --dry-run
20 changes: 20 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Continuous delivery - crates.io

on:
release:
types: [published]
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
environment: crates.io
permissions:
id-token: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: rust-lang/crates-io-auth-action@c6f97d42243bad5fab37ca0427f495c86d5b1a18 # v1.0.5
id: auth
- run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@

## [Unreleased][]

[Unreleased]: https://github.com/trussed-dev/piv-authenticator/compare/v0.6.0...HEAD
[Unreleased]: https://github.com/trussed-dev/piv-authenticator/compare/v0.7.0...HEAD

-

## [v0.7.0][] (2026-08-17)

[v0.7.0]: https://github.com/trussed-dev/piv-authenticator/releases/tag/v0.7.0

- Move the test setup into a local dependency, use released dependencies and prepare a release to crates.io.

## [v0.6.0][] (2026-03-25)

[v0.6.0]: https://github.com/trussed-dev/piv-authenticator/releases/tag/v0.6.0
Expand Down
8 changes: 1 addition & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = ["dev-vpicc"]

[package]
name = "piv-authenticator"
version = "0.6.0"
version = "0.7.0"
authors = ["Nicolas Stalder <n@stalder.io>", "Nitrokey GmbH"]
edition = "2021"
license = "Apache-2.0 OR MIT"
Expand Down Expand Up @@ -73,12 +73,6 @@ log-info = []
log-warn = []
log-error = []

[patch.crates-io]
trussed = { git = "https://github.com/trussed-dev/trussed", rev = "0f8df68be879acdde1f8cf428c11e5d29692a47b" }
trussed-auth-backend = { git = "https://github.com/trussed-dev/trussed-auth", tag = "backend-v0.1.0" }
trussed-rsa-alloc = { git = "https://github.com/trussed-dev/trussed-rsa-backend.git", tag = "v0.4.0" }
trussed-staging = { git = "https://github.com/trussed-dev/trussed-staging.git", tag = "v0.4.0" }

[profile.dev.package.rsa]
opt-level = 2

Expand Down
9 changes: 5 additions & 4 deletions dev-vpicc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ heapless = "0.9"
vpicc = "0.1.0"
piv-authenticator = { path = ".." }
log = "0.4"
trussed-rsa-alloc = { version = "0.4", features = ["raw"] }
trussed = { version = "0.1", default-features = false, features = ["aes256-cbc", "chacha8-poly1305", "crypto-client", "ed255", "filesystem-client", "p256", "p384", "shared-secret", "serde-extensions", "tdes", "x255", "virt"] }
trussed-auth-backend = "0.1.0"
trussed-staging = { version = "0.4", features = ["chunked", "hpke", "wrap-key-to-file"], default-features = false }
trussed-rsa-alloc = { version = "0.5", features = ["raw"] }
trussed = { version = "0.2", default-features = false, features = ["aes256-cbc", "chacha8-poly1305", "crypto-client", "ed255", "filesystem-client", "p256", "p384", "shared-secret", "serde-extensions", "tdes", "x255", "virt"] }
trussed-auth-backend = "0.2"
trussed-core = "0.2"
trussed-staging = { version = "0.5", features = ["chunked", "hpke", "wrap-key-to-file"], default-features = false }
trussed-wrap-key-to-file = "0.3.0"
trussed-hpke = "0.3.0"
trussed-chunked = "0.3.0"
Expand Down
15 changes: 8 additions & 7 deletions dev-vpicc/src/virt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,20 @@
pub mod dispatch {

use trussed::{
api::{Reply, Request, reply, request},
backend::{Backend as _, BackendId},
error::Error,
platform::Platform,
serde_extensions::{ExtensionDispatch, ExtensionId, ExtensionImpl},
service::ServiceResources,
types::{Bytes, Context, Location},
types::Context,
};
use trussed_auth::AuthExtension;
use trussed_auth_backend::{AuthBackend, AuthContext, FilesystemLayout, MAX_HW_KEY_LEN};
use trussed_chunked::ChunkedExtension;
use trussed_core::{
Error,
api::{Reply, Request, reply, request},
types::{Bytes, Location},
};
use trussed_hpke::HpkeExtension;
use trussed_rsa_alloc::SoftwareRsa;
use trussed_staging::{StagingBackend, StagingContext};
Expand Down Expand Up @@ -206,10 +209,8 @@ pub mod dispatch {
}

use std::path::PathBuf;
use trussed::{
types::Bytes,
virt::{self, Client, StorageConfig, StoreConfig},
};
use trussed::virt::{self, Client, StorageConfig, StoreConfig};
use trussed_core::types::Bytes;

/// Client type using a dispatcher with the backends required by opcard
pub type VirtClient<'a> = Client<'a, dispatch::Dispatch>;
Expand Down
Loading