Skip to content

Commit f7370bd

Browse files
authored
Merge branch 'master' into feat/influxdb-connector
2 parents e3aec78 + cea62a9 commit f7370bd

File tree

23 files changed

+38
-79
lines changed

23 files changed

+38
-79
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ hwlocality = "1.0.0-alpha.11"
165165
iceberg = "0.9.0"
166166
iceberg-catalog-rest = "0.9.0"
167167
iceberg-storage-opendal = "0.9.0"
168-
iggy = { path = "core/sdk", version = "0.9.3-edge.1" }
168+
iggy = { path = "core/sdk", version = "0.9.4-edge.1" }
169169
iggy-cli = { path = "core/cli", version = "0.11.3-edge.1" }
170-
iggy_binary_protocol = { path = "core/binary_protocol", version = "0.9.3-edge.1" }
171-
iggy_common = { path = "core/common", version = "0.9.3-edge.1" }
170+
iggy_binary_protocol = { path = "core/binary_protocol", version = "0.9.4-edge.1" }
171+
iggy_common = { path = "core/common", version = "0.9.4-edge.1" }
172172
iggy_connector_sdk = { path = "core/connectors/sdk", version = "0.2.1-edge.1" }
173173
integration = { path = "core/integration" }
174174
journal = { path = "core/journal" }

DEPENDENCIES.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,14 +454,14 @@ ident_case: 1.0.1, "Apache-2.0 OR MIT",
454454
idna: 1.1.0, "Apache-2.0 OR MIT",
455455
idna_adapter: 1.2.1, "Apache-2.0 OR MIT",
456456
if_chain: 1.0.3, "Apache-2.0 OR MIT",
457-
iggy: 0.9.3-edge.1, "Apache-2.0",
457+
iggy: 0.9.4-edge.1, "Apache-2.0",
458458
iggy-bench: 0.4.1-edge.1, "Apache-2.0",
459459
iggy-bench-dashboard-server: 0.6.3-edge.1, "Apache-2.0",
460460
iggy-cli: 0.11.3-edge.1, "Apache-2.0",
461461
iggy-connectors: 0.3.2-edge.1, "Apache-2.0",
462462
iggy-mcp: 0.3.2-edge.1, "Apache-2.0",
463-
iggy_binary_protocol: 0.9.3-edge.1, "Apache-2.0",
464-
iggy_common: 0.9.3-edge.1, "Apache-2.0",
463+
iggy_binary_protocol: 0.9.4-edge.1, "Apache-2.0",
464+
iggy_common: 0.9.4-edge.1, "Apache-2.0",
465465
iggy_connector_elasticsearch_sink: 0.3.2-edge.1, "Apache-2.0",
466466
iggy_connector_elasticsearch_source: 0.3.2-edge.1, "Apache-2.0",
467467
iggy_connector_iceberg_sink: 0.3.2-edge.1, "Apache-2.0",

bdd/python/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/binary_protocol/Cargo.toml

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

1818
[package]
1919
name = "iggy_binary_protocol"
20-
version = "0.9.3-edge.1"
20+
version = "0.9.4-edge.1"
2121
description = "Wire protocol types and codec for the Iggy binary protocol. Shared between server and SDK."
2222
edition = "2024"
2323
license = "Apache-2.0"

core/cli/src/commands/binary_personal_access_tokens/create_personal_access_token.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use iggy_common::Client;
2323
use iggy_common::PersonalAccessTokenExpiry;
2424
use iggy_common::create_personal_access_token::CreatePersonalAccessToken;
2525
use keyring::Entry;
26-
use secrecy::ExposeSecret;
2726
use tracing::{Level, event};
2827

2928
pub struct CreatePersonalAccessTokenCmd {
@@ -85,7 +84,7 @@ impl CliCommand for CreatePersonalAccessTokenCmd {
8584
if self.store_token {
8685
let server_address = format!("iggy:{}", self.server_address);
8786
let entry = Entry::new(&server_address, &self.create_token.name)?;
88-
entry.set_password(token.token.expose_secret())?;
87+
entry.set_password(&token.token)?;
8988
event!(target: PRINT_TARGET, Level::DEBUG,"Stored token under service: {} and name: {}", server_address,
9089
self.create_token.name);
9190
event!(target: PRINT_TARGET, Level::INFO,
@@ -97,7 +96,7 @@ impl CliCommand for CreatePersonalAccessTokenCmd {
9796
},
9897
);
9998
} else if self.quiet_mode {
100-
println!("{}", token.token.expose_secret());
99+
println!("{}", &token.token);
101100
} else {
102101
event!(target: PRINT_TARGET, Level::INFO,
103102
"Personal access token with name: {} and {} created",
@@ -108,7 +107,7 @@ impl CliCommand for CreatePersonalAccessTokenCmd {
108107
},
109108
);
110109
event!(target: PRINT_TARGET, Level::INFO,"Token: {}",
111-
token.token.expose_secret());
110+
&token.token);
112111
}
113112

114113
Ok(())

core/cli/src/commands/binary_system/login.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use anyhow::Context;
2323
use async_trait::async_trait;
2424
use iggy_common::Client;
2525
use iggy_common::SEC_IN_MICRO;
26-
use secrecy::ExposeSecret;
2726
use tracing::{Level, event};
2827

2928
const DEFAULT_LOGIN_SESSION_TIMEOUT: u64 = SEC_IN_MICRO * 15 * 60;
@@ -95,7 +94,7 @@ impl CliCommand for LoginCmd {
9594
)
9695
})?;
9796

98-
self.server_session.store(token.token.expose_secret())?;
97+
self.server_session.store(&token.token)?;
9998

10099
event!(target: PRINT_TARGET, Level::INFO,
101100
"Successfully logged into Iggy server {}",

core/common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# under the License.
1717
[package]
1818
name = "iggy_common"
19-
version = "0.9.3-edge.1"
19+
version = "0.9.4-edge.1"
2020
description = "Iggy is the persistent message streaming platform written in Rust, supporting QUIC, TCP and HTTP transport protocols, capable of processing millions of messages per second."
2121
edition = "2024"
2222
license = "Apache-2.0"

core/common/src/traits/binary_mapper.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use crate::{
2424
Stream, StreamDetails, Topic, TopicDetails, UserInfo, UserInfoDetails, UserStatus,
2525
};
2626
use bytes::Bytes;
27-
use secrecy::SecretString;
2827
use std::collections::HashMap;
2928
use std::str::from_utf8;
3029

@@ -508,9 +507,7 @@ pub fn map_raw_pat(payload: Bytes) -> Result<RawPersonalAccessToken, IggyError>
508507
let token = from_utf8(&payload[1..1 + token_length as usize])
509508
.map_err(|_| IggyError::InvalidUtf8)?
510509
.to_string();
511-
Ok(RawPersonalAccessToken {
512-
token: SecretString::from(token),
513-
})
510+
Ok(RawPersonalAccessToken { token })
514511
}
515512

516513
pub fn map_client(payload: Bytes) -> Result<ClientInfoDetails, IggyError> {

core/common/src/types/permissions/personal_access_token.rs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,16 @@
1616
* under the License.
1717
*/
1818

19-
use crate::utils::serde_secret::serialize_secret;
2019
use crate::utils::timestamp::IggyTimestamp;
21-
use secrecy::SecretString;
2220
use serde::{Deserialize, Serialize};
23-
use std::fmt;
2421

2522
/// `RawPersonalAccessToken` represents the raw personal access token - the secured token which is returned only once during the creation.
2623
/// It consists of the following fields:
2724
/// - `token`: the unique token that should be securely stored by the user and can be used for authentication.
28-
#[derive(Serialize, Deserialize)]
25+
#[derive(Debug, Serialize, Deserialize)]
2926
pub struct RawPersonalAccessToken {
3027
/// The unique token that should be securely stored by the user and can be used for authentication.
31-
#[serde(serialize_with = "serialize_secret")]
32-
pub token: SecretString,
33-
}
34-
35-
impl fmt::Debug for RawPersonalAccessToken {
36-
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
37-
f.debug_struct("RawPersonalAccessToken")
38-
.field("token", &"[REDACTED]")
39-
.finish()
40-
}
28+
pub token: String,
4129
}
4230

4331
/// `PersonalAccessToken` represents the personal access token. It does not contain the token itself, but the information about the token.

0 commit comments

Comments
 (0)