-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Observability] Use Fleet's default data output when onboarding integrations using auto-detect flow #201158
Conversation
Pinging @elastic/fleet (Team:Fleet) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
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.
one suggestion otherwise LGTM 🚀
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've tested locally and it works as expected, though I have a conceptual question. It feels unintuitive that user would need to modify fleet settings in order to establish connection between ES and a standalone agent.
Seems like there is no way for us to get the CA fingerprint directly from the cluster during auto detect flow, but maybe this should be an explicit step in our auto_detect cli script to optionally provide the fingerprint, wdyt? Perhaps we could show this step only if ES host is using https schema...
Users will not have to do this. It's just a quick way of testing that the CA settings are applied correctly in a local dev environment. When users download the distribution and setup Kibana these settings will be applied automatically. |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Public APIs missing exports
History
|
Ah, nice, thank you for clarifying! |
Starting backport for target branches: 8.x |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…rations using auto-detect flow (elastic#201158) Resolves elastic#199751 ## Summary Use Fleet's default data output when onboarding integrations using auto-detect flow. ## Screenshot ### Fleet output settings <img width="1411" alt="Screenshot 2024-11-21 at 15 10 24" src="https://github.com/user-attachments/assets/ac193552-7f18-4566-a84b-061df45c13f3"> ### Generated Agent config ``` $ cat /Library/Elastic/Agent/elastic-agent.yml outputs: default: type: elasticsearch hosts: - https://192.168.1.73:9200 ssl.ca_trusted_fingerprint: c48c98cdf7f85d7cc29f834704011c1002b5251d594fc0bb08e6177544fe304a api_key: b1BkR1Q1TUIyOUpfMWhaS2NCUXA6SS1Jb3dncGVReVNpcEdzOGpSVmlzQQ== preset: balanced ``` ## Testing 1. Go to Fleet > Settings > Outputs 2. Edit the default output and enter dummy data into the "Elasticsearch CA trusted fingerprint" field 3. Go through the auto-detect onboarding flow 4. Inspect the `elastic-agent.yml` file written to disk. It should contain the default output configured in Fleet including `ca_trusted_fingerprint` setting (cherry picked from commit 845aa8c) # Conflicts: # x-pack/plugins/observability_solution/observability_onboarding/server/routes/flow/route.ts
…rations using auto-detect flow (elastic#201158) Resolves elastic#199751 ## Summary Use Fleet's default data output when onboarding integrations using auto-detect flow. ## Screenshot ### Fleet output settings <img width="1411" alt="Screenshot 2024-11-21 at 15 10 24" src="https://github.com/user-attachments/assets/ac193552-7f18-4566-a84b-061df45c13f3"> ### Generated Agent config ``` $ cat /Library/Elastic/Agent/elastic-agent.yml outputs: default: type: elasticsearch hosts: - https://192.168.1.73:9200 ssl.ca_trusted_fingerprint: c48c98cdf7f85d7cc29f834704011c1002b5251d594fc0bb08e6177544fe304a api_key: b1BkR1Q1TUIyOUpfMWhaS2NCUXA6SS1Jb3dncGVReVNpcEdzOGpSVmlzQQ== preset: balanced ``` ## Testing 1. Go to Fleet > Settings > Outputs 2. Edit the default output and enter dummy data into the "Elasticsearch CA trusted fingerprint" field 3. Go through the auto-detect onboarding flow 4. Inspect the `elastic-agent.yml` file written to disk. It should contain the default output configured in Fleet including `ca_trusted_fingerprint` setting
… integrations using auto-detect flow (#201158) (#201833) # Backport This will backport the following commits from `main` to `8.x`: - [[Observability] Use Fleet's default data output when onboarding integrations using auto-detect flow (#201158)](#201158) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Thom Heymann","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-25T11:14:49Z","message":"[Observability] Use Fleet's default data output when onboarding integrations using auto-detect flow (#201158)\n\nResolves #199751\r\n\r\n## Summary\r\n\r\nUse Fleet's default data output when onboarding integrations using\r\nauto-detect flow.\r\n\r\n## Screenshot\r\n\r\n### Fleet output settings\r\n\r\n<img width=\"1411\" alt=\"Screenshot 2024-11-21 at 15 10 24\"\r\nsrc=\"https://github.com/user-attachments/assets/ac193552-7f18-4566-a84b-061df45c13f3\">\r\n\r\n### Generated Agent config\r\n\r\n```\r\n$ cat /Library/Elastic/Agent/elastic-agent.yml\r\n\r\noutputs:\r\n default:\r\n type: elasticsearch\r\n hosts:\r\n - https://192.168.1.73:9200\r\n ssl.ca_trusted_fingerprint: c48c98cdf7f85d7cc29f834704011c1002b5251d594fc0bb08e6177544fe304a\r\n api_key: b1BkR1Q1TUIyOUpfMWhaS2NCUXA6SS1Jb3dncGVReVNpcEdzOGpSVmlzQQ==\r\n preset: balanced\r\n```\r\n\r\n## Testing\r\n\r\n1. Go to Fleet > Settings > Outputs\r\n2. Edit the default output and enter dummy data into the \"Elasticsearch\r\nCA trusted fingerprint\" field\r\n3. Go through the auto-detect onboarding flow\r\n4. Inspect the `elastic-agent.yml` file written to disk. It should\r\ncontain the default output configured in Fleet including\r\n`ca_trusted_fingerprint` setting","sha":"845aa8c47c858a6ccf83390bb38f332424ce2221","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport missing","Team:Fleet","v9.0.0","backport:prev-minor","ci:project-deploy-observability"],"number":201158,"url":"https://github.com/elastic/kibana/pull/201158","mergeCommit":{"message":"[Observability] Use Fleet's default data output when onboarding integrations using auto-detect flow (#201158)\n\nResolves #199751\r\n\r\n## Summary\r\n\r\nUse Fleet's default data output when onboarding integrations using\r\nauto-detect flow.\r\n\r\n## Screenshot\r\n\r\n### Fleet output settings\r\n\r\n<img width=\"1411\" alt=\"Screenshot 2024-11-21 at 15 10 24\"\r\nsrc=\"https://github.com/user-attachments/assets/ac193552-7f18-4566-a84b-061df45c13f3\">\r\n\r\n### Generated Agent config\r\n\r\n```\r\n$ cat /Library/Elastic/Agent/elastic-agent.yml\r\n\r\noutputs:\r\n default:\r\n type: elasticsearch\r\n hosts:\r\n - https://192.168.1.73:9200\r\n ssl.ca_trusted_fingerprint: c48c98cdf7f85d7cc29f834704011c1002b5251d594fc0bb08e6177544fe304a\r\n api_key: b1BkR1Q1TUIyOUpfMWhaS2NCUXA6SS1Jb3dncGVReVNpcEdzOGpSVmlzQQ==\r\n preset: balanced\r\n```\r\n\r\n## Testing\r\n\r\n1. Go to Fleet > Settings > Outputs\r\n2. Edit the default output and enter dummy data into the \"Elasticsearch\r\nCA trusted fingerprint\" field\r\n3. Go through the auto-detect onboarding flow\r\n4. Inspect the `elastic-agent.yml` file written to disk. It should\r\ncontain the default output configured in Fleet including\r\n`ca_trusted_fingerprint` setting","sha":"845aa8c47c858a6ccf83390bb38f332424ce2221"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201158","number":201158,"mergeCommit":{"message":"[Observability] Use Fleet's default data output when onboarding integrations using auto-detect flow (#201158)\n\nResolves #199751\r\n\r\n## Summary\r\n\r\nUse Fleet's default data output when onboarding integrations using\r\nauto-detect flow.\r\n\r\n## Screenshot\r\n\r\n### Fleet output settings\r\n\r\n<img width=\"1411\" alt=\"Screenshot 2024-11-21 at 15 10 24\"\r\nsrc=\"https://github.com/user-attachments/assets/ac193552-7f18-4566-a84b-061df45c13f3\">\r\n\r\n### Generated Agent config\r\n\r\n```\r\n$ cat /Library/Elastic/Agent/elastic-agent.yml\r\n\r\noutputs:\r\n default:\r\n type: elasticsearch\r\n hosts:\r\n - https://192.168.1.73:9200\r\n ssl.ca_trusted_fingerprint: c48c98cdf7f85d7cc29f834704011c1002b5251d594fc0bb08e6177544fe304a\r\n api_key: b1BkR1Q1TUIyOUpfMWhaS2NCUXA6SS1Jb3dncGVReVNpcEdzOGpSVmlzQQ==\r\n preset: balanced\r\n```\r\n\r\n## Testing\r\n\r\n1. Go to Fleet > Settings > Outputs\r\n2. Edit the default output and enter dummy data into the \"Elasticsearch\r\nCA trusted fingerprint\" field\r\n3. Go through the auto-detect onboarding flow\r\n4. Inspect the `elastic-agent.yml` file written to disk. It should\r\ncontain the default output configured in Fleet including\r\n`ca_trusted_fingerprint` setting","sha":"845aa8c47c858a6ccf83390bb38f332424ce2221"}}]}] BACKPORT-->
…rations using auto-detect flow (elastic#201158) Resolves elastic#199751 ## Summary Use Fleet's default data output when onboarding integrations using auto-detect flow. ## Screenshot ### Fleet output settings <img width="1411" alt="Screenshot 2024-11-21 at 15 10 24" src="https://github.com/user-attachments/assets/ac193552-7f18-4566-a84b-061df45c13f3"> ### Generated Agent config ``` $ cat /Library/Elastic/Agent/elastic-agent.yml outputs: default: type: elasticsearch hosts: - https://192.168.1.73:9200 ssl.ca_trusted_fingerprint: c48c98cdf7f85d7cc29f834704011c1002b5251d594fc0bb08e6177544fe304a api_key: b1BkR1Q1TUIyOUpfMWhaS2NCUXA6SS1Jb3dncGVReVNpcEdzOGpSVmlzQQ== preset: balanced ``` ## Testing 1. Go to Fleet > Settings > Outputs 2. Edit the default output and enter dummy data into the "Elasticsearch CA trusted fingerprint" field 3. Go through the auto-detect onboarding flow 4. Inspect the `elastic-agent.yml` file written to disk. It should contain the default output configured in Fleet including `ca_trusted_fingerprint` setting
Resolves #199751
Summary
Use Fleet's default data output when onboarding integrations using auto-detect flow.
Screenshot
Fleet output settings
Generated Agent config
Testing
elastic-agent.yml
file written to disk. It should contain the default output configured in Fleet includingca_trusted_fingerprint
setting