From c6cbc6f69b9c9604117785323120e81510f7ef28 Mon Sep 17 00:00:00 2001 From: jbtrystram Date: Wed, 6 Jul 2022 15:51:13 +0200 Subject: [PATCH] release 0.10.0 --- CHANGELOG.md | 14 ++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 25 +++++++++++-------------- docs.md | 2 -- src/stream.rs | 3 +-- src/util/mod.rs | 2 +- 7 files changed, 29 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af10885..fda178e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +# Version 0.10.0 + +## New features +- Added an interactive / terminal mode : start it with `drg --interactive` +- Added an `--insecure` flag for `drg stream` allowing to connect to servers using self-signed certificates (e.g. drogue-server) + +## Misc. changes +- Added missing JSON output for `login`, `config` and `whoami` +- Added support for refreshing the auth token in `drg stream` to keep alive the connection + +## Dependencies +- Updated to tungstenite 0.17.2 +- updated to tiny_http 0.8.0 + # Version 0.9.0 ## New features diff --git a/Cargo.lock b/Cargo.lock index 2233003..6c6a50a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -458,7 +458,7 @@ checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" [[package]] name = "drg" -version = "0.9.0" +version = "0.10.0" dependencies = [ "anyhow", "assert_cmd", diff --git a/Cargo.toml b/Cargo.toml index 7bb54ea..48ae8a3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drg" -version = "0.9.0" +version = "0.10.0" authors = ["Jean-Baptiste Trystram "] edition = "2021" license = "Apache-2.0" diff --git a/README.md b/README.md index 10ea215..96f1c77 100644 --- a/README.md +++ b/README.md @@ -179,7 +179,7 @@ This will create an alias : "CN=, O=Drogue IoT, OU=" for the de You can see the stream of events for a drogue-cloud application using : ``` -drg stream +drg stream --app # or if you have a default application set in your context : drg stream ``` @@ -188,24 +188,21 @@ drg stream You can create and manage access tokens with the admin subcommand : ``` -drg admin token create -drg admin token list -drg admin token delete +drg create token +drg create token --description "some text" +drg get token +drg delete token ``` Drg can also transfer apps ownership and manage apps members : ``` -drg admin member add --role reader -drg admin member list -drg admin member edit +drg create member --role reader --application +drg get member +drg edit member #Transfer operations -drg admin transfer init -drg admin transfer cancel +drg transfer init --application +drg transfer cancel # The new owner can accept the transfer : -drg admin transfer accept +drg transfer accept ``` - - -In no particular order here are the following things that we would like to add to `drg` : - * Json patch operations \ No newline at end of file diff --git a/docs.md b/docs.md index 6a09eba..f499e11 100644 --- a/docs.md +++ b/docs.md @@ -78,5 +78,3 @@ Set default properties: - Version information: `drg version` - Print cluster address, version and default app(if any): `drg whoami` - -![img.png](img.png) \ No newline at end of file diff --git a/src/stream.rs b/src/stream.rs index 1e3e3ff..6cd79d7 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -115,8 +115,7 @@ fn insecure_stream( ) -> Result<(tungstenite::Connector, TcpStream)> { let connector = TlsConnector::builder() .danger_accept_invalid_certs(true) - .build() - .unwrap(); + .build()?; let stream = TcpStream::connect(address.as_slice())?; let connector: tungstenite::Connector = tungstenite::Connector::NativeTls(connector); diff --git a/src/util/mod.rs b/src/util/mod.rs index 287b4a2..6d1e2f5 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -33,7 +33,7 @@ use tempfile::Builder; use url::Url; pub const VERSION: &str = crate_version!(); -pub const COMPATIBLE_DROGUE_VERSION: &str = "0.9.0"; +pub const COMPATIBLE_DROGUE_VERSION: &str = "0.10.0"; pub fn show_json(payload: &Value) { write_colored_json(payload, &mut stdout().lock()).ok();