kibana icon indicating copy to clipboard operation
kibana copied to clipboard

[Fleet] Fix output encryption when AAD fields or encrypted field change

Open nchaulet opened this issue 4 months ago • 10 comments

Description

Resolve https://github.com/elastic/kibana/issues/176702 That PR fix output saved object encryption error when editing field that are included in AAD or an encrypted field.

For this that PR make sure that we include all required AAD field when updating an encrypted field, and that we update encrypted field when updating a required AAD field.

Tests

I added some unit tests to cover that

You can manually test this by creating a preconfigured output with allow_edit

xpack.fleet.outputs:
  - name: 'Test output'
    is_default: true
    is_default_monitoring: true
    type: 'logstash'
    id: 'output-123'
    hosts: ['elasticsearch:9200']
    allow_edit: ['ssl', 'secrets', 'test']
    ssl:
      certificate: 'replace2'
      key: 'replacet'

then update allow_edit to remove the test value, you can also check that you can update ssl certificate in the UI

nchaulet avatar Feb 13 '24 16:02 nchaulet

:robot: 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!)

apmmachine avatar Feb 13 '24 16:02 apmmachine

/ci

nchaulet avatar Feb 14 '24 16:02 nchaulet

Pinging @elastic/fleet (Team:Fleet)

elasticmachine avatar Feb 14 '24 16:02 elasticmachine

@elasticmachine merge upstream

nchaulet avatar Feb 14 '24 17:02 nchaulet

@elasticmachine merge upstream

nchaulet avatar Feb 14 '24 19:02 nchaulet

@elasticmachine merge upstream

nchaulet avatar Feb 14 '24 20:02 nchaulet

@elasticmachine merge upstream

nchaulet avatar Feb 15 '24 15:02 nchaulet

@elasticmachine merge upstream

nchaulet avatar Feb 15 '24 17:02 nchaulet

@elasticmachine merge upstream

nchaulet avatar Feb 18 '24 17:02 nchaulet

:green_heart: Build Succeeded

Metrics [docs]

✅ unchanged

History

  • :broken_heart: Build #193902 failed b5275d51f3f0d55ca34001e9ade607c973e72e5e
  • :broken_heart: Build #193860 failed 224bf887c702dc4b4176f667af85377c754c4dfc
  • :broken_heart: Build #193801 failed b57e3550abde0919b0aaf55fa17aae90556d74f7
  • :broken_heart: Build #193719 failed 72595dbb67b3afed809a450854afa923b69fadab
  • :broken_heart: Build #193711 failed 5bd1b8d65fbb2a7c61abbebafdd518577d7b7f98

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

cc @nchaulet

kibana-ci avatar Feb 18 '24 19:02 kibana-ci

💚 All backports created successfully

Status Branch Result
8.13

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine avatar Feb 18 '24 23:02 kibanamachine