Skip to content

[elixir] feat: Extend Fluss.Config with security, SASL and connect timeout options#577

Merged
fresh-borzoni merged 2 commits into
apache:mainfrom
nicolazar:feat/elixir-config-security
May 28, 2026
Merged

[elixir] feat: Extend Fluss.Config with security, SASL and connect timeout options#577
fresh-borzoni merged 2 commits into
apache:mainfrom
nicolazar:feat/elixir-config-security

Conversation

@nicolazar
Copy link
Copy Markdown
Contributor

@nicolazar nicolazar commented May 28, 2026

Purpose

Linked issue: close #569 and the parent #463.

Brief change log

This PR follows up on #574 to extend Fluss.Config with configuration options for security protocol, SASL and connect timeout. To ensure that the SASL password, if set, gets redacted in logs, we customise how Fluss.Config gets inspected using the Inspect protocol; it would appear as [REDACTED] in logs.

We otherwise follow the same approach as in the related PRs.

Tests

New tests cover the setters that were added for these options, one for each function.

nicolazar added 2 commits May 28, 2026 23:30
This commit adds 5 fields to NifConfig: connect timeout ms and
security_* settings (protocol, sasl mechanism, usernama and password)
This commit adds 5 fields to Fluss.Config with the corresponding
setters: connect timeout, security protocol, sasl mechanism, username
and password.

To ensure that the password is redacted, we add a custom Inspect impl,
essentially mirroring the upstream rust debug redaction.
Copy link
Copy Markdown
Member

@fresh-borzoni fresh-borzoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicolazar Ty, LGTM 👍

@fresh-borzoni fresh-borzoni merged commit 7d71d6b into apache:main May 28, 2026
2 checks passed
@nicolazar nicolazar deleted the feat/elixir-config-security branch May 30, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[elixir] SASL, security, timeout config options

2 participants