Skip to content

Commit 91efd9a

Browse files
authored
Merge pull request #74 from Cosmian/release/1.0.0
## [1.0.0] - 2025-07-08 ### πŸš€ Features - Invert fips feature - Handle extension file to define x509 setup extensions for Google CSE keypairs create command ### βš™οΈ Miscellaneous Tasks - Display items ID on google keypairs creation command ### πŸ§ͺ Testing - Test with stackoverflow
2 parents c5338c0 + d8053d5 commit 91efd9a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+620
-1565
lines changed

β€Ž.github/reusable_scriptsβ€Ž

β€Ž.github/scripts/cargo_build.ps1β€Ž

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ function BuildProject {
99
[string]$BuildType
1010
)
1111

12+
$env:RUST_LOG = "cosmian_cli=error,cosmian_kms_server=error,test_kms_server=error"
1213
# Add target
1314
rustup target add x86_64-pc-windows-msvc
1415

@@ -19,13 +20,13 @@ function BuildProject {
1920
$env:FINDEX_TEST_DB = "sqlite-findex"
2021
if ($BuildType -eq "release")
2122
{
22-
cargo build -p cosmian_cli -p cosmian_pkcs11 --release --target x86_64-pc-windows-msvc
23-
cargo test -p cosmian_cli --release --target x86_64-pc-windows-msvc -- --nocapture --skip sql --skip redis --skip google_cse --skip hsm --skip kms
23+
cargo build --features "non-fips" -p cosmian_cli -p cosmian_pkcs11 --release --target x86_64-pc-windows-msvc
24+
cargo test --features "non-fips" -p cosmian_cli --release --target x86_64-pc-windows-msvc -- --nocapture --skip sql --skip redis --skip google_cse --skip hsm --skip kms
2425
}
2526
else
2627
{
27-
cargo build -p cosmian_cli -p cosmian_pkcs11 --target x86_64-pc-windows-msvc
28-
cargo test -p cosmian_cli --target x86_64-pc-windows-msvc -- --nocapture --skip sql --skip redis --skip google_cse --skip hsm --skip kms
28+
cargo build --features "non-fips" -p cosmian_cli -p cosmian_pkcs11 --target x86_64-pc-windows-msvc
29+
cargo test --features "non-fips" -p cosmian_cli --target x86_64-pc-windows-msvc -- --nocapture --skip sql --skip redis --skip google_cse --skip hsm --skip kms
2930
}
3031

3132
# Check binaries

β€Ž.github/scripts/cargo_build.shβ€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ set -ex
88
# export DEBUG_OR_RELEASE=debug
99
# export OPENSSL_DIR=/usr/local/openssl
1010
# export SKIP_SERVICES_TESTS="--skip hsm"
11-
# export FEATURES="fips"
11+
# export FEATURES="non-fips"
1212

1313
ROOT_FOLDER=$(pwd)
1414

1515
if [ "$DEBUG_OR_RELEASE" = "release" ]; then
1616
# First build the Debian and RPM packages. It must come at first since
17-
# after this step `cosmian` is built with custom features flags (fips for example).
1817
rm -rf target/"$TARGET"/debian
1918
rm -rf target/"$TARGET"/generate-rpm
2019
cargo build --target "$TARGET" --release
@@ -65,6 +64,7 @@ fi
6564

6665
# shellcheck disable=SC2086
6766
cargo build --target $TARGET $RELEASE \
67+
--features non-fips \
6868
-p cosmian_cli \
6969
-p cosmian_pkcs11
7070

@@ -84,6 +84,7 @@ export RUST_LOG="fatal,cosmian_cli=error,cosmian_findex_client=debug,cosmian_kms
8484

8585
# shellcheck disable=SC2086
8686
cargo test --target $TARGET $RELEASE $FEATURES \
87+
--features non-fips \
8788
-p cosmian_cli \
8889
-p cosmian_pkcs11 \
8990
-- --nocapture $SKIP_SERVICES_TESTS

β€Ž.github/scripts/release.shβ€Ž

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ set -ex
44

55
OLD_VERSION="$1"
66
NEW_VERSION="$2"
7+
# Use SED_BINARY from environment if set, otherwise default to 'sed'
8+
# On MacOs - install gnu-sed with brew
9+
SED_BINARY=${SED_BINARY:-sed}
710

8-
sed -i "s/$OLD_VERSION/$NEW_VERSION/g" Cargo.toml
9-
sed -i "s/$OLD_VERSION/$NEW_VERSION/g" Dockerfile
10-
sed -i "s/$OLD_VERSION/$NEW_VERSION/g" documentation/docs/index.md
11-
sed -i "s/$OLD_VERSION/$NEW_VERSION/g" documentation/docs/installation.md
11+
${SED_BINARY} -i "s/$OLD_VERSION/$NEW_VERSION/g" Cargo.toml
12+
${SED_BINARY} -i "s/$OLD_VERSION/$NEW_VERSION/g" Dockerfile
13+
${SED_BINARY} -i "s/$OLD_VERSION/$NEW_VERSION/g" documentation/docs/index.md
14+
${SED_BINARY} -i "s/$OLD_VERSION/$NEW_VERSION/g" documentation/docs/installation.md
1215

1316
cargo build
1417
git cliff -u -p CHANGELOG.md -t "$NEW_VERSION"

β€Ž.github/workflows/main_base.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- build
4545
uses: Cosmian/reusable_workflows/.github/workflows/push-artifacts.yml@develop
4646
with:
47-
project-name: client
47+
project-name: cli
4848
destination: cli # /mnt/packages/cli
4949
debug_or_release: ${{ inputs.debug_or_release }}
5050

β€Ž.pre-commit-config.yamlβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,10 @@ repos:
121121
- id: cargo-update
122122
stages: [manual]
123123
- id: cargo-machete
124-
- id: cargo-build
124+
- id: cargo-build-all
125125
- id: renew-cosmian-markdown
126126
- id: docker-compose-up
127+
- id: cargo-build
127128
- id: cargo-test
128129
args: [--, --skip, test_wrap_auth, --skip, google_cse, --skip, hsm]
129130
- id: cargo-build-all

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.0.0] - 2025-07-08
6+
7+
### πŸš€ Features
8+
9+
- Invert fips feature
10+
- Handle extension file to define x509 setup extensions for Google CSE keypairs create command
11+
12+
### βš™οΈ Miscellaneous Tasks
13+
14+
- Display items ID on google keypairs creation command
15+
16+
### πŸ§ͺ Testing
17+
18+
- Test with stackoverflow
19+
520
## [0.5.0] - 2025-06-04
621

722
### πŸš€ Features
@@ -40,17 +55,17 @@ All notable changes to this project will be documented in this file.
4055

4156
### πŸš€ Features
4257

43-
- Run KMS server with privileged users ([#40](https://github.com/Cosmian/client/pull/40)):
58+
- Run KMS server with privileged users ([#40](https://github.com/Cosmian/cli/pull/40)):
4459
- These users can grant or revoke access rights for other users
45-
- Support Kmip 1 ([#48](https://github.com/Cosmian/client/pull/48))
60+
- Support Kmip 1 ([#48](https://github.com/Cosmian/cli/pull/48))
4661

4762
### πŸ› Bug Fixes
4863

4964
- Cargo deny missing license
5065

5166
### 🚜 Refactor
5267

53-
- MemoryADT implementation for KmsEncryptionLayer ([#46](https://github.com/Cosmian/client/pull/46))
68+
- MemoryADT implementation for KmsEncryptionLayer ([#46](https://github.com/Cosmian/cli/pull/46))
5469

5570
### πŸ“š Documentation
5671

@@ -66,7 +81,7 @@ All notable changes to this project will be documented in this file.
6681

6782
### πŸš€ Features
6883

69-
- Add Oracle Key Vault integration ([#24](https://github.com/Cosmian/client/pull/24))
84+
- Add Oracle Key Vault integration ([#24](https://github.com/Cosmian/cli/pull/24))
7085

7186
### βš™οΈ Miscellaneous Tasks
7287

@@ -77,9 +92,9 @@ All notable changes to this project will be documented in this file.
7792

7893
### πŸš€ Features
7994

80-
- Delegates encryption to KMS ([#13](https://github.com/Cosmian/client/pull/13))
81-
- Add UI in React + WASM ([#21](https://github.com/Cosmian/client/pull/21))
82-
- Add CBC mode support for KMS encryption ([#23](https://github.com/Cosmian/client/pull/23))
95+
- Delegates encryption to KMS ([#13](https://github.com/Cosmian/cli/pull/13))
96+
- Add UI in React + WASM ([#21](https://github.com/Cosmian/cli/pull/21))
97+
- Add CBC mode support for KMS encryption ([#23](https://github.com/Cosmian/cli/pull/23))
8398

8499
### πŸ› Bug Fixes
85100

@@ -90,7 +105,7 @@ All notable changes to this project will be documented in this file.
90105

91106
### 🚜 Refactor
92107

93-
- Import all KMS CLI crates ([#18](https://github.com/Cosmian/client/pull/18))
108+
- Import all KMS CLI crates ([#18](https://github.com/Cosmian/cli/pull/18))
94109

95110
### βš™οΈ Miscellaneous Tasks
96111

@@ -101,11 +116,11 @@ All notable changes to this project will be documented in this file.
101116

102117
### πŸš€ Features
103118

104-
- Support Findex server v0.2 (including findex v7) ([#9](https://github.com/Cosmian/client/pull/9))
119+
- Support Findex server v0.2 (including findex v7) ([#9](https://github.com/Cosmian/cli/pull/9))
105120

106121
### πŸ“š Documentation
107122

108-
- Edit authentication section ([#7](https://github.com/Cosmian/client/pull/7))
123+
- Edit authentication section ([#7](https://github.com/Cosmian/cli/pull/7))
109124

110125
### πŸ§ͺ Testing
111126

0 commit comments

Comments
Β (0)