Skip to content

Commit

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

## Summary

Sets the correct capabilities for Onboarding cards:

- Integrations: 
- capability: `fleet.read`: The only privilege a user needs to access
the Integrations page, it won't be able to install anything though.
(`fleet` is the id for "Integrations" capability, the one for "Fleet" is
`fleetv2`).

- Dashboards: 
  - capability: `dashboard.show`

- AI Assisant: 
  - capability: `securitySolutionAssistant.ai-assistant`, 
  - license: `enterprise`

- Attack Discovery (still hidden): 
  - capability: `securitySolutionAttackDiscovery.attack-discovery`, 
  - license: `enterprise`

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Angela Chuang <yi-chun.chuang@elastic.co>
Co-authored-by: Agustina Nahir Ruidiaz <agustina.ruidiaz@elastic.co>
  • Loading branch information
5 people authored Oct 14, 2024
1 parent 4428c80 commit f90dc39
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 f90dc39

Please sign in to comment.