[Cloud Security] Feature Flag Support for Cloud Security Posture Plugin#205438
Conversation
|
Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security) |
seanrathier
left a comment
There was a problem hiding this comment.
This is going to be useful, thanks!
|
@elasticmachine merge upstream |
…-Akinleye/kibana into register_feature_flag_csp_plugin
jbudz
left a comment
There was a problem hiding this comment.
packages/kbn-optimizer/limits.yml LGTM
…-Akinleye/kibana into register_feature_flag_csp_plugin
jeramysoucy
left a comment
There was a problem hiding this comment.
Kibana Security changes LGTM
maxcold
left a comment
There was a problem hiding this comment.
pls check the bundle size increase
packages/kbn-optimizer/limits.yml
Outdated
| cloudFullStory: 18493 | ||
| cloudLinks: 55984 | ||
| cloudSecurityPosture: 19109 | ||
| cloudSecurityPosture: 34398 |
There was a problem hiding this comment.
why this increase in the bundle size? almost 80% percent increase in my opinion signals that smth is off
There was a problem hiding this comment.
Thanks @maxcold! I ran the script node scripts/build_kibana_platform_plugins --focus {pluginId} --update-limits to increase the bundle size which automatically add 15kb to currentSize. I will just manually update the limits.yml
There was a problem hiding this comment.
ah, I see, the actual change is +1kb. I am still not sure where it is coming from but it is not a big issue I guess
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
@Omolola-Akinleye the backport can be retried by toggling backport:prev-minor if this hasn't already been backported. The rate limit issues should be resolved now. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
5 similar comments
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
…in (elastic#205438) ## Summary Summarize your PR. If it involves visual changes include a screenshot or gif. ## Changes * Adds `enableExperimental` to server `configSchema` * Makes feature flags configurable via `xpack.cloudSecurityPosture.enableExperimental` in `kibana.dev.yml` * Implements `ExperimentFeatureService.get()` for accessing feature flags * Add passing `initliaterContext` to plugin in order to access our plugin config ## Benefits * Avoids circular dependency with Security Solution `useIsExperimentalFeatureEnabled` and prop drilling feature flags from Fleet plugin `PackagePolicyReplaceDefineStepExtensionComponentProps` * Provides server-side configuration support * Enables pre-release feature testing * Creates centralized feature flag management This allows controlled testing of new features before release through configuration rather than code changes. --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
4 similar comments
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
8 similar comments
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Summary
Summarize your PR. If it involves visual changes include a screenshot or gif.
Changes
enableExperimentalto serverconfigSchemaxpack.cloudSecurityPosture.enableExperimentalinkibana.dev.ymlExperimentFeatureService.get()for accessing feature flagsinitliaterContextto plugin in order to access our plugin configBenefits
useIsExperimentalFeatureEnabledand prop drilling feature flags from Fleet pluginPackagePolicyReplaceDefineStepExtensionComponentPropsThis allows controlled testing of new features before release through configuration rather than code changes.