-
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
[Monitoring] Stop using usingEphemeralEncryptionKey #88884
[Monitoring] Stop using usingEphemeralEncryptionKey #88884
Conversation
Pinging @elastic/stack-monitoring (Team:Monitoring) |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, 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.
LGTM, thanks!
return { | ||
isSufficientlySecure: !isSecurityEnabled || (isSecurityEnabled && isTLSEnabled), | ||
hasPermanentEncryptionKey: !encryptedSavedObjects?.usingEphemeralEncryptionKey, | ||
hasPermanentEncryptionKey: Boolean(encryptedSavedObjects), | ||
}; |
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.
optional nit: after looking at the code that uses isSufficientlySecure
and hasPermanentEncryptionKey
it seems you can just include Boolean(encryptedSavedObjects)
condition to isSufficientlySecure
and use only this property everywhere. It also makes sense since there won't be an ephemeral key anymore. But up to you, I hope in the future alerting plugin will expose something like this instead so that you can remove explicit dependency on encryptedSavedObjects
.
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.
Gotcha, yea this is pretty much a copy/paste from the alerting code, from here so I'd honestly defer to their judgement here too. We just need a way to detect this scenario and let users know
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.
Looks good 👍
Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Resolves #81618