feat(outputs.mongodb): Add PLAIN authentication support and validation - #17869
Merged
mstrandboge merged 6 commits intoOct 27, 2025
Merged
Conversation
Add support for PLAIN authentication mechanism (commonly used with LDAP) to the MongoDB output plugin. Users can now use secret-aware username and password fields instead of embedding credentials in the DSN.
srebhan
reviewed
Oct 21, 2025
srebhan
left a comment
Member
There was a problem hiding this comment.
Thanks @skartikey! Some comments...
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
From MongoDB's documentation, both parameters enable encrypted connections. MongoDB kept the ssl parameter for backwards compatibility with older applications, but added tls as the more modern/accurate name.
srebhan
reviewed
Oct 23, 2025
srebhan
left a comment
Member
There was a problem hiding this comment.
Awesome job @skartikey! Two small suggestions...
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
Contributor
|
Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
mstrandboge
approved these changes
Oct 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Added PLAIN authentication support following the same pattern as SCRAM:
Security Considerations
PLAIN authentication sends credentials in plaintext during the SASL authentication handshake. The implementation includes:
Users must use TLS to secure PLAIN authentication in transit. Secret store protects credentials at rest.
Checklist
Related issues
resolves #6460