Skip to content

Commit

Permalink
[Fleet] fix kafka ssl key secret update (elastic#174261)
Browse files Browse the repository at this point in the history
## Summary

Closes elastic#174227

Fix wrong field used for kafka ssl key secret input which broke ssl key
on kafka output update.

To verify:
- create a kafka output with Authentication: SSL, fill out cert and key
- verify that the value of the key is stored as secret in
`.fleet-secrets`
- update kafka output (e.g. change name)
- verify that the ssl key is unchanged

<img width="1572" alt="image"
src="https://github.com/elastic/kibana/assets/90178898/3129ca89-af63-42c4-bc8d-4ff7d280e513">
  • Loading branch information
juliaElastic authored Jan 5, 2024
1 parent 178583c commit 35514f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ export function useOutputForm(onSucess: () => void, output?: Output) {
);

const kafkaSslKeySecretInput = useSecretInput(
kafkaOutput?.ssl?.certificate,
kafkaOutput?.secrets?.ssl?.key,
kafkaAuthMethodInput.value === kafkaAuthType.Ssl ? validateSSLKeySecret : undefined,
isSSLEditable
);
Expand Down

0 comments on commit 35514f7

Please sign in to comment.