Skip to content

Commit

Permalink
[8.x] [SecuritySolution] Set correct onboarding cards capabilities (#…
Browse files Browse the repository at this point in the history
…195990) (#196082)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[SecuritySolution] Set correct onboarding cards capabilities
(#195990)](#195990)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Sergi
Massaneda","email":"sergi.massaneda@elastic.co"},"sourceCommit":{"committedDate":"2024-10-14T10:10:46Z","message":"[SecuritySolution]
Set correct onboarding cards capabilities (#195990)\n\n##
Summary\r\n\r\nSets the correct capabilities for Onboarding
cards:\r\n\r\n- Integrations: \r\n- capability: `fleet.read`: The only
privilege a user needs to access\r\nthe Integrations page, it won't be
able to install anything though.\r\n(`fleet` is the id for
\"Integrations\" capability, the one for \"Fleet\"
is\r\n`fleetv2`).\r\n\r\n- Dashboards: \r\n - capability:
`dashboard.show`\r\n\r\n- AI Assisant: \r\n - capability:
`securitySolutionAssistant.ai-assistant`, \r\n - license:
`enterprise`\r\n\r\n- Attack Discovery (still hidden): \r\n -
capability: `securitySolutionAttackDiscovery.attack-discovery`, \r\n -
license: `enterprise`\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic
Machine <elasticmachine@users.noreply.github.com>\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Angela Chuang <yi-chun.chuang@elastic.co>\r\nCo-authored-by: Agustina
Nahir Ruidiaz
<agustina.ruidiaz@elastic.co>","sha":"f90dc39f7e8547467c53ffc7f74ada07a06be040","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:
SecuritySolution","Team:Threat
Hunting:Explore","backport:prev-minor","v8.16.0"],"title":"[SecuritySolution]
Set correct onboarding cards
capabilities","number":195990,"url":"https://github.com/elastic/kibana/pull/195990","mergeCommit":{"message":"[SecuritySolution]
Set correct onboarding cards capabilities (#195990)\n\n##
Summary\r\n\r\nSets the correct capabilities for Onboarding
cards:\r\n\r\n- Integrations: \r\n- capability: `fleet.read`: The only
privilege a user needs to access\r\nthe Integrations page, it won't be
able to install anything though.\r\n(`fleet` is the id for
\"Integrations\" capability, the one for \"Fleet\"
is\r\n`fleetv2`).\r\n\r\n- Dashboards: \r\n - capability:
`dashboard.show`\r\n\r\n- AI Assisant: \r\n - capability:
`securitySolutionAssistant.ai-assistant`, \r\n - license:
`enterprise`\r\n\r\n- Attack Discovery (still hidden): \r\n -
capability: `securitySolutionAttackDiscovery.attack-discovery`, \r\n -
license: `enterprise`\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic
Machine <elasticmachine@users.noreply.github.com>\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Angela Chuang <yi-chun.chuang@elastic.co>\r\nCo-authored-by: Agustina
Nahir Ruidiaz
<agustina.ruidiaz@elastic.co>","sha":"f90dc39f7e8547467c53ffc7f74ada07a06be040"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195990","number":195990,"mergeCommit":{"message":"[SecuritySolution]
Set correct onboarding cards capabilities (#195990)\n\n##
Summary\r\n\r\nSets the correct capabilities for Onboarding
cards:\r\n\r\n- Integrations: \r\n- capability: `fleet.read`: The only
privilege a user needs to access\r\nthe Integrations page, it won't be
able to install anything though.\r\n(`fleet` is the id for
\"Integrations\" capability, the one for \"Fleet\"
is\r\n`fleetv2`).\r\n\r\n- Dashboards: \r\n - capability:
`dashboard.show`\r\n\r\n- AI Assisant: \r\n - capability:
`securitySolutionAssistant.ai-assistant`, \r\n - license:
`enterprise`\r\n\r\n- Attack Discovery (still hidden): \r\n -
capability: `securitySolutionAttackDiscovery.attack-discovery`, \r\n -
license: `enterprise`\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic
Machine <elasticmachine@users.noreply.github.com>\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Angela Chuang <yi-chun.chuang@elastic.co>\r\nCo-authored-by: Agustina
Nahir Ruidiaz
<agustina.ruidiaz@elastic.co>","sha":"f90dc39f7e8547467c53ffc7f74ada07a06be040"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Sergi Massaneda <sergi.massaneda@elastic.co>
  • Loading branch information
kibanamachine and semd authored Oct 14, 2024
1 parent 89623aa commit ec92845
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ export const assistantCardConfig: OnboardingCardConfig<AssistantCardMetadata> =
)
),
checkComplete: checkAssistantCardComplete,
capabilities: 'securitySolutionAssistant.ai-assistant',
licenseType: 'enterprise',
};
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ export const attackDiscoveryCardConfig: OnboardingCardConfig = {
'./attack_discovery_card'
)
),
capabilities: 'securitySolutionAttackDiscovery.attack-discovery',
licenseType: 'enterprise',
};
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@ export const integrationsCardConfig: OnboardingCardConfig<IntegrationCardMetadat
)
),
checkComplete: checkIntegrationsCardComplete,
capabilities: ['fleet.all', 'fleetv2.all'],
licenseType: 'basic',
capabilities: 'fleet.read',
};

0 comments on commit ec92845

Please sign in to comment.