Skip to content

Commit debf028

Browse files
author
Silas Davis
committed
Bump version, minor renames, comments, and docs
Signed-off-by: Silas Davis <[email protected]>
1 parent bdbc32e commit debf028

File tree

5 files changed

+52
-17
lines changed

5 files changed

+52
-17
lines changed

CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
# [Monax Hoard](https://github.com/monax/hoard) Changelog
2+
## [Unreleased]
3+
4+
5+
## [3.0.0] - 2019-02-26
6+
### Changed
7+
- [PROTO] Renamed symmetric grant SecretID to PublicID
8+
- [PROTO] Renamed openpgp grant ID to PrivateID
9+
10+
### Fixed
11+
- [GRANTS] Throw an exception if symmetric secret for ID cannot be found
12+
13+
### Added
14+
- [NODEJS] Added integration tests including test for symmetric secrets
15+
- [GRANTS] Added openpgp grants example
16+
- [CLI] Added ability to configure secrets on command line with hoard config <config> --secret
17+
-
18+
19+
220
## [2.0.0] - 2019-02-21
321
### Changed
422
- [PROTO] Upper case field names in protobuf
@@ -67,6 +85,8 @@ This is the first Hoard open source release and includes:
6785
- Hoar-Daemon hoard
6886
- Hoar-Control hoarctl CLI
6987

88+
[Unreleased]: https://github.com/monax/hoard/compare/v3.0.0...HEAD
89+
[3.0.0]: https://github.com/monax/hoard/compare/v2.0.0...v3.0.0
7090
[2.0.0]: https://github.com/monax/hoard/compare/v1.1.5...v2.0.0
7191
[1.1.5]: https://github.com/monax/hoard/compare/v1.1.4...v1.1.5
7292
[1.1.4]: https://github.com/monax/hoard/compare/v1.1.3...v1.1.4

NOTES.md

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
### Changed
2-
- [PROTO] Upper case field names in protobuf
3-
- [PROTO] Used gogoproto for types
4-
- [STORE] Go-cloud project for s3 store backend
5-
- [STORE] Minimized IPFS configuration
2+
- [PROTO] Renamed symmetric grant SecretID to PublicID
3+
- [PROTO] Renamed openpgp grant ID to PrivateID
4+
5+
### Fixed
6+
- [GRANTS] Throw an exception if symmetric secret for ID cannot be found
67

78
### Added
8-
- [STORE] Initial support for Azure backend thanks to go-cloud
9-
- [GRANTS] Interface and GRPC service
10-
- [GRANTS] Symmetric AES-GCM-based grants
11-
- [GRANTS] Asymmetric OpenPGP support
12-
- [GRANTS] Go-client (hoarctl) tooling
13-
- [NODEJS] Support for using the grant service + examples
14-
- [STORE] IPFS integration test
9+
- [NODEJS] Added integration tests including test for symmetric secrets
10+
- [GRANTS] Added openpgp grants example
11+
- [CLI] Added ability to configure secrets on command line with hoard config <config> --secret
12+
-
13+

hoard-js/examples.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ const example = async function (plaintextIn) {
5252

5353
// A plaintext grant allows us to reference the reference without
5454
// encryption for ease of later retrieval
55-
let grantIn = {
55+
let plaintextAndGrantSpec = {
5656
Plaintext: plaintextIn,
5757
GrantSpec: {
5858
Plaintext: {}
5959
}
6060
};
6161

62-
grant = await hoard.putseal(grantIn);
62+
grant = await hoard.putseal(plaintextAndGrantSpec);
6363
console.log(hoard.base64ify(grant));
6464

6565
// We can get the plaintext back by `unsealget`ing the grant
@@ -68,7 +68,7 @@ const example = async function (plaintextIn) {
6868

6969
// A symmetric grant allows us to encrypt the reference
7070
// through secrets configured on the hoard daemon
71-
grantIn = {
71+
plaintextAndGrantSpec = {
7272
Plaintext: plaintextIn,
7373
GrantSpec: {
7474
Symmetric: {
@@ -77,7 +77,7 @@ const example = async function (plaintextIn) {
7777
}
7878
};
7979

80-
grant = await hoard.putseal(grantIn);
80+
grant = await hoard.putseal(plaintextAndGrantSpec);
8181

8282
// Convert to string and back again
8383
grant = JSON.stringify(hoard.base64ify(grant));

hoard-js/test/grants.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ describe('Should be able to store plaintext under symmetric grant', function ()
3737
}
3838
}
3939
let hoard = new Hoard.Client('localhost:53431');
40-
assert.rejects(() => hoard.putseal(plaintextAndGrantSpec), Error);
40+
assert.rejects(() => hoard.putseal(plaintextAndGrantSpec), Error,
41+
"should fail when PublicID id not known to Hoard");
4142
});
4243
});

project/history.go

+16-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,22 @@ func FullVersion() string {
2929
// To cut a new release add a release to the front of this slice then run the
3030
// release tagging script: ./scripts/tag_release.sh
3131
var History relic.ImmutableHistory = relic.NewHistory("Monax Hoard", "https://github.com/monax/hoard").
32-
MustDeclareReleases(
32+
MustDeclareReleases("",
33+
``,
34+
"3.0.0 - 2019-02-26",
35+
`### Changed
36+
- [PROTO] Renamed symmetric grant SecretID to PublicID
37+
- [PROTO] Renamed openpgp grant ID to PrivateID
38+
39+
### Fixed
40+
- [GRANTS] Throw an exception if symmetric secret for ID cannot be found
41+
42+
### Added
43+
- [NODEJS] Added integration tests including test for symmetric secrets
44+
- [GRANTS] Added openpgp grants example
45+
- [CLI] Added ability to configure secrets on command line with hoard config <config> --secret
46+
-
47+
`,
3348
"2.0.0 - 2019-02-21",
3449
`### Changed
3550
- [PROTO] Upper case field names in protobuf

0 commit comments

Comments
 (0)