Skip to content
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

[Fleet] Fix preconfigured remote ES outputs with secrets #172550

Conversation

jillguyonnet
Copy link
Contributor

@jillguyonnet jillguyonnet commented Dec 5, 2023

Summary

Closes #172546

Testing

  1. Add the following to your Kibana config file and start Kibana:
xpack.fleet.outputs:
  - id: my-remote-es-output-with-a-secret
    name: preconfigured remote elasticsearch output with a secret
    type: remote_elasticsearch
    hosts: ['http://localhost:9997']
    secrets:
      service_token: secretRemoteESServiceToken
  1. Head to Fleet UI and check that the output was correctly created.
  2. Go to the Dev Tools Console and query Fleet secrets: GET .fleet-secrets/_search. Check that the service token secret was created.
  3. Edit the output configuration, e.g. the value of the service token, and wait for Kibana to restart.
  4. Check that the value(s) have been correctly updated.

@jillguyonnet jillguyonnet added release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting Team:Fleet Team label for Observability Data Collection Fleet team v8.12.0 labels Dec 5, 2023
@jillguyonnet jillguyonnet requested a review from a team as a code owner December 5, 2023 10:03
@jillguyonnet jillguyonnet self-assigned this Dec 5, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • /oblt-deploy-serverless : Deploy a serverless Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

Copy link
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

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

LGTM, should we add a testcase for updating a remote es preconfig and comparing the secret with hashes?

@jillguyonnet jillguyonnet changed the title [Fleet] Fix preconfiguration validation for remote ES outputs [Fleet] Fix preconfigured remote ES outputs with secrets Dec 5, 2023
@jillguyonnet
Copy link
Contributor Author

Hey @juliaElastic I added the fix for remote ES output update (was broken, as discussed on Slack). I agree that unit tests should ideally be amended as they failed to pick that up (even though they did exist for remote ES outputs).

@juliaElastic
Copy link
Contributor

Hey @juliaElastic I added the fix for remote ES output update (was broken, as discussed on Slack). I agree that unit tests should ideally be amended as they failed to pick that up (even though they did exist for remote ES outputs).

Thanks for fixing!

@jillguyonnet
Copy link
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @jillguyonnet

@jillguyonnet jillguyonnet merged commit 1476bda into elastic:main Dec 5, 2023
35 checks passed
@jillguyonnet jillguyonnet deleted the fleet/fix-preconfig-validation-remote-es-outputs branch December 5, 2023 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fleet] Fixes for preconfigured remote Elasticsearch outputs
6 participants