From 57eeac94107c797d1088c30a25ffa2baf8321e6b Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Wed, 22 Jul 2026 20:19:44 +0200 Subject: [PATCH 1/3] Update to trussed v0.2 --- backend/CHANGELOG.md | 2 +- backend/Cargo.toml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/CHANGELOG.md b/backend/CHANGELOG.md index 7e61525..57a6505 100644 --- a/backend/CHANGELOG.md +++ b/backend/CHANGELOG.md @@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [0.2.0-rc.1]: https://github.com/trussed-dev/trussed-auth/releases/tag/backend-v0.2.0-rc.1 -- Update to `trussed` v0.2.0-rc.1 +- Update to `trussed` v0.2.0 ## [0.1.0][] - 2026-03-23 diff --git a/backend/Cargo.toml b/backend/Cargo.toml index b96e5d0..0dca4bc 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -23,15 +23,15 @@ rand_core = "0.6.4" serde-byte-array = "0.1.2" sha2 = { version = "0.10.6", default-features = false } subtle = { version = "2.4.1", default-features = false } -trussed = { version = "=0.2.0-rc.1", default-features = false, features = ["crypto-client", "filesystem-client", "hmac-sha256", "serde-extensions"] } +trussed = { version = "0.2", default-features = false, features = ["crypto-client", "filesystem-client", "hmac-sha256", "serde-extensions"] } trussed-auth = "0.5" [dev-dependencies] -admin-app = { git = "https://github.com/Nitrokey/admin-app.git", tag = "v0.1.0-nitrokey.22", features = ["migration-tests"] } +admin-app = { version = "0.2", features = ["migration-tests"] } heapless-bytes = "0.5" hex-literal = "0.4.1" quickcheck = { version = "1.0.3", default-features = false } rand_core = { version = "0.6.4", default-features = false, features = ["getrandom"] } serde_cbor = { version = "0.11.2", features = ["std"] } serde_test = "1.0.176" -trussed = { version = "=0.2.0-rc.1", default-features = false, features = ["crypto-client", "filesystem-client", "hmac-sha256", "serde-extensions", "virt"] } +trussed = { version = "0.2", default-features = false, features = ["crypto-client", "filesystem-client", "hmac-sha256", "serde-extensions", "virt"] } From b3704ca9d8642e47c625cb073d665d6509669870 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Wed, 22 Jul 2026 20:20:28 +0200 Subject: [PATCH 2/3] Add trusted publishing for trussed-auth-backend --- .github/workflows/cd.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 33e5284..80191d6 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -15,9 +15,22 @@ jobs: permissions: id-token: write steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: rust-lang/crates-io-auth-action@b7e9a28eded4986ec6b1fa40eeee8f8f165559ec # v1.0.3 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: rust-lang/crates-io-auth-action@c6f97d42243bad5fab37ca0427f495c86d5b1a18 # v1.0.5 id: auth - run: cargo publish --package trussed-auth env: CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} + publish-trussed-auth-backend: + runs-on: ubuntu-latest + if: ${{ startsWith(github.event.release.tag_name, 'backend-') }} + 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 --package trussed-auth-backend + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} From 08e35917c68ac4a176543bf3b04634aa7699288c Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Wed, 22 Jul 2026 20:21:33 +0200 Subject: [PATCH 3/3] Release trussed-auth-backend v0.2.0 --- backend/CHANGELOG.md | 4 ++-- backend/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/CHANGELOG.md b/backend/CHANGELOG.md index 57a6505..791edb6 100644 --- a/backend/CHANGELOG.md +++ b/backend/CHANGELOG.md @@ -13,9 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - -## [0.2.0-rc.1][] - 2026-06-09 +## [0.2.0][] - 2026-07-22 -[0.2.0-rc.1]: https://github.com/trussed-dev/trussed-auth/releases/tag/backend-v0.2.0-rc.1 +[0.2.0]: https://github.com/trussed-dev/trussed-auth/releases/tag/backend-v0.2.0 - Update to `trussed` v0.2.0 diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 0dca4bc..8a0e680 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -3,7 +3,7 @@ [package] name = "trussed-auth-backend" -version = "0.2.0-rc.1" +version = "0.2.0" description = "Authentication backend for Trussed" authors.workspace = true edition.workspace = true