-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[oracle] README updates regarding DSN formats #8841
Conversation
6c44d7c
to
99fbd5c
Compare
🚀 Benchmarks reportTo see the full report comment with |
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Looks like this also needs reviewed from @elastic/obs-infraobs-integrations as codeowners.
d418a8b
to
fe40a56
Compare
/test |
fe40a56
to
42d2e6a
Compare
@chrisberkhout, apologies for the delayed review. There was a related Oracle Integration issue related to the DSN format, which is now resolved, following user testing and confirmation. This new DSN format has been available since ES version 8.7. An example of the new format is
Reference: https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-oracle.html Would you like to consider including this format as part of this PR? |
42d2e6a
to
db282bf
Compare
Hi @agithomas, no worries, I've added that 2nd format. This Oracle integration actually uses the SQL input, not the Oracle input. However, those inputs both use the same library for parsing DSNs. I update the documentation for both of the inputs in elastic/beats#37590. These PRs are an attempt to clean up the documentation following a user problem with escaping while using an |
💚 Build Succeeded
History
|
The following two configuration formats are supported: | ||
``` | ||
oracle://<user>:<password>@<connection_string> | ||
user="<user>" password="<password>" connectString="<connection_string>" sysdba=<true|false> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested both with
- sysdba=false
- without
sysdba=false
both works Ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Package oracle - 1.24.2 containing this change is available at https://epr.elastic.co/search?package=oracle |
Proposed commit message
Discussion
The
oracle
integration uses Filebeat'ssql
input. That uses the GO DRiver for ORacle DB to parse Oracle DSNs. When supplied with the removed format, it parses the joined username and password as only a username, with no password, as demonstrated by the following script.DSN parsing script
Script:
Output:
Checklist
changelog.yml
file.