-
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
[Cloud Security] Hide K8S Dashboard on Serverless ONLY #203639
Conversation
Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security) |
/ci |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
|
|
||
export const KubernetesRoutes = () => ( | ||
<PluginTemplateWrapper> | ||
<TrackApplicationView viewId={SecurityPageName.kubernetes}> |
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.
we don't need to track collection anymore with TrackApplicationView, or it is now being handled by the SecurityRoutePageWrapper?
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.
its already included internally :) , had a discussion with @semd
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.
LGTM
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.
Links code LGTM. Everything makes sense.
Just clarify that, using this approach, this link will also be hidden in stateful (non-serverless) environments, when showing the new "solution navigation", which uses the same navigation tree as serverless.
I assume that's acceptable.
@animehart I don't understand how this requirement is being achieved, I don't see eny specific serverless/non-serverless code |
@maxcold with that being said, there has been a change on the requirement for this that makes this PR to no longer be valid, I will close this PR |
Summary
This PR addresses the issue where we only want to hide K8S Dashboard on Serverless. Users now won't be able to access K8S Dashboard via Navigation or Direct URL on Serverless. Users will still be able to do so in a non-serverless env