Skip to content

Commit f91a917

Browse files
authored
Prepare cdoc2-java-ref-impl version 1.4.0 (#8)
* Prepare cdoc2-java-ref-impl release v1.4.0
1 parent 1a330ef commit f91a917

File tree

8 files changed

+43
-16
lines changed

8 files changed

+43
-16
lines changed

CHANGELOG.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
11
# Changelog
22

3-
## [1.4.0] Key label formatting (2024-XX-XX)
3+
## [1.4.0] Key label formatting (2024-09-02)
4+
5+
### Features
6+
7+
* Support for [machine-readable KeyLabel format](https://open-eid.github.io/CDOC2/1.1/02_protocol_and_cryptography_spec/appendix_d_keylabel/)
8+
- When encrypting, then this formatted key label is enabled by default. Can be disabled by setting `ee.cyber.cdoc2.key-label.machine-readable-format.enabled=false` system property (`-D`)
9+
- When decrypting, then both formatted and unformatted key label field versions are supported.
10+
11+
### Bug Fixes
12+
13+
* Fix cdoc2-cli encrypting functionality for SymmetricKey (`--secret` parameter). Bug was introduced with 1.1.0 release
14+
- Rewrote symmetric key (secret) and password handling in cdoc2-cli/cdoc2-lib
15+
- Bumped cdoc2-lib major version to `2.0.0`, as broken classes (`FormattedOptionParts`) were removed and replaced with a new ones (`LabeledPassword` and `LabeledSecret`)
16+
- cdoc2-lib was not broken, when using `EncryptionKeyMaterial#fromSecret(SecretKey,String)` directly (without `FormattedOptionParts`)
17+
- broken example cdoc2 files were removed from `test/testvectors` and replaced with a correct ones
18+
* Fix cdoc2-client ApiClient timeouts (`cdoc2.client.server.*-timeout` were not working)
19+
* Allow loading [pkcs11 (smart-card) test properties](README.md#pkcs11-tests) from file system (previously only classpath was working)
420

521
### Internal
622

7-
* Upgraded Spring 3.2.5 -> 3.3.3 + other third-party dependency updates
23+
* Third-party dependency updates to latest
24+
* Added GitHub workflows for building and releasing
25+
* Resolve issues reported by SonarCloud/SonarQube
26+
* Update client and server certificates used for unit-tests. Add scripts for future updates
827

928
## [1.3.0] '/key-capsules' OAS v2.1.0 support (2024-07-02)
1029

VERSIONING.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ General release procedure:
5353
* `prepare_release.sh` (changes versions to RELEASE versions and runs tests)
5454
* Verify changes (`git diff`)
5555
* Edit CHANGELOG.md
56-
* `make_release.sh` (`git commit; git push` RELEASE branch and `mvn deploy` RELEASE artifacts)
56+
* `make_release.sh -d` (`git commit; git push` to RELEASE branch)
5757

5858
This will change -SNAPSHOT version to release version, update dependencies in all modules to latest
5959
non-SNAPSHOT version. Build, test, create release branch, push changes, deploy maven artifacts.
@@ -64,8 +64,8 @@ version in parent pom before changing other versions.
6464

6565
If everything went well, then
6666
* release branch was created with name 'release_v<parent-pom.version>'
67-
* Maven artifacts with release version are in Maven repository
6867
* original branch is checked out ('master' usually)
68+
* Nothing is commited to main branch ('master')
6969

7070
To finish create squash merge from release branch to main branch
7171
```bash
@@ -74,6 +74,10 @@ git commit -m "Squashed commit from $RELEASE_BRANCH"
7474
git push $GIT_REMOTE $GIT_BRANCH
7575
```
7676

77+
or create GitHub PR (recommended) from release branch and merge from GitHub.
78+
79+
Finish by [publishing](README.md#publishing) deliverables from a release tag.
80+
7781
### Release cdoc2-java-ref-impl and cdoc2-capsule-server
7882

7983
Since test code for cdoc2-capsule-server depends on cdoc2-java-ref-impl `cdoc2-lib` module and

cdoc2-cli/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<parent>
55
<artifactId>cdoc2</artifactId>
66
<groupId>ee.cyber.cdoc2</groupId>
7-
<version>1.4.0-SNAPSHOT</version>
7+
<version>1.4.0</version>
88
</parent>
99

1010
<artifactId>cdoc2-cli</artifactId>
11-
<version>1.5.0-SNAPSHOT</version>
11+
<version>1.5.0</version>
1212
<description>Command line utility to create/process CDOC2 files</description>
1313

1414
<properties>
@@ -42,7 +42,7 @@
4242
<dependency>
4343
<groupId>ee.cyber.cdoc2</groupId>
4444
<artifactId>cdoc2-lib</artifactId>
45-
<version>2.0.0-SNAPSHOT</version>
45+
<version>2.0.0</version>
4646
</dependency>
4747
</dependencies>
4848

cdoc2-client/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<parent>
55
<artifactId>cdoc2</artifactId>
66
<groupId>ee.cyber.cdoc2</groupId>
7-
<version>1.4.0-SNAPSHOT</version>
7+
<version>1.4.0</version>
88
</parent>
99

1010
<artifactId>cdoc2-client</artifactId>
11-
<version>1.5.0-SNAPSHOT</version>
11+
<version>1.5.0</version>
1212
<description>CDOC2 server client generation from openapi specification</description>
1313

1414
<properties>

cdoc2-lib/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<parent>
44
<artifactId>cdoc2</artifactId>
55
<groupId>ee.cyber.cdoc2</groupId>
6-
<version>1.4.0-SNAPSHOT</version>
6+
<version>1.4.0</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99

1010
<artifactId>cdoc2-lib</artifactId>
11-
<version>2.0.0-SNAPSHOT</version>
11+
<version>2.0.0</version>
1212
<description>CDOC2 creation and processing library</description>
1313

1414
<properties>
@@ -20,13 +20,13 @@
2020
<dependency>
2121
<groupId>ee.cyber.cdoc2</groupId>
2222
<artifactId>cdoc2-schema</artifactId>
23-
<version>1.3.0-SNAPSHOT</version>
23+
<version>1.3.0</version>
2424
</dependency>
2525

2626
<dependency>
2727
<groupId>ee.cyber.cdoc2</groupId>
2828
<artifactId>cdoc2-client</artifactId>
29-
<version>1.5.0-SNAPSHOT</version>
29+
<version>1.5.0</version>
3030
</dependency>
3131

3232
<dependency>

cdoc2-schema/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<modelVersion>4.0.0</modelVersion>
44

55
<parent>
6-
<version>1.4.0-SNAPSHOT</version>
6+
<version>1.4.0</version>
77
<groupId>ee.cyber.cdoc2</groupId>
88
<artifactId>cdoc2</artifactId>
99
</parent>
1010

1111
<artifactId>cdoc2-schema</artifactId>
12-
<version>1.3.0-SNAPSHOT</version>
12+
<version>1.3.0</version>
1313

1414
<description>CDOC2 flatbuffer schemas and related functionality </description>
1515

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<modelVersion>4.0.0</modelVersion>
55

6-
<version>1.4.0-SNAPSHOT</version>
6+
<version>1.4.0</version>
77
<groupId>ee.cyber.cdoc2</groupId>
88
<artifactId>cdoc2</artifactId>
99
<description>CDOC2 reference implementation </description>

prepare_release.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,9 @@ done
3434

3535
# replace module -SNAPSHOT version with release version (non-SNAPSHOT)
3636
mvn versions:set -DremoveSnapshot
37+
mvn versions:set -DremoveSnapshot -pl cdoc2-schema
38+
mvn versions:set -DremoveSnapshot -pl cdoc2-client
39+
mvn versions:set -DremoveSnapshot -pl cdoc2-lib
40+
mvn versions:set -DremoveSnapshot -pl cdoc2-cli
3741
# build and install into local maven package repository
3842
mvn install

0 commit comments

Comments
 (0)