Skip to content

Commit 00be281

Browse files
authored
[release/6.x] Backport SnapshotCreate operator feature (#7767) (#7773)
1 parent 8d3e6d5 commit 00be281

6 files changed

Lines changed: 21 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [6.0.27]
9+
10+
[6.0.27]: https://github.com/microsoft/CCF/releases/tag/ccf-6.0.27
11+
12+
### Added
13+
14+
- Backport the SnapshotCreate operator feature to preserve LTS compatibility on join with #7767 (#7773)
15+
816
## [6.0.26]
917

1018
[6.0.26]: https://github.com/microsoft/CCF/releases/tag/ccf-6.0.26

doc/host_config_schema/cchost_config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
"enabled_operator_features": {
181181
"type": "array",
182182
"items": {
183-
"enum": ["SnapshotRead", "LedgerChunkRead"],
183+
"enum": ["SnapshotRead", "LedgerChunkRead", "SnapshotCreate"],
184184
"type": "string"
185185
},
186186
"description": "An array of features which should be enabled on this interface, providing access to endpoints with specific security or performance constraints."

doc/schemas/gov_openapi.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,8 @@
527527
"items": {
528528
"enum": [
529529
"SnapshotRead",
530-
"LedgerChunkRead"
530+
"LedgerChunkRead",
531+
"SnapshotCreate"
531532
],
532533
"type": "string"
533534
},
@@ -676,7 +677,8 @@
676677
"items": {
677678
"enum": [
678679
"SnapshotRead",
679-
"LedgerChunkRead"
680+
"LedgerChunkRead",
681+
"SnapshotCreate"
680682
],
681683
"type": "string"
682684
},
@@ -2950,4 +2952,4 @@
29502952
}
29512953
},
29522954
"servers": []
2953-
}
2955+
}

doc/schemas/node_openapi.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,8 @@
606606
"OperatorFeature": {
607607
"enum": [
608608
"SnapshotRead",
609-
"LedgerChunkRead"
609+
"LedgerChunkRead",
610+
"SnapshotCreate"
610611
],
611612
"type": "string"
612613
},
@@ -1829,4 +1830,4 @@
18291830
}
18301831
},
18311832
"servers": []
1832-
}
1833+
}

include/ccf/service/operator_feature.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ namespace ccf::endpoints
99
enum class OperatorFeature : uint8_t
1010
{
1111
SnapshotRead,
12-
LedgerChunkRead
12+
LedgerChunkRead,
13+
SnapshotCreate
1314
};
1415

1516
DECLARE_JSON_ENUM(
1617
OperatorFeature,
1718
{
1819
{OperatorFeature::SnapshotRead, "SnapshotRead"},
1920
{OperatorFeature::LedgerChunkRead, "LedgerChunkRead"},
21+
{OperatorFeature::SnapshotCreate, "SnapshotCreate"},
2022
});
2123
}

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "ccf"
7-
version = "6.0.26"
7+
version = "6.0.27"
88
authors = [
99
{ name="CCF Team", email="CCF-Sec@microsoft.com" },
1010
]

0 commit comments

Comments
 (0)