[9.0] [Cloud Security] Hide agentless traffic filtering callout in Serverless (#216239) (#216496)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Cloud Security] Hide agentless traffic filtering callout in
Serverless (#216239)](https://github.com/elastic/kibana/pull/216239)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT
[{"author":{"name":"seanrathier","email":"sean.rathier@gmail.com"},"sourceCommit":{"committedDate":"2025-03-31T15:04:28Z","message":"[Cloud
Security] Hide agentless traffic filtering callout in Serverless
(#216239)","sha":"e86127ab497327dd129feb5bf5dea39aa675cc76","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Cloud
Security","backport:prev-minor","v9.1.0","backport:8.18"],"title":"[Cloud
Security] Hide agentless traffic filtering callout in
Serverless","number":216239,"url":"https://github.com/elastic/kibana/pull/216239","mergeCommit":{"message":"[Cloud
Security] Hide agentless traffic filtering callout in Serverless
(#216239)","sha":"e86127ab497327dd129feb5bf5dea39aa675cc76"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/216239","number":216239,"mergeCommit":{"message":"[Cloud
Security] Hide agentless traffic filtering callout in Serverless
(#216239)","sha":"e86127ab497327dd129feb5bf5dea39aa675cc76"}}]}]
BACKPORT-->

Co-authored-by: seanrathier <sean.rathier@gmail.com>
This commit is contained in:
Kibana Machine 2025-03-31 19:13:30 +02:00 committed by GitHub
parent 41bf1ef7b1
commit bb3ac40a5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -979,6 +979,7 @@ export const CspPolicyTemplateForm = memo<PackagePolicyReplaceDefineStepExtensio
{shouldRenderAgentlessSelector && (
<SetupTechnologySelector
showLimitationsMessage={!isServerless}
disabled={isEditPage}
setupTechnology={setupTechnology}
onSetupTechnologyChange={(value) => {

View file

@ -26,10 +26,12 @@ export const SetupTechnologySelector = ({
disabled,
setupTechnology,
onSetupTechnologyChange,
showLimitationsMessage = true,
}: {
disabled: boolean;
setupTechnology: SetupTechnology;
onSetupTechnologyChange: (value: SetupTechnology) => void;
showLimitationsMessage?: boolean;
}) => {
const radioGroupItemId1 = useGeneratedHtmlId({
prefix: 'radioGroupItem',
@ -127,7 +129,9 @@ export const SetupTechnologySelector = ({
</h2>
</EuiTitle>
<EuiSpacer size="m" />
<EuiCallOut title={limitationsMessage} color="warning" iconType="alert" size="m" />
{showLimitationsMessage && (
<EuiCallOut title={limitationsMessage} color="warning" iconType="alert" size="m" />
)}
<EuiSpacer size="m" />
<EuiRadioGroup
disabled={disabled}