-
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
Remove TLS requirement for alerting when security is enabled #115234
Changes from 3 commits
65f3b1b
0626d4d
a2cf6b1
8af8fa5
9a85150
b348b0a
1e9c791
3f2bc32
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,11 +82,11 @@ export const HealthCheck: React.FunctionComponent<Props> = ({ | |
) : !healthCheck.isAlertsAvailable ? ( | ||
<AlertsError docLinks={docLinks} className={className} /> | ||
) : !healthCheck.isSufficientlySecure && !healthCheck.hasPermanentEncryptionKey ? ( | ||
<TlsAndEncryptionError docLinks={docLinks} className={className} /> | ||
<ApiKeysAndEncryptionError docLinks={docLinks} className={className} /> | ||
) : !healthCheck.hasPermanentEncryptionKey ? ( | ||
<EncryptionError docLinks={docLinks} className={className} /> | ||
) : ( | ||
<TlsError docLinks={docLinks} className={className} /> | ||
<ApiKeysDisabledError docLinks={docLinks} className={className} /> | ||
); | ||
} | ||
) | ||
|
@@ -143,7 +143,7 @@ const EncryptionError = ({ docLinks, className }: PromptErrorProps) => ( | |
/> | ||
); | ||
|
||
const TlsError = ({ docLinks, className }: PromptErrorProps) => ( | ||
const ApiKeysDisabledError = ({ docLinks, className }: PromptErrorProps) => ( | ||
<EuiEmptyPrompt | ||
iconType="watchesApp" | ||
data-test-subj="actionNeededEmptyPrompt" | ||
|
@@ -152,22 +152,28 @@ const TlsError = ({ docLinks, className }: PromptErrorProps) => ( | |
title={ | ||
<h2> | ||
<FormattedMessage | ||
id="xpack.triggersActionsUI.components.healthCheck.tlsErrorTitle" | ||
defaultMessage="You must enable Transport Layer Security and API keys" | ||
id="xpack.triggersActionsUI.components.healthCheck.apiKeysDisabledErrorTitle" | ||
defaultMessage="You must enable API keys" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @gchaps to review this change. It was the following before:
|
||
/> | ||
</h2> | ||
} | ||
body={ | ||
<div className={`${className}__body`}> | ||
<p role="banner"> | ||
{i18n.translate('xpack.triggersActionsUI.components.healthCheck.tlsError', { | ||
defaultMessage: | ||
'Alerting relies on API keys, which require TLS between Elasticsearch and Kibana. ', | ||
{i18n.translate('xpack.triggersActionsUI.components.healthCheck.apiKeysDisabledError', { | ||
defaultMessage: 'Alerting relies on API keys. ', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @gchaps to review this change. It was the following before:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This text now just repeats the title. Is there something more you can add? Or can it simply be: You must enable API keys to use Alerting I'm also wondering if we should make the two messages parallel: Additional setup required |
||
})} | ||
<EuiLink href={docLinks.links.security.kibanaTLS} external target="_blank"> | ||
{i18n.translate('xpack.triggersActionsUI.components.healthCheck.tlsErrorAction', { | ||
defaultMessage: 'Learn how to enable TLS.', | ||
})} | ||
<EuiLink | ||
href={docLinks.links.security.elasticsearchEnableApiKeys} | ||
external | ||
target="_blank" | ||
> | ||
{i18n.translate( | ||
'xpack.triggersActionsUI.components.healthCheck.apiKeysDisabledErrorAction', | ||
{ | ||
defaultMessage: 'Learn how to enable API keys.', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @gchaps to review this change. It was the following before:
|
||
} | ||
)} | ||
</EuiLink> | ||
</p> | ||
</div> | ||
|
@@ -206,7 +212,7 @@ const AlertsError = ({ docLinks, className }: PromptErrorProps) => ( | |
/> | ||
); | ||
|
||
const TlsAndEncryptionError = ({ docLinks, className }: PromptErrorProps) => ( | ||
const ApiKeysAndEncryptionError = ({ docLinks, className }: PromptErrorProps) => ( | ||
<EuiEmptyPrompt | ||
iconType="watchesApp" | ||
data-test-subj="actionNeededEmptyPrompt" | ||
|
@@ -215,21 +221,23 @@ const TlsAndEncryptionError = ({ docLinks, className }: PromptErrorProps) => ( | |
title={ | ||
<h2> | ||
<FormattedMessage | ||
id="xpack.triggersActionsUI.components.healthCheck.tlsAndEncryptionErrorTitle" | ||
id="xpack.triggersActionsUI.components.healthCheck.apiKeysAndEncryptionErrorTitle" | ||
defaultMessage="Additional setup required" | ||
/> | ||
</h2> | ||
} | ||
body={ | ||
<div className={`${className}__body`}> | ||
<p role="banner"> | ||
{i18n.translate('xpack.triggersActionsUI.components.healthCheck.tlsAndEncryptionError', { | ||
defaultMessage: | ||
'You must enable Transport Layer Security between Kibana and Elasticsearch and configure an encryption key in your kibana.yml file. ', | ||
})} | ||
{i18n.translate( | ||
'xpack.triggersActionsUI.components.healthCheck.apiKeysAndEncryptionError', | ||
{ | ||
defaultMessage: 'You must enable API keys and configure an encryption key. ', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @gchaps to review this change. It was the following before:
|
||
} | ||
)} | ||
<EuiLink href={docLinks.links.alerting.setupPrerequisites} external target="_blank"> | ||
{i18n.translate( | ||
'xpack.triggersActionsUI.components.healthCheck.tlsAndEncryptionErrorAction', | ||
'xpack.triggersActionsUI.components.healthCheck.apiKeysAndEncryptionErrorAction', | ||
{ | ||
defaultMessage: 'Learn how.', | ||
} | ||
|
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.
@gchaps to review this change. It was the following before: